In this project, you will learn how to switch on a light bulb with just a touch. We will be using a Human Touch sensor (KY-036) and if you don't know how it works, feel free to look up the previous project.
*Precaution: Ensure safety when working with mains electricity. For beginners, I would recommend connecting the LED and 1kΩ resistor to the relay module as a prototype. The LED and power bank will substitute the lamp and the mains electricity respectively.
Supplies
- Arduino Nano
- Solderless Breadboard - Mini
- Human Touch sensor (KY-036)
- Relay Module
- LED (any colour)
- 1kΩ resistor
- Male-to-male jumper wires (10cm)
- Female-to-male jumper wires (20cm)
- Power bank - 10000 mAh
- USB 2.0 Type A to Mini B cable (For Arduino Nano)
- USB 2.0 Type A cable (For power bank)
Setup
For more information about the setup, please watch the YouTube video posted at the bottom of this page.
Connections
- Relay Module - D5
- Human Touch sensor - D3
- (+) of Human Touch sensor - 5V
- (-) of Human Touch sensor - GND
Coding
Final Look
If anyone has any suggestions or complaints about this project, please feel free to comment below or email me at arduinoprojectsbyr@gmail.com
How am I supposed to copy the code? its a freakin image...
ReplyDeleteYou are not supposed to copy it. You should study and understand the codes before you implement them.
Delete