Sunday, October 17, 2010

Arduino_Photocell

so, moving forward with dweenie, on to photocells. Lets give it a go... and we are ... not quite succesful. hm. okay so leme break down what im seeing here



i have the orange wire attached to the 11 digital in, which is the same column as the resistor (1). the other end of the resistor (1) goes into the positive side of the LED. The negative side of the LED goes the same column as the green wire, which attaches to the other resistor (2) and the ground through the black wire. the other side of the resistor (2) goes to the negative side of photocell, and the blue wire which goes to the 0 analog in. the positive side of the photocell is in the same column as the red wire which goes to power (5v). BAH what has gone wrong?!



i used the code following the diagram.



but this happened...



:(

No comments:

Post a Comment