This is the motor:
I'm hooking it up to the arduino as described and giving the PWM outputpin analogWrite functions, but it's not working.
1 Answer 1
No. It has an ESC built in.
You just provide power and a PWM signal, and optionally a direction signal.
To test:
- Connect red to +12V.
- Connect black to 12V GND and to Arduino GND
- Connect white to D5
analogWrite(5, 128)
;
answered Jan 29, 2019 at 10:59
-
Stupid question, but why does the motors have to connect to Arduino GND as well as the 12V GND?Scylly– Scylly01/30/2019 18:50:31Commented Jan 30, 2019 at 18:50
-
@Ary majenko.co.uk/blog/importance-sharing-groundsMajenko– Majenko01/30/2019 19:17:01Commented Jan 30, 2019 at 19:17
Explore related questions
See similar questions with these tags.
lang-cpp