Pages: [1]   Go Down
Author Topic: Arduino's analog in not working.  (Read 567 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I'm frightened I might of broken my arduino board, but maybe I just being stupid.

I am using the Simple Message System to communicate with PD. I have the pin values displaying correctly in PD, and they seem to correlate with Arduino's  Serial Monitor.
Where things are going wrong is the values my arduino is reading on the analog pins.

- Pins A0 and A1 always displays values around 63.
- Pin A2 seems to be working properly. ie when nothing is connected it the values jump around, when connected to ground I get 0, when connected to 5v I get 1024. 
- Pins A3, A4 and A5 display values around 900 and when connected to 5v give values of around 1004.

I am not sure when it started, but I might have fed 9v into the analog pins. Would that break it? If so is it irreversible?

Thanks.
Niko
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 202
Posts: 8716
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can use the General test of the Arduino Test Suite to see what's working:

http://code.google.com/p/arduino/wiki/ATS_General

Note that you have to jumper adjacent pins according to the diagram so that inputs and outputs can be tested against each other.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Pins toasted...  smiley-confuse
Lesson learned: double check which wire you're holding.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


might be the internal pullups??

You could test if the blown analog ports stil work as an digital out port.

pinMode(Ax, OUTPUT);
digitalWrite(Ax, HIGH / LOW);

etc.


Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

South Texas
Offline Offline
Edison Member
*
Karma: 8
Posts: 1024
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which board are you using? You can get a new 328 programmed with the bootloader for 5 - 6 dollars and plug that into your board and have the full function back.
Logged

Pages: [1]   Go Up
Jump to: