Darken Ship - via ARMstamp
Posted: Tue Sep 10, 2019 1:38 am
My man-cave has a 'submarine' motif. As a Navy Airdale that spent time on carriers,
you get used to setting different 'integrity conditions' - ie various 'General Quarters'.
One of them was to "Darken Ship" - meaning to go to RED lights for exterior openings.
'
I found the Proto-24 on sale from pcboard.ca that fit the BasicStamp 24 pin layout.
The ARMstamp/LPC11U37 duplicated those pins as well as added another 2 rows of pins.
Below is a picture of my "Set Condition Zebra" - [as I remember it] RED night lights for
my man-cave. {the Internet says it was 'Dog Zebra'}.
'
The relay board has isolated inputs. Currently only 1 relay is used. I power it from a
USB power pak, but needed the 3.3v for the A/D inputs. I loaded up the power section
in case I wanted to go a different route - scrounged parts - not pretty.
FWIW - the relays pull 90ma each - so I wired the relay power to the external 5v line;
didn't want to run all that current through the ARMstamp.
'
I had to do a 14 hour test on the A/D readings - my computer screen / screensaver would
interfere with my initial 'trigger' levels !!!! It currently uses a software timing loop and
turns off at 0730. The 'toggle' forces it on and overides the trigger level until turn off time.
'
I modified the "MultiTask.bas" file to do the different functions - RTC / monitor toggle /
sensor input/ main control functions of the relay-time-trigger level...You gotta watch out
for the amount of time you assign to each function - it can appear to hang... I ended up
using the "jump out of loop via the force interrupt method" for each task!!!
'
"Done is better than ....." - there are a few more additions I want to do - time will tell
Gary
edit Oct 13, 2019 changed picture to final version
you get used to setting different 'integrity conditions' - ie various 'General Quarters'.
One of them was to "Darken Ship" - meaning to go to RED lights for exterior openings.
'
I found the Proto-24 on sale from pcboard.ca that fit the BasicStamp 24 pin layout.
The ARMstamp/LPC11U37 duplicated those pins as well as added another 2 rows of pins.
Below is a picture of my "Set Condition Zebra" - [as I remember it] RED night lights for
my man-cave. {the Internet says it was 'Dog Zebra'}.
'
The relay board has isolated inputs. Currently only 1 relay is used. I power it from a
USB power pak, but needed the 3.3v for the A/D inputs. I loaded up the power section
in case I wanted to go a different route - scrounged parts - not pretty.
FWIW - the relays pull 90ma each - so I wired the relay power to the external 5v line;
didn't want to run all that current through the ARMstamp.
'
I had to do a 14 hour test on the A/D readings - my computer screen / screensaver would
interfere with my initial 'trigger' levels !!!! It currently uses a software timing loop and
turns off at 0730. The 'toggle' forces it on and overides the trigger level until turn off time.
'
I modified the "MultiTask.bas" file to do the different functions - RTC / monitor toggle /
sensor input/ main control functions of the relay-time-trigger level...You gotta watch out
for the amount of time you assign to each function - it can appear to hang... I ended up
using the "jump out of loop via the force interrupt method" for each task!!!
'
"Done is better than ....." - there are a few more additions I want to do - time will tell
Gary
edit Oct 13, 2019 changed picture to final version