Go Down

Topic: Reading analog input using Arduino Motor Shield (Read 2596 times) previous topic - next topic


Hi there!
I would like to ask you if it is possible to read an analog input using arduino motor shield while a DC motor is going forward and backward. I have a big problem when I'm trying to do this because a delay of 90ms is necessary in order to move the DC motor and I need to sense an analog input with a sampling time of Ts=0.01s. Could you advice me please?
Thank you!


No reason why not, unless your motor shield is using all your analog pins.

It sounds as though you are using delay though, so you're going to need millis to manage your motor instead so you can read the ADC. As ever, the blink without delay example sketch proviced with the IDE shows you how to use millis in this way.

Go Up