Go Down

Topic: what happens if... (Read 484 times) previous topic - next topic

cjdelphi

Sep 17, 2012, 06:44 am Last Edit: Sep 17, 2012, 06:48 am by cjdelphi Reason: 1


if the ldr was connected 5v ~~~~ 1k ~~~~ ldr ~~~ A1  


does the voltage divider  no longer work? A1 should act as gnd no?

CrossRoads

A1 is not connected tho.
A0 might act as ground if you used
digitalWrite(D14, LOW);
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

westfw

Typically, an input pin (analog or digital) will NOT "act as ground"; inputs are almost an open-circuit.

cjdelphi

digitalWrite(A1, LOW);  //as suggested should do it though....


Turning the pins to low saves a lot of work using an extra pin :) - ok cool thanks

Docedison

Also would Guarantee the circuit operation... You would Know what state it was in... just by looking at the sketch.

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Go Up