Intention
Set up a circuit that have input, sensor and output on it.
This time, I used two breadboards to accommodate my three circuit components: an input (push button), a sensor (force-sensitive resistor), and an output (green LED). The push button serves as the switch, while the force-sensitive resistor controls the LED's brightness. I wanted to create a more interactive experience for the user, so instead of using a traditional potentiometer, I opted for a sensor that introduces an element of unpredictability. This requires users to apply force slowly, encouraging them to explore and interact with the device multiple times. While this approach might seem less user-centered, it adds a playful and surprising dimension, as users discover how their touch influences the light.
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.
I plan to make two improvements. First, I’ll switch from a push button to a maintained switch. This way, I won’t need to keep pressing the button to maintain the connection—simply flipping the switch will keep the circuit on. Second, I’d like to enhance the interaction by having the force sensor not only control the brightness but also change the LED color.
You can upload files of up to 20MB using this form.