Eye-Blink Controlled Light Switch Using Shota Aizawa's Eraser Head Goggles (My Hero Academia)

by Barqunics in Circuits > Arduino

2365 Views, 6 Favorites, 0 Comments

Eye-Blink Controlled Light Switch Using Shota Aizawa's Eraser Head Goggles (My Hero Academia)

aizawa.png
IMG_4228 (1).JPG
Eye-Blink Controlled Light Switch Using Shota Aizawa's Eraser Head Goggles (My Hero Academia)

If you read my hero academia manga or watch my hero academia anime, you must know a charracter named shota aizawa. Shota Aizawa also known as the Eraser Head, is a Pro Hero and the homeroom teacher of U.A.'s Class 1-A. Shota's Quirk gives him the ability to nullify another person's Quirk by looking at the user. His ability deactivates if Shota blinks or if his line of sight is obstructed. Eraser Head can be recognized by the yellow goggles he wears around his neck, hidden by his scarf. He only puts them on in a fight because they complement Shota's Quirk.

I was inspired from this charracter and I wanted to control the appliance such as lamp in my home with eye blink. This approach of controlling appliance(Lamp) with eye blink would be especially useful for a wide range of people, starting with those who are almost completely paralyzed to completely healthy persons.

Hardware and Materials Used

Making Eraser Head Goggles From Cardboard

vlcsnap-2020-05-11-15h05m43s021.png
vlcsnap-2020-05-11-15h05m56s757.png
vlcsnap-2020-05-11-15h06m07s580.png
vlcsnap-2020-05-11-15h06m19s665.png
vlcsnap-2020-05-11-15h06m25s064.png
vlcsnap-2020-05-11-15h06m38s628.png
vlcsnap-2020-05-11-15h07m12s856.png

- Lay out the cut-outs as shown in the picture

- Assembling with hot glue

- Paint the goggles with a yellow spraycan

- Let it dray

Wiring Diagram for Transmitter (Eraser Head Goggles)

tRANSMI2.jpg
vlcsnap-2020-05-11-16h46m58s021.png
vlcsnap-2020-05-11-16h46m07s148.png
vlcsnap-2020-05-11-16h47m09s255.png
vlcsnap-2020-05-11-16h47m23s213.png
vlcsnap-2020-05-11-16h48m18s039.png
vlcsnap-2020-05-11-16h48m29s466.png

The following image shows the complete wiring diagram of transmitter using Arduino Nano. After connecting all components then I inserted all these components into the enclosure and sealed it completely using hotglue.

The Ir sensor detects the blink to switch ON the lamp and if the ir sensor detects the blink again the switch will OFF. NRF24L01 2.4 GHz Transceiver Module can be used for wireless communications at up to 100 meters.The operating voltage of the module is from 1.9 to 3.6V, but the good thing is that the other pins tolerate 5V logic. The module communicates using SPI protocol. You should make looking at the arduino pin connector model SPI pins.

Transmitter (Eraser Head Goggles) Code

You need to do is install RF24 Library. You will get an error if you dont install.

When you want to add a new library into your Arduino IDE. Go to the directory where you have downloaded the ZIP file of the library. Extract the ZIP file with all its folder structure in a temporary folder, then select the main folder, that should have the library name. Copy it in the “libraries” folder inside your sketchbook. Connect the arduino nano and upload the given program on your arduino nano.

Code

Wiring Diagram for Receiver

Transmitter Wiring Diagram4.jpg
vlcsnap-2020-05-12-14h23m59s863.png

When moving a servo motor with Arduino, as with other motors, it is almost impossible to draw voltage or current from Arduino. In this case, you can take the external power supply and transmit angle control signals only from Arduino to control the servo motor.

For example, Arduino UNO R3, has I/O pins (digital/analog pins) that draw approximately 20mA from each individual pin (with possibility of damage if 40 mA+). Even though the operating voltage of the servo motor is 5V, since the power supply from the digital/analog pin is insufficient in electric current, the servo motor and Arduino can be damaged. In the case of a MG995 servo motor with an operating voltage of 5-7 V, it’s necessary to supply power to the servo motor separately from Arduino as shown in the circuit diagram below.

Receiver Code

Connect arduino the PC using USB cable and upload the given program on your arduino uno.

Code

Setting Up the Servo

vlcsnap-2020-05-12-14h24m16s900.png
vlcsnap-2020-05-12-14h24m21s573.png

I used a double tape to attach the device to the light switch. When you are done, test to see if the servo motor works correctly and it turns on/off the light

Finish

vlcsnap-2020-05-05-20h59m23s934.png

Does it work? Good! I hope you enjoyed this Arduino project and learned something new. You can subscribe my channel for the support.

Thank You.