Challenge Week 5 Photo Resistor
1. Project : Photo Resistor: This changes resistance based on the amount of light the sensor receives . 2. Code: 3. Picture of the circuit: 4. Electronic Diagram: 5. Video explanation : Code Explanation : 6. Challenge thinking: Started with adding wires and parts to the board. First the wires to ground to positive and 5v to negative. Next the photoresistor into f5 and 6, a 10K resistor on one side connecting to i 1 and 5 then a wire to the negative side of the board from the resistor. On the other side of the 10K resistor, I connected a wire to Analog port A0. The other side of the resistor connects to the negative side of the board with a wire. The LED into h20 positive and h21 negative. Then a wire connects it to port 9 on the positive side and a 330K resistor to the negative side which connects to the negative side of the board. The code: Started with the const int sensorPin = A1; const int ...