-2

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.

Flower
  • 381
  • 1
  • 6
  • 17

1 Answers1

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