In this project, we will learn how to control the brightness of LED via an I/O port (with PWM output capability) and a touch display slider. The 4Duino resistive touch display is used as a means for a graphical interface to control the intensity of the LED. Since the 4Duino itself has an LED on pin D13 with PWM output capability, you may use the LED to conduct this project for convenience.
You can visit 4Duino Projects for more info and creative stuff. :)
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: How It Works
Step 2: Components
- 220Ω Resistor
- Jumper cables
- Micro USB cable
Step 3: Build
Build the circuit as shown in the following diagram and schematic.
Step 4: Program
Workshop 4 – 4Duino Basic Graphics environment is used to program this project.
This project requires the Arduino IDE to be installed as Workshop calls the Arduino IDE for compiling the Arduino sketches. The Arduino IDE however is not required to be opened or modified to program the 4Duino.
- Download the file indicated in this step
- Open the file using Workshop 4.
- Connect the 4Duino to the PC using µUSB cable.
- Then navigate to the Comms tab and select the Comms port to which the 4Duino connected.
- Finally, go back to “Home” tab and now click on the “Comp’nLoad” button.
Step 5: Demonstration
Now using the touch slider on the 4Duino Display, you can control the brightness of the LED.
You can add more LED and use it in your creative projects.
ENJOY !!! :)
Step 6: More Projects
For more projects, you can visit 4Duino Projects.
Thank you !!!
Participated in the
Metal Contest 2016