Motion Sensor Alarm Clock Please Help?
Yuvi
Posts: 7
Alright, so I am currently doing a group project for my research class which requires the use of a BASIC Stamp. We are attempting to build a motion-sensor alarm clock with the use of a passive motion sensor and a BASIC Stamp Super Carrier board. We have merely a week to finish this and we are beginners when it comes to coding something like this. What we want is; when the alarm clock goes off, the motion sensor will release a beam of light. The user will have to physically get out of bed and break the beam of light in order to turn the alarm off. Since we are beginners at coding, can anybody help us out with coding this? Thanks!
Also, how long do you think this project could take?
Also, how long do you think this project could take?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
http://en.wikipedia.org/wiki/Passive_infrared_sensor
So this would depend on how your specific sensor works. When asking questions like this, it is good to say what specific brand/model sensor you are using. Then better yet is to provide a link to the technical documentation for that sensor.
Other than that, these sensors sometimes come with different "lenses" which will allow them to "see" a wide area or a narrow area. Or you block the view with cardboard or black electrical tape. Then it would not "see" the person rolling around in the bed. And you would need to aim this away from the bed.
And this sensor could be constantly detecting motion, and sending this signal to the stamp. But with code, you would ignore the signal unless the alarm is going off.
The IF statement can be used. IF alarm going off...
Then an AND statement can be used. IF alarm going off AND motion detected...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Post Edited (Yuvi) : 3/23/2010 9:09:02 PM GMT
Show us how far you've gotten and we're happy to help!
The best way you can learn is by doing. It's called hands on and can't beat this type of learning and I do it everyday.
Rich H