-
11Step 11
Step 11: Test it
The project should work now. Test it out. Make sure it works.
User interface is below. If you need to make a change (e.g. the yellow LED blinks instead of the green LED) then just flip the pins in the sketch and re-upload.
Video of a test:
---------- more ----------
User interface is as follows [indicate changable elements]:
(1) Device is normally off. Press and hold power button for 3-5 seconds to turn decice on; wait for the Status LED [green LED] to turn on.
(2) After powering up, Status LED will blink for [10] seconds. During this time the user must enter the [secret code]. This is to ensure against turning on accidentally as well as to ensure that user remembers what the code is before the device gets armed. If the user does not successfully enter the secret code during this time, the device turns itself off.
(3) After successfully entering the code, the Status LED will turn solid on. This indicates that the device is giving the user time to put the device stationary, in this sketch [20] seconds.
(4) The Status LED turns off, indicating that the device is now armed and listening to the accelerometer. If there is movement, the Status LED blinks slightly to indicate movement.
(5) If there is movement for more than [5] seconds and above [threshhold], the alarm goes off and turns the Status LED solid on. The alarm stays on until the user enters the secret code.
(6) Once the device is on, if the user enters the secret code after or during the settling time, the Status LED will blink once long, then three short, and then then the device will turn itself off without turning the alarm on.
(5) If the battery is low voltage, set as below [6.5] volts, then when the Status LED is turned on in step (1) or in (5) or (6), the Battery Low Voltage LED [yellow LED] will turn on solid on.
-
12Step 12
Step 12: Put the boards into the project box
Insert the screws into the holes of the project board (I could only get three in there, which was good enough):
And then insert into the project box and screw the screws in:
I also added some hot glue to the battery connection cables, so they don't get pulled on at the connection to the project board.
Then slot the perf board into the front of the project box:
And then squeeze the wires into the box. This proved to be more of a challenge that I anticipated, and required bending the wires a fair amount, particularly the wires to the buttons from the 5V rail on the close side of the project board.
And then screw the project box shut:
-
13Step 13
Step 13: Add padding for battery
I found that the battery was not quite snug, so I added some padding.
I used some thin foam padding that had arrived with one of my orders,
And then hot glued it into the battery case section of the project box. I would suggest waiting a few seconds before putting the foam down, and the hot glue will still stick but won't be, well, so hot. The first one I did (bottom) I did not and it melted the foam a bit. No worries, as the padding is still sufficient but it doesn't look as good.
And then put the battery in:
-
14Step 14
Step 14: Finish the project and try it out!
The project is now finished!
And a video of it in action:
-
15Step 15
Step 15: Take hot pictures
Just because...
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.