-
1Step 1: Gather the Components
You will need the following components to build the Arduino touch-activated LED project:
- Arduino board (e.g., Arduino Uno)
- Touch sensor module
- LED (any color of your choice)
- 220-ohm resistor
- Breadboard
- Jumper wires
-
2Step 2: Connect the Components
Follow these steps to connect the components on the breadboard:
- Connect the positive (longer) leg of the LED to digital pin 13 on the Arduino through the 220-ohm resistor.
- Connect the negative (shorter) leg of the LED to the ground (GND) pin on the Arduino.
- Connect the output pin of the touch sensor module to digital pin 2 on the Arduino.
-
3Step 3: Upload the Code
Open the Arduino IDE and copy the provided code into a new sketch. Make sure your Arduino board is connected to your computer via USB. Select the correct board and COM port from the "Tools" menu, and then click the "Upload" button to upload the code to the Arduino.
-
4Step 4: Power Up and Test
Once the code is successfully uploaded to the Arduino, disconnect it from the computer and power it using a 9V battery or USB power source. Now, whenever you touch the touch sensor, the LED should turn on, and touching it again will turn it off.
-
5Step 5: Experiment and Extend
Congratulations! You have successfully built the touch-activated LED project. Feel free to experiment with different LED colors, add more LEDs, or use other types of sensors to create even more interactive projects. The possibilities are endless, so let your creativity and curiosity guide you to explore the exciting world of Arduino electronics!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.