Hello guys, I'm trying to control two DC Gearmotors with encoders by using Arduino Motor Shield coupled to Arduino UNO, but I don't know what's the code and if I'm right about how to power it. I'm using the following components:
https://www.pololu.com/product/2827 "two DC Gearmotors with encoder (with enough torque for my project)"
Arduino UNO Arduino Uno Rev3 — Arduino Official Store
Arduino Motor Shield Arduino Motor Shield Rev3 — Arduino Official Store
Two 4 AA battery holders (to power the DC Gearmotors with encoder (12[V]))
A 9[V] battery with it adapter for Arduino UNO
How should I connect this?, and is it right?
I know that Arduino UNO must be powered between 7-12[V] and the DC Gearmotors to 12[V], but according to that website, the blue wire operates between 3.5-20[V], so I'm kind of confused.
Thanks in advance