5 ms·
Arduino Sensor Network – Bathroom occupancy detector
- silicontroll 13y agoHow original. http://stuffandymakes.com/2011/03/03/ipotti%E2%84%A2-released/ http://stuffandymakes.com/2011/03/03/ipotti%E2%84%A2-release...
- deelowe 13y agoHow is this helpful?
- silicontroll 13y agoIt helps people know when the bathroom is vacant or occupied.
- deelowe 13y agoI meant the snarky comment.
- fragmede 13y agoAnd 10 years before that... http://bathroom.mit.edu/ http://bathroom.mit.edu/
- hamiltonkibbe 13y ago"* Clam K has been occupied for 4 days"
- silicontroll 13y agoSerious dedication to going #2.
- Udo 13y agoSomeone shares something they made - with quite a bit of programming details - and your reaction is "how original"? I've got news for you: most things aren't fundamentally new. That doesn't mean they're uncool or people hacking hardware for the fun of it deserve your ridicule. Now go, make something, and come back.
- silicontroll 13y agoYou're great at reading usernames.
- delluminatus 13y agoThis isn't reddit. Please avoid using novelty accounts. Sincerely, Everyone trying to have a conversation.
- exelius 13y agoDownvotes for Arduino -- didn't you know the maker community has moved on to Raspberry Pi? Nothing in the Arduino community has been updated in the last 2 years. Edit: Jeez, sarcasm folks...
- sp332 13y agoThe Flora platform is 2 years old but the wearables community around it is still quite active. In fact they just started another podcast just to showcase wearables projects.
- exelius 13y agoNo, I mean nothing in the Arduino area has been updated in 2 years. Software, hardware, anything. It really feels like the entire community just up and left and moved to Raspberry Pi.
- Jack5500 13y agoyou're the wirst Kind oft person
- christoph 13y agoArduino and Pi really serve different purposes to an extent. They are different platforms and each does some things better than other. There are certain things you can't achieve with a Pi that you can with an Arduino. Just look around at the projects joining the two devices together for proof of this. Edit - just found this Kickstarter - https://www.kickstarter.com/projects/john-cole/arduberry-unite-raspberry-pi-and-arduino https://www.kickstarter.com/projects/john-cole/arduberry-uni...
- chriskelley 13y agoLove it. A company I used to work with had something like this and hooked it up to a dashboard widget - knowing "occupancy status" was just an F12 away! The bathroom was on the far end of the floor and it was such a waste of time to walk all the way over there to find it occupied. Such a great fix.
- revelation 13y agoWhy would you abuse the WDT to periodically wake the AVR? You could connect one of the reed switches to a true external interrupt and use that as your wakeup call. Saves battery and you don't run the chance of missing anything in between the second long checks.
- tonyd256 13y agoI used the WDT to make a platform for sensing any sensor in second intervals. Using the reed switches as external interrupts would have been specific to this application. Also, the ATMega328P doesn't allow you to set the interrupt to fire on CHANGE when using the lowest power mode. For a door opening and closing a 1 second delay is fine. If it misses an event with that delay then it was probably a fluke. Think of it as a buffer to prevent false readings.
- mannkind 13y agoInteresting! I guess that I'm not using the lowest power mode[1], but for months now I have had a ATMega328P (running on 3-AA batteries) monitoring doors w/reed switches. I haven't had any trouble w/interrupts not firing on change. 1: I'm using Rocket Scream's LowPower.PowerDown for what it's worth.
- tonyd256 13y agoCool, there probably isn't a huge difference between idle and deep sleep modes so I'm sure it could still last a long time. In deep sleep you can still use the HIGH & LOW level interrupts but just not the CHANGE one.
- fancyketchup 13y agoThis isn't to suggest that using the WDT in interval mode is the wrong approach, and I know there's a certain amount of elegance to doing everything with one chip, but you could still use the level interrupt by adding a 7486 (standard quad XOR gate). For the gate's inputs, you would use the reed switch and a output pin from the AVR, and the gate's output would go to the external interrupt line. If the ISR toggles the state of the output pin each time it runs, the gate's output is only in the IRQ-asserted state for as long as it takes the ISR to fire up--so you don't get constant interrupts while the switch is closed, only a single one on the opening and closing transitions. The 74LVC86 variant only draws a dozen, or so, microamps, which is dwarfed by the current in the 10k pull-down resistor when the reed is closed, and comparable to the standby current of the radio in the new radio.
- jelder 13y agoBoundless (http://www.boundless.com/ http://www.boundless.com/) did this first, and I think we did it better IMHO. https://github.com/jelder/doors https://github.com/jelder/doors http://doors.boundless.com/ http://doors.boundless.com/
- platz 13y agoHow are you supplying power to the digispark?
- tonyd256 13y agoGreat to see others are doing this too! I like your solution, very cool. I have some of those digispark boards but decided to go in a different direction making a standalone sensor board that transmits its sensor data to a hub for pushing to the cloud. There are tons of ways this could be done. The way I describe here worked best for us and achieved my goals for it.
- macNchz 13y agoMy company made a very similar tool (using photoresistors instead of reed switches to determine whether that bathroom was occupied) a couple of years ago, it was a major lifesaver with single occupancy bathrooms: http://www.sanbornmediafactory.com/portfolio_pieces/bum/ http://www.sanbornmediafactory.com/portfolio_pieces/bum/
- georgemcbay 13y agoPretty cool, but why reed switches on the door instead of a passive IR detector with a timeout? Neither is perfect, but the PIR doesn't rely on people to remember not to close the door when leaving (which I assume is how they determine actual occupancy?). You could wire the same PIR to also control the light on/off state, so if someone is having an epic poop but not moving too much you can be pretty sure they'll move to make the light go on if they hit the timeout.
- StavrosK 13y agoI did exactly this for my home light, I connected the Arduino as a USB peripheral to my home server and use a PIR sensor and a photoresistor to turn lights on/off when it's bright/dark/I'm home/I'm away. It works very well. Partial writeup: http://www.stavros.io/posts/control-rf-devices-with-arduino/ http://www.stavros.io/posts/control-rf-devices-with-arduino/
- tonyd256 13y agoI considered this but we already have fancy light switches with motion detectors in our bathrooms and our company is strict about leaving the doors open when you leave so that hasn't been a problem. An added bonus of this is that if the last person is leaving and about to lock up they can see if a bathroom door is closed and check to make sure no one is still in there, where as the light could still be on.
- platz 13y agoWould it be possible to use something like an attiny2313 or even an attiny45, do the job of handling the reed switch data and then delegating the rest of the logic to a central server? I would think you'd get the most power savings that way.
- austinz 13y agoMany families of uCs (e.g. MSP430) are extremely power-efficient. Power consumption is dominated by the radio; the fewer packets the better.
- tonyd256 13y agoThe ATMega328P is pretty low power. I could probably save a bit more with a smaller more targeted MCU, but I wanted this board to be as close to the Arduino Uno as possible. I'm not sure what you mean by a central server. It's possible to use an ATTiny series chip to sense the reed switches and transmit to the nRF24 board.
- Jemaclus 13y agoI did this a few years ago, but I simply bought a motion detector and hooked it up to a light in the other room. Cost me like $25 and worked like a charm. Buuuut one of the girls at the office complained because she thought it was creepy, so we had to take it down. Somehow, someone standing around outside the door waiting for their turn is less creepy...