I cooked up a low tech presence project using an Arduino and PIR motion sensor in my cube at work. That way my colleagues can see if I am at my cube before walking down the hall. There are other more sophisticated ways to detect human presence with different sensors but this cheap PIR method works pretty well.
I used a delay in the code to make it more usable. The out of the box PIR code will just constantly check for motion on the PIR. I inserted a delay so if it sees motion, wait 1 minute and then start checking again. Every once in a while I am real still and the sensor does not pick up but again we are talking low-tech easy solution here.
Buddy said I should add a mood feature to display the mood. I have an RGB LED laying around so I may implement that next.
I used a delay in the code to make it more usable. The out of the box PIR code will just constantly check for motion on the PIR. I inserted a delay so if it sees motion, wait 1 minute and then start checking again. Every once in a while I am real still and the sensor does not pick up but again we are talking low-tech easy solution here.
Materials
- Arduino UNO
- 2 - LEDs
- PIR Motion Sensor
- Jumper Cables
Code
Pics
Buddy said I should add a mood feature to display the mood. I have an RGB LED laying around so I may implement that next.