I then removed the push button and the 10K resistor. I then used my finger to complete the circuit.
I changed the program by decreasing the on/off time by half (500ms). This increase the blinking of the LED by half.
Using an LDR (Light dependent resistor) in the next portion of the circuit, I entered another program that provided a varying voltage signal range After adding a line of debug int the program I was able to fine tune the range for a working model. The range was from 190 to 200. One LED would emit light if the value was over 200, while the other would emit light if the value was below 190. In the picture above, in the dialog box off to the right in the second column, the value is above 200 and the red LED emits light in the picture below.
In the picture above, the value in the dialog box is less than 190 because the LDR is covered from the surrounding artificial light and the green LED emits light in the picture below.
No comments:
Post a Comment