I started this project mainly as a segway into teaching myself more about the MSP430 family after I was inspired by a college course in embedded systems last year. We learned how to program the family in C++ and Assembly, but really only scratched the surface. It has been a challenging yet fun project and has helped me veer away from the Arduino.
So without further ado, here's an explanation of what this Instructable aims to show you how to build:
The room visitor counter (as you might have expected...) counts how many people are currently in the room, given this room only has one means of entry. We're not talking firepoles here - I mean a doorway. When there is at least one person in the room, the relay is switched on. And vice versa, if the room is vacant, the relay is switched off.
Using 3 blue LEDs, there is a binary count (I didn't have a 7-segment LED display/display driver at the time I built this) of how many people are in the room, with a maximum displayable count of 7 (when the count is incremented past 7, the LEDs simply remain on).
----
In this instructable, I assume a level of ability in soldering and prototyping skills. The detail in this instructable is on a higher level of abstraction. In other words, if you can solder, read a schematic and are comfortable downloading some software, you can do it!
Remove these ads by
Signing UpStep 1: Making the Backplate
----
Here's what we'll need for my bare-bones hardware build:
* 3/16" thick plexiglass
-->This is cheap yet study enough to keep this all together (plus, I use plexi for everything)
* 2 threadedstandoffs, metal or plastic
-->These are for securing the circuit board (PCB) to the backplate
-->At least 1/4" long; I used 3/4" metal standoffs because that's what I had. 4 would certainly work better at securing the PCB
* 8 4-40 screws, sized to fit your plexiglass and standoffs
-->Make sure they are long enough to clear the plexiglass, PCB board, and then thread into the standoffs at least 1/8"
-->We'll use 4 of these to mount the PCB
* 4 nuts, sized and threaded to fit the machine screws
-->These are for mounting the IR sensors
I cut the plexiglass from a larger piece using a tablesaw. Since this is just plastic, you should be able to get by using any type of blade.
The dimensional drawing can be printed in 1:1 scale
3D Model.zip64 KB











































Visit Our Store »
Go Pro Today »




Not necessarily.
Some time ago I devised (but never got around to build, that's my curse) a system with a pair of IR detectors several cm apart, an IR LED between them and a mirror across every doorway leading to / from a room, all of them feeding their signals to a single controller.
Thus, Someone can enter the room, the counter increments to 1 and the lights turns on inmediately. Someone else enters, it increments to 2. One of them leaves through another doorway and it decrements to 1. After a while the other one leaves, and only then the lights go off (after a brief delay in case someone returns).
From there, I realized that a natural extension was to have a pair of sensors in every doorway, enabling the system to "know" how many peope are in every room (people who increment some room head count always decrement some other room's head count, if one define "outside" as another room).
Catch #1: How do one turns off the light whil remaining in the room? Maybe waving a hand in front of the sensor pair in the "out" direction. Of course, the system should not allow for negative counts (i.e. leaving the lights off when leaving a room whith zero count)
Catch #2: Too many wires everywhere. Maybe only wire power to the sensors and have them transmit a sequence of pulses encoding sensor and direction?
This could also be helpful in case of burglars or other unwanted visitors. Someone trying to hiding in a room wouldn't be able to turn off the lights, so if you come home and find the lights on...
Seeing lights going on and off at random (whenever the pets moves about) is an excellent way to deter would- be-burglars.
could also control how much lighting is actually used by the number of people in the room.
also last thing i would do is increase the height so that a house pet isnt turning on the lights since they really dont need them.