Initially, I tried using a single breadboard, but I soon realized it wasn’t large enough to accommodate all the components. So, I switched to two boards. Following the circuit design provided in class, I combined the code for both the sensor and the input. Debugging proved to be the most challenging part, especially the output code. I had to map the sensor’s analog values correctly and integrate them with the switch logic, which was tricky and occasionally confusing. To make the LED brightness more responsive to the sensor, I not only changed the LED pin from D2 to D1 but also reduced the sensor’s range from 4095 to 2500 for finer control.
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .