10A Motor Shield Compatibility Questions & Sensor/Encoder Usage


i brand new arduino , first post forum. attempting run traxxas titan 12t 550 brushed dc motor arduino uno , cytron 10a motor shield (https://goo.gl/urqasx) external power dc motor comes venom 8.6v nimh battery pack, , plan power arduino small 9v battery.

so far, i've been able run , control motor speed , direction. end goal of project implement setup vehicle, can use either rotary encoder or hall effect sensor have vehicle stop @ specific distance (essentially have motor accelerate , decelerate vehicle comes complete stop at, say, 9.6 meters).

- motor shield make use of both interrupt pins on uno, , if so, there no way can use rotary encoder or hall effect sensor track distance vehicle has traveled using interrupts?

- there other recommended ways accomplish task?

any appreciated!

on uno pins 2 , 3 connected direct interrupt channels, pins available
to generate pin-change interrupts (there 3 channels, 1 each port, not pin).  these days there
is library or 2 make using pin-change interrupts easy.

note pin-change interrupts cover pins on uno, not on mega, , specific avr
microcontrollers.

pin change interrupts work encoders if put both encoder signals onto pins in same port.


Arduino Forum > Using Arduino > General Electronics > 10A Motor Shield Compatibility Questions & Sensor/Encoder Usage


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor