PDA

View Full Version : Motion Sensor Alarm Clock Please Help?



Yuvi
03-21-2010, 01:25 AM
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?

Leon
03-21-2010, 02:00 AM
Aren't you supposed to develop your own code for a class project like that?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM

Yuvi
03-21-2010, 02:06 AM
Yes, but we are beginners and have minimal time to finish this project. Also, they don't expect us to fully develop it on our own.

bill190
03-21-2010, 02:11 AM
Passive IR motion sensors work by detecting body heat. They do not emit any light.

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...

Franklin
03-21-2010, 05:01 AM
What school do you go to, what class is this for and who is your instructor?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen

Franklin
03-21-2010, 05:41 AM
You should also remove your duplicate post as it is bad form to double post the same question. Use the red X in the top right of the other post.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen

Yuvi
03-24-2010, 05:01 AM
well, listen. help would be greatly appreciated.

Post Edited (Yuvi) : 3/23/2010 9:09:02 PM GMT

YuviC
01-13-2011, 12:21 AM
bump bump bump

Mike G
01-13-2011, 01:09 AM
@Yuvi, you have to show some initiative if you want help. If your team gets stuck ask specific questions and you will find that this forum is a wealth of knowledge.

erco
01-13-2011, 01:12 AM
Nine months have gone by since your first post. Wasn't your project due in a week?

Show us how far you've gotten and we're happy to help!

bsnut
01-13-2011, 08:37 AM
Nine months have gone by since your first post. Wasn't your project due in a week?

Show us how far you've gotten and we're happy to help!
I agree with erco on his point and here is my pointer. Look on the Parallax site for the Basic Stamp app notes, this will provide you with all kinds of information and code examples with schematics for each application.

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.

Franklin
02-03-2011, 04:27 AM
I am feeling sorry for Yuvi. I am pretty sure that nobody is going to help him in this regard. Bill190 is the only person who has shown some sort of willingness to help him. The rest are experts in asking questions. Anyway I hope that Yuvi was able to complete the project in time. Ritrer, the people here are glad to help but we do need to have something to go on. Also the project was assigned for a reason and I know of no school that assigns a project without some way to achieve the end result unless it's a psych. course

W9GFO
02-03-2011, 07:05 AM
Look at his (ritrer's) other posts...

Rich H