Pages: [1]   Go Down
Author Topic: photoresistor that needs help  (Read 255 times)
0 Members and 1 Guest are viewing this topic.
Vancouver, WA
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've got a photoresistor that I'm trying to read the value for, but I'm only reading 1023.
Code:
void setup() {
Serial.begin(9600);
pinMode(A0, INPUT);
}
void loop() {
int val = analogRead(A0);
Serial.printlnt(val);
delay(10);
}


* circuitlab photoresistor troubleshoot.png (44.1 KB, 540x405 - viewed 14 times.)
« Last Edit: June 08, 2012, 06:07:13 pm by skeeter_mcbee » Logged

-skeeter_mcbee-

Vancouver, WA
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok. fixed it. No need for help.
Logged

-skeeter_mcbee-

Pages: [1]   Go Up
Jump to: