I am connecting 2 gyroscope motors of an rc helicopter to the output pins on the arduino to make them rotate. Is it possible to slow down the rotation of one motor by programming its pin to decrease its voltage drop? I do not have my arduino yet so I am asking in advance.
Asked
Active
Viewed 75 times
-2
-
Have you tried it? – Robert Columbia Aug 06 '16 at 01:28
-
I'm waiting for my arduino to arrive, sorry if my question is misleading – Flower Aug 06 '16 at 01:31
-
1https://www.arduino.cc/en/Reference/AnalogWrite – xaxxon Aug 06 '16 at 01:45
-
This question might be better fitted on the [arduino stackexchange](http://arduino.stackexchange.com)....this question really isn't about coding necessarily, which is the purpose of this specific site – DarthRubik Aug 06 '16 at 02:19
-
@DarthRubiK: The real arduino forum is http://forum.arduino.cc ;) – datafiddler Aug 06 '16 at 12:50
-
@datafiddler My link works (at least for me) – DarthRubik Aug 06 '16 at 12:51
-
@datafiddler Oh....you posted **that** forum – DarthRubik Aug 06 '16 at 12:52
1 Answers
1
you cannot exactly output an analog voltage on an pin. It's either 0 or 1 logical value. But by using AnalogWrite the pin will issue a PWM (pulse-width modulation, I let you google it for more precise information). This PWM will work as you expect on your DC motor.
However I don't know how big your motors are but you if consuming more than a few milliamps, you should add a MOS transistor. And even for little motors you should add a flyback diode to your motor to avoid burning your Arduino.

Julien
- 1,810
- 1
- 16
- 34