61 Online
10 Member And 51 Guest
Today Visits : 9621
Yesterday Visits : 19644
All Visits : 1953260

Welcome to Electronoobs Q&A, where you can ask questions and receive answers from other members of the community.


1 like 0 dislike

Hello, I am using this tutorial to build the drone - http://www.electronoobs.com/eng_arduino_tut23.php.

It looks like that Arduino Mini 5V is used there, but there is no step up converter to 5V  to supply 5V pin. Does it mean that Arduino will work from 3.7V?

When motors are on, does it need a regulator to prevent drops in Arduino supply? 

When I assembled similar circuit my Arduino is going to a weird state - it stops sketch execution and hangs.

I use simple sketch to control motors:

#define fadePin 3

void setup(){

  pinMode(fadePin, OUTPUT);



void loop(){

  for(int i = 0; i<360; i++){

    //convert 0-360 angle to radian (needed for sin function)

    float rad = DEG_TO_RAD * i;

    //calculate sin of angle as number between 0 and 255

    int sinOut = constrain((sin(rad) * 128) + 128, 0, 255);

    analogWrite(fadePin, sinOut);





After few cycles, controller hangs.

by (230 points)

1 Answer

0 like 0 dislike
Best answer
Arduino could wprk with voltages from 3.1 to 5. With 3.7V battery should work. If the Arduino resets it might be for current spikes from the motors. Make sure to add a 10uF-100uF cap to the 3.7 input and also diodes to the motor leads. Keep up,

by (34.8k points)