V2 Motorshield Analog Inputs Question

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
demosthenese
 
Posts: 5
Joined: Wed Feb 13, 2013 10:30 pm

V2 Motorshield Analog Inputs Question

Post by demosthenese »

Does anyone know if the analog inputs of the new V2 motorshield go through the I2C datalink?

Since they stack I would love to be able to read analog inputs from both boards using a single arduino...

Thanks!

User avatar
adafruit_support_bill
 
Posts: 88154
Joined: Sat Feb 07, 2009 10:11 am

Re: V2 Motorshield Analog Inputs Question

Post by adafruit_support_bill »

Analog inputs A0-A3 are usable when using the V2 motor shield. These are unrelated to any i2c communication.

A4 and A5 are used by the i2c bus and cannot be used for analog input.

User avatar
demosthenese
 
Posts: 5
Joined: Wed Feb 13, 2013 10:30 pm

Re: V2 Motorshield Analog Inputs Question

Post by demosthenese »

I appreciate your attempt, but I don't think you understand the question...

When stacked...do the analog inputs from the new motor shield A.) go through the pins on the arduino...or do they B.) get converted by the shield and fed as data through the I2C connection?

A or B?

If they go through the arduino pins...then there is no point in my using the stacking headers...I will need two Unos to do what I need to do.

Thank you.

User avatar
adafruit_support_bill
 
Posts: 88154
Joined: Sat Feb 07, 2009 10:11 am

Re: V2 Motorshield Analog Inputs Question

Post by adafruit_support_bill »

I appreciate your attempt, but I don't think you understand the question...
I don't think you understood my answer. Your "A" and "B" options do not cover all the cases.
Analog inputs A0-A3 are usable when using the V2 motor shield. These are unrelated to any i2c communication.
So that would be "A" for pins A0 - A3.

And:
A4 and A5 are used by the i2c bus and cannot be used for analog input.
Which means "None of the above" for A4 and A5"

User avatar
demosthenese
 
Posts: 5
Joined: Wed Feb 13, 2013 10:30 pm

Re: V2 Motorshield Analog Inputs Question

Post by demosthenese »

I am pretty sure I understand your first answer but I have to make sure...

The analog inputs of the stacked motor shields use pins A0-A3 on the Uno...got it. So the answer is "No, you cannot run two sets of analog readings through stacked shields (A0-A3, B0-B3). The motor shield does not have a on board ADC to convert the readings for I2C." In this case Shield 1 being the A inputs, shield 2 being the B inputs.

So stacking the shields doubles the amount of output channels available (motors) but does not increase the number of analog input channels. Correct?

User avatar
adafruit_support_bill
 
Posts: 88154
Joined: Sat Feb 07, 2009 10:11 am

Re: V2 Motorshield Analog Inputs Question

Post by adafruit_support_bill »

So stacking the shields doubles the amount of output channels available (motors) but does not increase the number of analog input channels. Correct?
Correct. Analog pins A0-A3 are passed straight through from the UNO.

User avatar
demosthenese
 
Posts: 5
Joined: Wed Feb 13, 2013 10:30 pm

Re: V2 Motorshield Analog Inputs Question

Post by demosthenese »

Excellent, thank you!

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

Return to “Other Products from Adafruit”