Quadcopter With Nodemcu and Blynk(Without Flight Controller)

18,416

28

13

Introduction: Quadcopter With Nodemcu and Blynk(Without Flight Controller)

Hello guys.!

The search to make drone without a flight controller ends here.

I was kinda making drone for my project which involves survillence.I was surfing net overnight to make it work without the flight controller and it’s was very disappointing that i didn’t one.So i decided to make this instructable so it’s easy for those who will be making drone without flight controller.

Blynk is an open-source IOT platform where one can control the things remotely.(Can be even stated as an universal remote).Check out their webpage to know more.

Thanks to Blynk.!

Nodemcu has been on buzz these days.I have used nodemcu because of it’s ease in programming.One can program it in arduino IDE itself.

Prerequisites:
One needs to know the basic soldering techniques and of Arduino IDE.

Things needed:

1.BLDC motors.(In my case, i have used 2212 1800KV motors of quantity 4)

2.30A ESC-4

3.A drone frame(One can order it online or can make it like this).

4.LIPO Battery(Typically with a charger)(I have used 2200 mAh 11.1V 30C spec battery).

5.Power Distribution Board.

6.Nodemcu

References:

Here are the references i have used:

1.Blynk Docs

2.Nodemcu docs

3.Esp9266WiFi Header functions.

4.BLDC and ESC working, calibration.(Refer youtube).

Time to get started.!

Step 1: Wiring Up the Escs' and BLDCs'

ESCs’ are generally used to control the speed of the motor.The three pins coming out of the ESC are given to the BLDC motors as follows. PWM signal is generated by the nodemcu which will control the speed of the motor.


Aerodynamics to be considered:
The synergistic step for making the drone fly is it’s aerodynamics.
The motors which are opposite to each other has to in the same direction

Two motors which are opposite has to be in same direction(i.e.,ACW),then the other two opposite motors has to be in CW.

Solder properly by taking care of the dynamics.

Step 2: Setting Up the Blynk App

Download the blynk app.One can find it in the Android/ios store. Create Blank account and get your account verified.

Install blynk library to the Arduino IDE.



Add two slider widgets.
One is for motor calibration and the other is for motor control.

Choose one slider and assign the pin as V0 and change the highest value to 255.(For calibration)

Choose another slider and assign the pin as V1 and change the highest value to 255.(To control drone)

One can use the same widget to calibrate and to control the drone.(but not recommended)

Some pictures has been uploaded to show demonstrate.




Step 3: Arduino IDE Code

Check this link out to get the code.

Esp8266 board package has to be installed to Arduino IDE.Follow the uploaded video to add ESP8266 library to the Arduino IDE.

Open the file in Arduino and upload the code by selecting the board in Boards manager as “Nodemcu”.

Step 4: Calibrating the Motors


Caution.!
Please make sure that the propellers are removed while calibrating.An important precaution ‘coz i had very bad experience with ‘em.!?

The motors have to be “callibrated”.It’s more defined like matching up the highest and lowest throttle speed to highest and lowest voltage provided by the mcu.

Once blynk app is properly setup and wiring the esc and BLDC is done,the next step is to calibrate.
After you connect the four escs’ to a power source(typically a lipo battery),the motors will give a beep to calibrate the esc.

Follow the simple steps to calibrate BLDCs’

1.After motor gives a beep,change the slider to the maximum value(In my case it’s 255).
2.The motor detects it and gives second beep for the low throttle.This time move the slider to the lowest value i.e., 0
3.The motor will give beep twice stating that the calibration is done and change the value of the slider to change the speed of the motors.

You are done.!

Step 5: All Done.!✌?

Please make sure that all the motors should have the same speed (i.e.,same RPM) to hover.

Good day all.!

Any queries:

Reach at abinayg@gmail.com

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    13 Discussions

    0
    rajunideepak
    rajunideepak

    8 months ago

    Can I fly this drone so far from the controller using the with putting the portable wifi router with the drone

    0
    rutiktandale98
    rutiktandale98

    1 year ago

    well, i am working on the same espcopter project just because if you make it successfully, it will become the cheapest drone so far, some thing i would like to ask, first, can i pair it with remoteXY, if so and i am using coreless brushed motor and controlling then with Si2302 Mosfets and its actually balancing the only problem is to controll it with any mean now it is in autopilot mode for lifetime lol

    2
    DanieleT15
    DanieleT15

    2 years ago

    This instructable is a complete lie and should be removed. It tricks people into thinking it's possible to build a drone/quadcopter without a flight controller. It is simply impossible. The flight controller is responsible for changing the speed of the 4 motors in order to keep it balanced. It does this by rapidly reading a gyro and adjust the motor speeds. Even IF you would add a gyro to this instructable (which it hasn't), it would STILL be a lie, because then the NodeMCU board becomes the flight controller! Stating that the drone would keep hovering just because you have the same RPM of all 4 motors is also false. That would only be true if the drone is 100% symmetric, absolutely no wind etc. It simply does not happen. You can even see that he is using a CC3D flight controller on one of his pictures!

    Screen Shot 2018-12-06 at 10.55.24.png
    0
    PacquitoS
    PacquitoS

    Reply 1 year ago

    Yep, it's a scam if you don't have a gyro board. The code is also a full fake of programming :-) But you can use a NodeMCU with multiwii :-)

    0
    Farrukh_
    Farrukh_

    2 years ago

    i doubt this design, all motors will have different RPM,

    0
    AbinayG
    AbinayG

    Reply 2 years ago

    I have coded the NodeMCU with using PID feedback control to balance the drone with the help of Gyroscope(MPU6050)

    0
    DanieleT15
    DanieleT15

    Reply 2 years ago

    If that is true, then the NoceMCU becomes a flight controller!!!

    0
    LanL17
    LanL17

    Question 2 years ago

    can i have the schematic please?

    0
    Maker Saga
    Maker Saga

    Question 2 years ago

    Cool! But how does it balance without an IMU?

    0
    AbinayG
    AbinayG

    Answer 2 years ago

    I apologise for not mentioning about the Gyroscope(MPU6050) i used.!

    PID feedback control with IMU will stabilise the drone.

    0
    AbinayG
    AbinayG

    Answer 2 years ago

    The thing is that i haven't fixed any IMU in it.Balance is achieved if the RPM produced by the four motors are same.

    0
    AbinayG
    AbinayG

    Tip 2 years ago on Step 1

    Fix the cw and ccw propellers to the respective motors properly

    0
    Swansong
    Swansong

    2 years ago

    That's a neat setup :)