Arduino drone - Part3 Drone built

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 275

  • @Begin421603
    @Begin421603 4 роки тому +12

    I have been working in aviation design engineering for the past 16 years. Wanted to get my hands dirty with these flying bots as hobby. Your tutorial helped me immensely. My quadcopter took first controlled flight today following your videos. Keep inspiring.
    Hats off for this knowledge sharing...

  • @andrewkasza7282
    @andrewkasza7282 7 років тому

    I had tried to build a Arduino controlled quad a couple years ago, and I just got a 3d printer and I found your videos on this build. This will help allot in finally finishing this project. Thanks.

  • @anandkachale5187
    @anandkachale5187 7 років тому +1

    u really would have worked hard for this project. I honestly never expected anyone to build a drone like this. I was hoping a lot from someone which turned out to be u. Thanks a lot. Keep it up. Nice explanations. Good luck

  • @michabaszczak3667
    @michabaszczak3667 4 роки тому +4

    The best drone project with explanation I've seen so far! Thank you ;)

  • @peterwoo2489
    @peterwoo2489 7 років тому +5

    As a miniquad pilot, the weight is not actually that bad. I challenge you to add some FPV (wireless video system) components to your quad and maybe look at high-end motors and ESCs :)

  • @sirk5792
    @sirk5792 6 років тому +2

    awesome i've made it to this point, i can now control motor speed from my remote controller. all that is left is to actually fly my drone somewhere. keep it up!

  • @shutdahellup69420
    @shutdahellup69420 7 років тому +5

    Excellent project but isn't the response time slow it dosent spin motor quickly enough when the throttle is pumped up

  • @kedarprabhudessai
    @kedarprabhudessai 7 років тому

    hi thank you buddy i watched all the videos of this build it awesome. good explanation buddy :) on you tube i had seen many quad videos but never had such great detailed explanation. thank you for these videos.

  • @browaruspierogus2182
    @browaruspierogus2182 6 років тому

    There are very professional and cheap flight controllers with speed controllers and IMUs. Problem is the algorithms eliminating sensor reading errors and proper flight stability. You need quite a calc power and fast mcu to achieve reasonable flight effect. Those algorithms are really sophisticated.

  • @paucliment9280
    @paucliment9280 7 років тому +16

    The components you chose makes me feel like back in 2015. Cool build tho

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому +3

      The idea is to make it cheap and based on only arduino! Thank you!

    • @paucliment9280
      @paucliment9280 7 років тому +1

      ELECTRONOOBS ur welcome. I really like the idea of using arduino

    • @muhammadumaraadil1463
      @muhammadumaraadil1463 7 років тому

      ELECTRONOOBS Please give me your whatsapp number

    • @paucliment9280
      @paucliment9280 7 років тому

      MUHAMMAD UMAR AADIL just a weird question right there haha

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому +3

      Here is my mail: info@electronoobs.com
      Don't share my number any more, been hacked 2 times already!

  • @arnie8958
    @arnie8958 6 років тому

    trust me, this guy is a legend!!

  • @virenwadhel3934
    @virenwadhel3934 5 років тому

    Hi.. I'm also building the quadcopter using arduino nano but the tx n rx which I'm using is fsia6 and when i configure the multiwii software same as on the video duration of 6:18 apprx and when I'm turning on the tx there is no chnge on the throttle,yaw,pitch n roll.. how i can resolv that.. please help asap

  • @madaboutpuppets
    @madaboutpuppets 4 роки тому +2

    Great tutorial. Am looking at building up parts and trying this, fully scratch built. You say if you don't have a 3d printer for STL files, there are alternatives in description (and you show A4 printouts on the video), but the only alternatives I can find on your site are details of possibly using wood plastic or metal, but none match this design. Do you have printouts available?

  • @joseejncreations47
    @joseejncreations47 Рік тому +2

    Hi guys i need help!so when i rauch the multiwiiconf. When i select the port com and it connects very well but when i press the start button the whole program just dies and says nothing'if you can help me.Thanks you so much

    • @Eastindiaelectronics
      @Eastindiaelectronics 6 місяців тому

      Are you using nano?..if yes put a 10 k ohm resistance to last 6 holes of nano and it will work just fine

  • @usman12520
    @usman12520 7 років тому +1

    Awesome video! Gonna try to make a drone like this too

  • @jcreyes427
    @jcreyes427 3 роки тому

    7:01 what is the delay from the controller to the motors?

  • @corneal35
    @corneal35 6 років тому +1

    IS it possible to use any receiver to connect to my drone instead of using the one created in the video?

  • @kannadakaka
    @kannadakaka 3 роки тому

    Sir please give the clarification regarding when you switch on the drone. a music tone is coming. You don't install any buzzer to flight control board .. then where that sound is coming. I think you instal commercially available flight control to that drone.

  • @walterjuandedios4726
    @walterjuandedios4726 6 років тому +1

    could help me to deactivate the // to what is necessary so that cuadrocopter works with the flysky i6, the command has ppm.

  • @ReckItRob
    @ReckItRob 7 років тому +2

    I've ordered my parts and can't wait to start this (the body is already printed). :-)
    Would you consider expanding this project to be GPS guided, and possibly adding FPV?
    Great project, keep it up

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому +1

      The FPV is separated from the Arduino part. Depends on your gear. The GPS works but I haven't tested it yet. Using Multiwii you have multiple choices. I think there are other videos about it. I'm not sure when I'll be able to make a video about that since I'm working already on other projects...
      Thanks and keep up!

    • @ReckItRob
      @ReckItRob 7 років тому

      How about a onboard camera that records, with heads up display data? I saw this Minim OSD on aliexpress and wondered if it could be incorporated into a onboard camera to record the flight. :-)

  • @arifqurbanov2159
    @arifqurbanov2159 3 роки тому +1

    sir im also makeing this project. i made transmiter $ resiver and tested it with given code. its works like a charm. whenever i change the code to actual reciver, connect ppm output to the ppm input of flight controller and run the application. i couldnt get any data from transmitter you have any idea please share with me that would be really appreciable. Thank you!

  • @coolaqua1
    @coolaqua1 7 років тому

    First of all, great job! Very informative video and i wanted to build my own Arduino based Tx/Rx and Flight controller and this video came as a real help. Thank you. I have built everything except the frame. RF Transmitter and Receiver work fine. Flight controller works fine. But when i connect everything (meaning connect D2, GND of Receiver to D2, GND of Flight controller), motors don't respond to the joystick movements. This is what i have observed:
    1. Tested Rx with Rx test code and all joystick value prints correspond to the transmitted values. they change when joysticks are moved.
    2. Calibrated the ESCs as described and found that the minimum value is 1200us and changed the same in multiwii config file.
    3. Even the java GUI shows joystick values correctly when i change the joysticks, but motors don't spin!
    4. I probed the PWM outputs of flight controller Arduino, they are at constant 500Hz, 50% duty cycle. They absolutely don't respond to any joystick changes.
    Any suggestions of where i should be looking further? Many thanks!

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому

      Have you activated the motors with throttle 0 and roll maximum for 3 seconds 7:00 ?
      Also are you sure that all the motros have the samw PWM range. Usually is 1000us to 2000us. Maybe you should reset the range for all the ESCs, it will take just 5 minutes. Use this tutorial for that: www.electronoobs.com/eng_robotica_tut5_1.php There you will find the calibration code. Keep up!

    • @coolaqua1
      @coolaqua1 7 років тому

      Appreciate your quick response. I will try your suggestions.

    • @rajatpathak5944
      @rajatpathak5944 4 роки тому

      @@coolaqua1 sir did your drone started working after trying the maker's suggestions

  • @nelsondarwinpaktech3954
    @nelsondarwinpaktech3954 4 роки тому

    Brother....I made the communication done, the drone is also responding to the multiwii but the motors are not turning. Although i checked the battery, voltages, ESC's with servo.h library....

  • @ThornStarR98x_blackheart
    @ThornStarR98x_blackheart 3 роки тому

    Huge fan of you brother..
    It would be more cool if you have added the roll axis control too...
    Expecting a short video on that too..

  • @vedantnarayan61
    @vedantnarayan61 7 років тому +1

    Your idea is great. I will make this drone.

    • @peterwoo2489
      @peterwoo2489 7 років тому +1

      Great if learning how all components in a quad works! You may want to look at other Betaflight based miniquads (or race quads) as the MultiWii platform is not currently being developed and it is old technology. Look at current miniquad build videos if you're aiming for performance :)

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому +4

      Yes, the idea is to make this project all based on arduino. So I don't know any other platform that works on Arduino than multiwii. But yes, multiwii is quite old. That's why in future videos I'll make my own code, crude but it will help people to learn about PID and gyro data, etc... Keep up!

  • @jhapluyt6833
    @jhapluyt6833 6 років тому +1

    awesome tutorials...helped me a lot.......thanks..

  • @AlSTORIES777
    @AlSTORIES777 11 місяців тому

    Can you make this project using brushed motors sir... Thanks

  • @mustaqueahmed599
    @mustaqueahmed599 6 років тому

    I have shown all 3 part of this video . I am so much confused about PPM & PWM . I want to understand the code separately Please help me.

  • @GreatHacker1
    @GreatHacker1 6 місяців тому

    Hello bro. I was able to upload the scatch into arduino nano, but when I open the MultiWiiConfig, select the port and hit start it closes the app and generate and file error output. Do you have any idea what this might be?

  • @daddybou8567
    @daddybou8567 4 місяці тому

    Great project. Please i'm trying to build this drone but the receiver and the flight controller can't connect? Can you help me please

  • @vigneshvs8923
    @vigneshvs8923 7 років тому +1

    waited for this video a long time:-)

  • @rengarider
    @rengarider 6 років тому

    superb, can i use 2200kv motor and 7040 properller for this model??? please reply....

  • @mbojondai7086
    @mbojondai7086 7 років тому +1

    Amazingn video series..
    Thankyou very much. i'll make my first own.

  • @1ilango1
    @1ilango1 5 років тому +1

    Dear Sir, none of the links to parts on eBay works anymore. Could you update them ?

    • @kennytran2860
      @kennytran2860 5 років тому

      You can just search them on amazon

  • @trevorscott3275
    @trevorscott3275 2 роки тому

    Wouldn't the switch burn off from all that current being drawn?

  • @vedantnarayan61
    @vedantnarayan61 7 років тому

    Thanks for the suggestion.

  • @techadonmaster
    @techadonmaster 4 роки тому

    My 1400 kV Bldc motor doesn't work when i Connect to receiver but it receiver and flight work in multiwii software....

  • @tonycyber
    @tonycyber 7 років тому

    Hi Electronoobs, I am going to use this receiver Flysky FS-iA6 2.4G 6 Channel Remote Control Receiver, which receiver pins would need to be connected to the Arduino nano.... I know that one is for signal and one is for power ...

  • @boulhamid
    @boulhamid 2 роки тому

    hi , thank you very much for this project, but why do we use two arduino? we cannot use a single arduino that we connect the nrf24 directly to it, because the number of ports is sufficient ???

  • @t41ef46
    @t41ef46 2 роки тому

    I followed every step of each video twice. But it still is not working for me. The software shows the controller is working but the motor doesnt respond.
    Sometimes, I just get random fluctuating behavior from the motor. Any advice is highly appreciated!

  • @varunsontakke9810
    @varunsontakke9810 7 років тому

    Will you make a tutorial video in which mini coreless motor is run using Arduino PWM pins

  • @jovanni2343
    @jovanni2343 3 роки тому

    I set the throttle to minimum and roll to maximum, but the motors still do not start. I can see in multiwii conf that the receiver and transmitter does work, and is sending the correct values but the motors still don't start. Any advice?

  • @vovanikotin
    @vovanikotin 7 років тому

    For pitch/roll calculation are you use quaternions?
    Or just atan() function?

  • @fazafadli7291
    @fazafadli7291 7 років тому

    hello sir, i have question, i build this one, but why my motor cant run maximum? my quad cant fly,the motor is not strong enough to fly. why? thx

  • @varunsontakke9810
    @varunsontakke9810 7 років тому

    We love your tutorial

  • @vishalk6778
    @vishalk6778 7 років тому

    Hi Electronoobs! I am working on this but I was not having radio controller(old transmitter)..so i decided to make a desktop application for transmitter in visual c# and made some development in tx arduino code. The transmitter work fine with multiwii everything throttle yaw pitch roll works on ...but when I try to start the drone by making throttle min and roll max the drone doesn't start.....please help

  • @Lunarspear2023
    @Lunarspear2023 3 роки тому

    Hello, I'm trying to build a drone but i am totally new to motors and esc, i have no proper training and I dont know how to choose them, is there any tips you can give a beginner like me about this part? My drone has around 1.6-2kg weight and most of the brushless motors i see on the market are for 4'' drones. How would one find out about the thrust weight ratio of a brushless motor?

  • @shlokghadekar6281
    @shlokghadekar6281 5 років тому

    I am having a lot of problems with the ppm signal. The receiver is receiving the signal but the controller is not. Plz, help !

  • @vishnu62147
    @vishnu62147 7 років тому +1

    Is any problem while using atmega 328p ic directley on the pcb board for flight controller ? there is any change to the code.?

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому +1

      Vishnu Sadhu no, the code should be the same. Make sure you make all the connection right and upload the code with an FTDI module...

  • @pankajpatil9459
    @pankajpatil9459 6 років тому

    Why do u used two nano in the drone .is it possible to mount the imu and nrf module on single nano by decreasing the no.of channels

  • @نشوانالظاهر-م9ف
    @نشوانالظاهر-م9ف 2 роки тому

    How are you sir...Can you use the ADXL345 you want the MPU6050 because I don't have the MPU6050 and thank you

  • @ajayjoshi_aj
    @ajayjoshi_aj 6 років тому

    Can i use the bluetooth module for not using the transmitter and receiver but Now leave the connectivity issues because if it would possible then it will be asset for me and can u suggest me about this soon

  • @panthdhillon8284
    @panthdhillon8284 Рік тому

    Bro instead of using two Nanos can we use only one stm32??

  • @aamir0801
    @aamir0801 4 роки тому

    just one question why use 2 aduino one for receiver and one for FC. Can't this be done by just one?

  • @prashantmishra2179
    @prashantmishra2179 5 років тому

    A very great project... thanks a lot..
    but i am using a 4 channel.. so i am unable to arm the quadcopter in order to fly it.. i am stuck.
    please help..

  • @LaMin-ri6eg
    @LaMin-ri6eg Рік тому

    Please describe codes as able to copy.
    I can't open your file(downloaded) in my arduino IDE.

  • @ahmedallam9612
    @ahmedallam9612 4 роки тому

    Great work, thanks for sharing

  • @flamingnar1015
    @flamingnar1015 7 років тому

    What is the total cost for this whole project?
    Including parts for part 1, part 2 and part 3.

  • @harrylenon9594
    @harrylenon9594 7 років тому

    it doesnt matter what order the wires for the motor go to the esc, the middle wire doesnt have to go to the middle :)

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому +2

      no, you're right. but because later you would have to swap two wires to change the spin direction (if not the desired one) in my case it is easier for me to explain how if I just fix a middle wire. Keep up and thank you!

  • @rajatpathak5944
    @rajatpathak5944 4 роки тому

    i made all the connections as shown in the videos.when i throttled up the motors spin for a moment then stopped.since then i am not able to throttle up the motors using the controller

  • @akashsaha6437
    @akashsaha6437 4 роки тому

    Sir , my ESC's won't calibrating , using the given code.
    I can't understand what's the problem is??
    Please suggest me a solution.

    • @Begin421603
      @Begin421603 4 роки тому

      You calibrate your ESC's one by one. I used potentiometer as input device. Follow the steps as below:
      1. Connect Arduino nano with Analog input (say A0 pin) from potentiometer.
      2. Connect the output put (say Pin 8) to the ESC
      3. Switch Potentiometer to Max Value
      4. Connect Power to the ESC (Electronic speed controller)
      5. You will hear Beap.
      6. Immediately take the potentiometer to Min value
      7. Again you will hear the beap
      8. ESC is calibrated now
      9. Repeat for all the motors independently.
      Hope this helps. I learned really hard way :)

  • @saliksheraz6236
    @saliksheraz6236 6 років тому

    Nice work

  • @sumithsawkar6190
    @sumithsawkar6190 2 роки тому

    Bro you are really awesome..

  • @BEAULAPINKYB
    @BEAULAPINKYB 2 роки тому

    hi sir, i have completed all the setup. But my drone is not lifting.Can you please help me joystick control for lifting the drone. Also my drone size is 450cm , used bldc 2212 motor with simonk30A ESC . Issue1: after reducing throttle and yaw to higher, only 1 motor is running, when i increase the throtle, others are running. Issue2: Not lifting
    Please help me here

  • @jkthegreat3298
    @jkthegreat3298 5 років тому

    brother can you help me how to use bluetooth module or my own wifi module instead of the other part you attached in the last which is radio reciever something

  • @rabiranjanray7224
    @rabiranjanray7224 6 років тому

    sir,the calibration of my ESC is not functioning in proper way
    the speed of the motor automatically decreases when the value goes avobe1500.I'm helpless pls do reply to my problem
    's solution soon as i have been stucked in the middle of my project and i have spent much on buying the motors and escs,
    pls reply to my problem by a solution sir....

  • @abhinavverma9576
    @abhinavverma9576 6 років тому

    Can we use dc motor with motor driver instead of brushless motor

  • @jackyb695
    @jackyb695 2 роки тому

    Very good clips, but, I have a problem I did everything as described in Arduino Drone video clips, but the electrical motors don't spin
    1. I followed the instruction and uploaded the Arduino program
    2. The calibration of the ECS motors was ok and each of the 4 motors spin within the rang of 1000 to 2000
    3. The simulation with the multiwii run every very good and I see that the RC is working
    4. I used an oscilloscope to check the signal from the remote to the Arduino and it works
    5. I used an oscilloscope to check the signal to the ESC and I see that there is a clear signal of the 4 channels

    Can someone help, what I’m missing here ?

  • @CarlosFilmagem2008
    @CarlosFilmagem2008 7 років тому +1

    excelente vídeo parabéns!!!!!!

  • @fuhadrock6370
    @fuhadrock6370 4 роки тому

    Can you make plane with this flight controller and receiver...

  • @dineshgarg9370
    @dineshgarg9370 4 роки тому

    Can't we 1 arduino mega instead of 2 arduino nano 1 for flight controller and 1 for reciever

  • @Rohit-oz1or
    @Rohit-oz1or 4 роки тому +1

    Thanks for the great project using commonly available components and making this "expensive" hobby accessible to all.
    I just wanted to know what are the performance trade offs in using 8 bit Arduino as compared to:
    1. A 32 bit microcontroller like stm32
    2. A cc3d
    3. A naze32
    4. Naza
    In addition, what are the performance trade offs in using nrf24 based transmitter and receiver as compared to say, a ct6b or i6?
    Thanks!!

  • @danielradulescu7474
    @danielradulescu7474 6 років тому

    Can you please make a video where you explain de code from the flight controller?

  • @omsingharjit
    @omsingharjit 6 років тому

    you first said you gonna use dc brush motors ?????

  • @shakerchanduuttam
    @shakerchanduuttam 5 років тому

    Great Project and Good Going...!!!
    I am a beginner for DIY drone...
    Can we use Micro Coreless motors in this project and connect the motors directly to Arduino Flight controller...without using ESC..?
    Thank You.

    • @shoaibakhtar2484
      @shoaibakhtar2484 5 років тому

      no you have to use brushless motor for this.
      If you want to make a coreless drone then check out this videos:-
      ua-cam.com/video/uZKINPm3P9E/v-deo.html

  • @gabrieldelacruz1630
    @gabrieldelacruz1630 4 роки тому

    For programming need pc or possible a cellphone for programming plsss answer

  • @EngrWUAV
    @EngrWUAV 3 роки тому

    Hi sir,the link for multiwii is not working..??how?

  • @mr.karthiklegend306
    @mr.karthiklegend306 2 роки тому

    Bro we can use DC 180 motor without ESC for drone . Yes,.???🤔🤔

  • @ryandavid3835
    @ryandavid3835 7 років тому

    Hey man, that's awesome(i'm brazillian, sorry for my english...hue). I Wanna try to Build this drone here, but I have problems to find some things, like the bruhsless motor and the ESC. Did You make an eletronics course, or anything?

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому

      You can't use eBay there? And yes, I'm an electronic engineer!

    • @NiCadHeliPilot
      @NiCadHeliPilot 7 років тому

      Check out HobbyKing. They have plenty of RC gear over there.

  • @babbalgts
    @babbalgts 7 років тому

    hey, with a normal Nrf24 and a high power Nrf24 pair. what range do you get. please respond!!!...thanks!

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому +1

      In my case it worked up to 1000 meters

  • @surandsangeet5677
    @surandsangeet5677 3 роки тому

    Did you use 2s battery?

  • @lucasfalcon4079
    @lucasfalcon4079 7 років тому

    But, what happens when the Lipo battery runs out? Does it crash or do you get warned some how?

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому

      Lucas Jacobsson in the way the drone is in the video it would slowly go down as the battery gets empty. but the multiwii has a battery check pin. you have to add a voltage divider and connect it to that pin and the multiwii will know the real voltage.

  • @9kraby9
    @9kraby9 7 років тому +1

    Cool series! Just one question, to which Flight control pin do you connect the PPM pin for the receiver?

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому

      From the reciver digital pin D2 to the flight controller digital pin D2. And also share gnd.

  • @mhamdighaith1178
    @mhamdighaith1178 18 годин тому

    How can i change the pins set in the code?

  • @mialilaandmayaworld9517
    @mialilaandmayaworld9517 6 років тому

    can i use l298n module to control the propellers?

  • @stevehufngel7221
    @stevehufngel7221 6 років тому

    Is this enough strong to lift an actioncqmera?

  • @vedantnarayan61
    @vedantnarayan61 7 років тому

    Yes you are right.

  • @adwxith_
    @adwxith_ 6 років тому

    Hi can u tell me which are the pins for magnetometer,barometer and GPS sensor

    • @ELECTRONOOBS
      @ELECTRONOOBS  6 років тому

      All those module haev i2c. Connect data and clock to A4 and A5. Keep up!

  • @pankajsaroha9574
    @pankajsaroha9574 6 років тому

    is it necessary to calibrate the escs??

  • @tonycyber
    @tonycyber 7 років тому

    If a Radio Controller comes with a compatible receiver will it still work with this project and also if it does work will there be less things to do???

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому

      Mavrick yes, any PWM receiver will work with multuwii. But you have to connect all the receiver channels and don't add the ppm_sum line in the code.

    • @tonycyber
      @tonycyber 7 років тому

      thanks, my team and I will start to follow your videos, what are some of the problems that I will encounter throughout this project

  • @bhudevsamanta6456
    @bhudevsamanta6456 7 років тому

    What should I do now

  • @mohamedsaeed6595
    @mohamedsaeed6595 Рік тому

    how can i do hexacopter
    can u help me what should i do

  • @tonycyber
    @tonycyber 7 років тому

    will a ESC with 30A or 40A still be good for this project.

  • @vishnu62147
    @vishnu62147 7 років тому

    We can use arduino uno to upload code to atmega 328p ic without using FTDI module there is any problem?

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому +1

      Vishnu Sadhu no problem, you can do that as well. Keep up!

  • @walterjuandedios4726
    @walterjuandedios4726 7 років тому

    cual de esos codigos cargaste al arduino para que vuela el dron

  • @Eastindiaelectronics
    @Eastindiaelectronics 6 місяців тому

    Hey guys my my tx rx works and remote also but everytime i fly its flipping upside down

  • @nguyenvanthao2143
    @nguyenvanthao2143 6 років тому

    channels throttle with a duty cycle from 0 to 100% I use DC motor . How do I fix it? please help me #include
    #include
    #include
    #include
    //Define widths
    int pwm_width_2 = 0;
    int pwm_width_3 = 0;
    int pwm_width_4 = 0;
    int pwm_width_5 = 0;
    int pwm_width_6 = 0;
    int pwm_width_7 = 0;
    Servo PWM2;
    Servo PWM3;
    Servo PWM4;
    Servo PWM5;
    Servo PWM6;
    Servo PWM7;
    //We could use up to 32 channels
    struct MyData {
    byte throttle; //We define each byte of data input, in this case just 6 channels
    byte yaw;
    byte pitch;
    byte roll;
    byte AUX1;
    byte AUX2;
    };
    MyData data;
    const uint64_t pipeIn = 0xE8E8F0F0E1LL; //Remember that this code is the same as in the transmitter
    RF24 radio(9, 10);
    void resetData()
    {
    //We define the inicial value of each data input
    //3 potenciometers will be in the middle position so 127 is the middle from 254
    data.throttle = 0;
    data.yaw = 127;
    data.pitch = 127;
    data.roll = 127;
    data.AUX1 = 0;
    data.AUX2 = 0;
    }
    /**************************************************/
    void setup()
    {
    //Set the pins for each PWM signal
    PWM2.attach(2);
    PWM3.attach(3);
    PWM4.attach(4);
    PWM5.attach(5);
    PWM6.attach(6);
    PWM7.attach(7);
    //Configure the NRF24 module
    resetData();
    radio.begin();
    radio.setAutoAck(false);
    radio.setDataRate(RF24_250KBPS);
    radio.openReadingPipe(1,pipeIn);
    //we start the radio comunication
    radio.startListening();
    }
    /**************************************************/
    unsigned long lastRecvTime = 0;
    void recvData()
    {
    while ( radio.available() ) {
    radio.read(&data, sizeof(MyData));
    lastRecvTime = millis(); //here we receive the data
    }
    }
    /**************************************************/
    void loop()
    {
    recvData();
    unsigned long now = millis();
    //Here we check if we've lost signal, if we did we reset the values
    if ( now - lastRecvTime > 1000 ) {
    // Signal lost?
    resetData();
    }
    pwm_width_2 = map(data.throttle, 0, 255, 1000, 2000); //PWM value on digital pin D2
    pwm_width_3 = map(data.yaw, 0, 255, 1000, 2000); //PWM value on digital pin D3
    pwm_width_4 = map(data.pitch, 0, 255, 1000, 2000); //PWM value on digital pin D4
    pwm_width_5 = map(data.roll, 0, 255, 1000, 2000); //PWM value on digital pin D5
    pwm_width_6 = map(data.AUX1, 0, 255, 1000, 2000); //PWM value on digital pin D6
    pwm_width_7 = map(data.AUX2, 0, 255, 1000, 2000); //PWM value on digital pin D7
    //Now we write the PWM signal using the servo function
    PWM2.writeMicroseconds(pwm_width_2);
    PWM3.writeMicroseconds(pwm_width_3);
    PWM4.writeMicroseconds(pwm_width_4);
    PWM5.writeMicroseconds(pwm_width_5);
    PWM6.writeMicroseconds(pwm_width_6);
    PWM7.writeMicroseconds(pwm_width_7);
    }//Loop end

  • @wantedshark5165
    @wantedshark5165 Місяць тому

    É normal o esc queimar quando eu acelerar o motor ?

  • @bhudevsamanta6456
    @bhudevsamanta6456 7 років тому

    Sir when I tried to configure after the message appeared on the serial monitor of arduino I wrote the minimum value then it came the message to write any value between 1000 to 2000 the spin the motor but after writing that I ESC was just beeping

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому

      Send 2000, then connect the LiPo battery. This will enter into config mode. Them send 1000 and that will set the range. After this you can send 1000 to 2000 in order to control the speed.

  • @b.s.3193
    @b.s.3193 7 років тому +1

    hı thnx for perfect project.
    ı want to build a rc car ı have every equipment but ı dont know how to write arduino l298n control codes ll you help me ?

    • @b.s.3193
      @b.s.3193 7 років тому

      ı have; 2×arduino uno or arduino nano, 1×tower pro servo motor, 1×dc brushed motor, 2×NRF24L01+ radio, 1×l298n motor driver, 2× joystick board and all of usefull equipment but ı dont know how to write control codes for arduino.

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 років тому

      for the l298n H bridge you just have to send PWM signals. Check this video of mine of the RC tank: ua-cam.com/video/f3NJcaniAjs/v-deo.html
      Keep up!