Arduino Motor Shield Analog Input Problem

Forum announcements

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
toddh98
 
Posts: 7
Joined: Thu Mar 06, 2014 9:05 pm

Arduino Motor Shield Analog Input Problem

Post by toddh98 »

I am using the Arduino Uno with the Motor Shield with stackable headers, and I cannot get good readings on A4 and A5. Basically I am reading the analog signal from emitter/detector pairs and everything works great on A0-A3. I have ensured that the shield is seated snug onto the uno, swapped out emitters/detectors, wire leads and nothing seems to work. While A0-A3 correctly reads the emitter/detectors (around 20-30 to start) A4 and A5 always start out at 500 or so when hooked up. Do I have a defective motor shield? Any help would be very much appreciated.

Thanks,

Todd

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Arduino Motor Shield Analog Input Problem

Post by adafruit_support_mike »

Are you using the v2 Motor Shield?

If so, that uses the alternate function of pins A4 and A5 as the I2C signals SDA and SCK.

Locked
Please be positive and constructive with your questions and comments.

Return to “Announcements”