Control The Led
The Project
In this project, the "potentiometer" controls the brightness of the LED. When I rotate the potentiometer in the "clockwise" direction, the intensity of the LED increases. When I rotate it in the "anti-clockwise" direction, the intensity decreases, and eventually the LED turns off. I programmed the microbit using two sets of code blocks — one to read the analog value from the potentiometer, and the other to adjust the LED brightness based on that value. I was inspired by real-life light dimmers and wanted to understand how they work. The most difficult part was getting the LED to respond smoothly to changes in the potentiometer, but I enjoyed solving that challenge and learning how analog inputs work! Thank you for checking out my project!
About the team
Team members
More cool Hardware projects
Traplock
Hardware
Dancing Lights uing Arduino
Hardware