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!
V2 Motorshield Analog Inputs Question
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: V2 Motorshield Analog Inputs Question
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.
A4 and A5 are used by the i2c bus and cannot be used for analog input.
- demosthenese
- Posts: 5
- Joined: Wed Feb 13, 2013 10:30 pm
Re: V2 Motorshield Analog Inputs Question
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.
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.
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: V2 Motorshield Analog Inputs Question
I don't think you understood my answer. Your "A" and "B" options do not cover all the cases.I appreciate your attempt, but I don't think you understand the question...
So that would be "A" for pins A0 - A3.Analog inputs A0-A3 are usable when using the V2 motor shield. These are unrelated to any i2c communication.
And:
Which means "None of the above" for A4 and A5"A4 and A5 are used by the i2c bus and cannot be used for analog input.
- demosthenese
- Posts: 5
- Joined: Wed Feb 13, 2013 10:30 pm
Re: V2 Motorshield Analog Inputs Question
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?
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?
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: V2 Motorshield Analog Inputs Question
Correct. Analog pins A0-A3 are passed straight through from the UNO.So stacking the shields doubles the amount of output channels available (motors) but does not increase the number of analog input channels. Correct?
- demosthenese
- Posts: 5
- Joined: Wed Feb 13, 2013 10:30 pm
Re: V2 Motorshield Analog Inputs Question
Excellent, thank you!
Please be positive and constructive with your questions and comments.