Hi,
I have a Motor Shield v1, can I use it together with four DC motors that have encoders? I haven't found any tutorials that deal with DC motors, motor shields and encoders. What I have read is that for the encoder signal it's necessary to use a pin with interrupt capability. I have an Arduino Uno, it only has two such pins. Is there a clever way to connect the 4 motors to the 2 pins?
Thanks!
Motor shield v1 with 4 DC motors with encoder?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88086
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor shield v1 with 4 DC motors with encoder?
The shield has no direct support for encoders. Typically, quadrature encoders require 2 pins - preferably with interrupts. The Arduino UNO has only 2 external interrupts, but pin-change interrupts are supported on all pins. http://playground.arduino.cc/Main/PinChangeInterrupt
- Trion
- Posts: 4
- Joined: Wed Jul 15, 2015 3:59 pm
Re: Motor shield v1 with 4 DC motors with encoder?
Wow, instant reply.
Pin-Change interrupts to the rescue then!
The shield documentation at https://learn.adafruit.com/downloads/pd ... shield.pdf tells me which pins I can use when only driving 4 DC motors.
Thanks!
Pin-Change interrupts to the rescue then!
The shield documentation at https://learn.adafruit.com/downloads/pd ... shield.pdf tells me which pins I can use when only driving 4 DC motors.
Thanks!
Please be positive and constructive with your questions and comments.