This is a light swtich (but can be used for many other things) which can be turned ON and OFF using dedicated 125 kHz RFID tags. In this case, 10 different tags (users) can be used.
I have a underground room in the commune space in my bloc (building) and to access this space I powered up a light system from my apartment. The switch for the light is on the entrance in the cellar and all my neighbors can access that space, and some of them put the light ON "in purpose" only to increase my electricity bill :)). After a while, I decided to do something to stop them doing this. Because the building has a Electra access system using 125 kHz tags with unique numbers I decided to use this tag because is attached to my keys all the time.
I used for this project a Arduino Nano, RFID reader RDM 6300, one 5V relay, one old Nokia charger and other few parts.
The program is not very hard to understand and have explanations for majority of the lines.
In OFF mode the white LED is ON (to be visible the box because is installed in a dark zone). When a authorized tag is putted in front of antenna the white LED goes OFF, green LED and relay goes ON and the light is starting. If a unauthorized tag is used the white LED is going OFF, red LED is coming ON for two seconds and after the white LED is coming ON again, the relay remain OFF all the time.
To put OFF the light you need to put again close to antenna one authorized tag, green LED become OFF, same the relay and the white LED become ON. If one unauthorized tag is present, when the light is ON, the green LED is going OFF and the red LED is going ON for two seconds after the green LED is ON again, nothing happen with the relay, the light remain on during this time.
After the light is ON you need to wait minimum two seconds before you can put again the tag near antenna and get the light OFF. This cycle can be repeated again and again and again...
Comments