RFID Desk Lamp

Tell us the story of your project.: 

I have had an old and, not surprisingly, a dilapidated desk lamp for a long time and I thought it would be more effective and useful by getting upgraded with an MFRC522 RFID reader. But I, also, wanted to personalize it by using a specialized color pattern to turn the lamp off, hence the use of potentiometers and RGB LED.

How-to: 
How to Use an MFRC522 RFID Reader

First of all, download MFRC522 library from this link.

1 ) Solder male headers to MFRC522 RFID reader with a soldering iron carefully.

2 ) If you do not save or register a UID to EEPROM, use the function - registerCardUID() - below by uncommenting it from setup().

3 ) After saving get the UID from EEPROM by using this function.

4 ) And the final step, just compare the saved UID and the UID read by MFRC522 to turn the lamp and control LED on.

Connections

Components connections are well-explained at the source code down below, make sure defining RST and SS pins properly.

Connect all components to Arduino Nano.

Rearrange your lamp parts to make components fit in it perfectly.

And then, sturdier all components via a hot glue gun.

Features

ON :

When MFRC522 RFID reader reads the same UID saved by EEPROM accurately.

- Turn control LED and the lamp turn on.

OFF :

When all potentiometer values are turned into zero.

Red Potentiometer Value = 0;

Green Potentiometer Value = 0;

Blue Potentiometer Value = 0;

- Turn control LED, RGB LED and the lamp off.

Schematics

Source Code

To view the source code, please click here.

Difficulty: 
Duration: 
Share a "Show & Tell" video.: 
https://www.youtube.com/watch?v=Wv-4zxfOZ18
Collaborators: 
kutluhanaktar
Number of Forks: 
0
Tools: 
Name: 
Hot Glue Gun
Quantity: 
1
Name: 
Soldering Iron
Quantity: 
1
Materials: 
Name: 
MFRC522 RFID Reader
Quantity or amount: 
1
Name: 
RFID Key Tag
Quantity or amount: 
1
Name: 
2-Way Relay
Quantity or amount: 
1
Name: 
Rotary potentiometer
Quantity or amount: 
3
Name: 
RGB Diffused Common Anode
Quantity or amount: 
1
Name: 
5 mm LED: Green
Quantity or amount: 
1
Name: 
Resistor 221 ohm
Quantity or amount: 
4
Name: 
Male/Male Jumper Wires
Quantity or amount: 
10+
Name: 
Male/Female Jumper Wires
Quantity or amount: 
10+
Name: 
Mini Breadboard
Quantity or amount: 
3
Name: 
9V Battery Clip
Quantity or amount: 
1
Boards & Kits: 
Name: 
Arduino Nano R3
Quantity: 
1
Team Members: 
Team member name: 
kutluhanaktar
What role did this person play on the project?: 
Project Lead
Public
Sort Order: 
0
Teaser: 
Supersede your old desk lamp with a new one controlled by an RFID tag or card and personalize it with an RGB color pattern to turn it off.
Aha! moment: 
Creating a special color pattern to turn the lamp off by using an RGB LED.
Show & Tell video as default: 
Creation Date: 
Wednesday, January 9, 2019 - 18:17

Add new comment