Actually I am working on a LDR robot and taking inputs from analog pins pm Arduino motor shield R3,I found values lying mostly between 0 to 100. When I checked all the analog pins without any LDR sensor connected to arduino I saw values like 500 on almost all the pins (A0 to A5).
I am frustated and find no solutions.I doubt if this is because of noise in the motor shield circuitry as the arduino uno R3 alone does not show such happenings.
Does that mean you're measuring the analog inputs without anything connected? In this case you're measuring a floating pin which gives you a quite random reading. If you want to have a zero reading connect the analog input to GND and read again.
Currently I am using a UNO R3 and when I check my analog input pins through serial monitor,all the pins A0 to A5 shows values between 252 to 350 without connecting any sensors or any voltage into it.I checked it several times with simple analogRead() function.
Why is this happening? Any Idea!!!Lol
all the pins A0 to A5 shows values between 252 to 350 without connecting any sensors or any voltage into it.
Yes they will. This is called a floating input and it applies to analogue or digital input pins. They have to be connected to something.
How are you wiring the LDR sensors up. They need a pull up or pull down resistor as well as the sensor, what values are you using?