Back to Parent

Process

Components: Breadboard, Light Sensor, Switch, LED, Jumper Wires, 2 Resistors

1. Building a circuit with 1 input and 1 output: light sensor and LED

2. Writing code for the LED brightness to change based on the lighting

3. Debugging: the light in the surroundings was too bright, so I had to modify the code adjusting the conversion scale based on the brightness.

4. Modifying circuit to include a second input: switch

5. Modifying code so the computer first checks if the switch is on and then gets data from the light sensor to modify the light brightness on the LED.


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0