Arduino DRONE II Part 1 receiver PWM read
HTML-код
- Опубликовано: 11 сен 2024
- Hi guys. This is a second project of the Arduino based drone. In the past video series we've used the MultiWii platform for the flight controller. Now I want to make my own code for the flight controller.
This video series will be divided in a few parts. This is the first one where we read the input signal from a commercial radio receiver. Next we read the IMU data and create the PID algorithm for 2 axis. Finnaly we create the interrupt that will write the PWM signal to 4 ESCs for the motors.
Help my projects on Patreon : / electronoobs
my Q&A page: electronoobs.co...
Canal en Español: / electronoobs en español
Thanks to Joop Brokking: • YMFC-3D part 6 - Build...
-----------------COUPONS-------------------
Radiolink AT10II: goo.gl/B5bvto
Crealitu CR10: www.gearbest.c...
Coupon code: "11CR10EU"
Creality CR10 MINI: www.gearbest.c...
COUPON: CR10MINI
Anet E10: www.gearbest.c...
Coupon code: "ANET10"
4k XIAOMI drone: www.gearbest.c...
________________________________________________________________
-----------------LINKS-------------------
Webpage tutorial: www.electronoob...
PID video: • PID brushless motor co...
PID webpage: www.electronoob...
Previous series: • Arduino drone - Part1 ...
Drone build webpage: www.electronoob...
STL files: www.electronoob...
---------------MATERIAL---------------
Full part list: www.electronoob...
Arduino NANO: www.gearbest.c...
MPU6050: www.gearbest.c...
LIPO battery: www.ebay.com/it...
ESC 12A: www.ebay.com/it...
1804 brushless motor: www.ebay.com/it...
5030 propellers: www.ebay.com/it...
LIPO connectors: www.ebay.com/it...
Slide switch: www.ebay.com/it...
Drone body: DIY : www.electronoob...
Or : www.ebay.com/it...
---------------SCHEMATICS-----------
Full schematic: www.electronoob...
ESC calibrate: www.electronoob...
Lipo connection: www.electronoob...
Propeller spin direction: www.electronoob...
1 ch schematic: www.electronoob...
4 ch schematic: www.electronoob...
--Connect the receiver as shown in the schematic above and upload this example:
--------------------CODE------------------
One channel example: www.electronoob...
Four channels example: www.electronoob...
ESC calibrate: www.electronoob...
Like share and subscribe to motivate me. Thank you
Stay tuned for the next part. Check the description for all the codes. Also the ESC calibrate code. All the schematics, ect...
if you consider helping my project, use the links above to buy the parts or check my Patreon page: www.patreon.com/ELECTRONOOBS
I use design spark and easyEDA for my schematics. But I design the schematics for the videos in Photoshop so anyone could understand..
your Magnetometer X axis is not in same direction as your MPU6050 did that work correctly , i have no experience with magnetometer so please explain me if it works.
Nice broo.. i will wait for part 2..
Great bjob... looking forward to other parts
awesome video ! I was making a same drone but was not getting this part to work properly, thanks for the help!
Bro, I hate the idea of using Arduino in a quadcopter/drone. But love your opening with the AC/DC music, so here I am. LOL
Thank you. The idea of my videos is not to build professional projects but to learn how they work... Arduino for drones is not the best but the idea is to learn how to read data, write data, create PID, etc...
Thank you and keep up!
Electronoobs Oh, THAT idea I like! Now I got it! :D
You are really good at this!!!
Ricardo Alcantara thank you! Gracias
thank you so much for explaining every steps in details!
Your explanation was really great and helpful. Thanks a lot :)
Good job dude 👍
loved it
Love your videos 🖤
Man another great video.. :)
Hola , estoy a la espera de estos tutoriales en su canal electronoobs España , gracias y excelente trabajo !!
Sos un crack
Tanks 💕
I was expecting this..but why pwm...ppms are hasle Free , in terms of wireing at least, if you are going get involved in such plz mention...and really great effort you are putting in.
In the past series I've already used PPM. A lot of you wanted PWM as well. Keep up!
Thank you
Hi thanks for your Video. I have also built my own quadcopter with own Code. Please which software did you use to build your full schematic? I found it nice...
hi, great video!! When will part 2 be out?
Plz can u make one with Bluetooth module and controlled it over phone , for lack of Singhal coverage we can use 5.8ghz antenna to increase the range of bluethooth module and use it with phone ,this will remove the trouble of making reciver ,this drone is awesome I would love to see the 2bd part of ur brushed drone
You video is awesome
I'm working on a drone but am stock can I use brushed motors instead of brushless
HELP: I know this is a couple years old but how did you wire the power to the ESCs
can i power the arduino through a bec from my esc ? i just dont like to use a high voltage for an arduino
Sir, can I use pinchangeinterrupt library. Does it works good?
your explanations very good. can you do a video how to create flight controller with mpu9250 and drone controller coding
Thank you sir ..
very nice..
thank you for sharing the code, even though it makes my head dizzy to edit it and now all that's left is making a quadcopter with the PWM receiver,
Can you help me properly? , 😀
What is mutiwii ...plz reply sir..
Thanks for that awesome tutorial
SIR ...FROM WHERE I CAN GET THIS CODE FOR adruino
Only one problem with this solution that Arduino micros() finction has a precice of +-4us (kind of jitter), that allmost 1% of movemet from neutral to max\min. It's too match for me. I started my own project that should extend life of my old transmitter, but even without embedded arduino functions all I got is +-1-1.5us. This is not so bad, but little annoying. For some planes it's ok, but on my WW2 12 scale warbirds it's cause awful unstable flight :(
Radio Shack? Well, unfortunately they are mostly out of business (closed stores, which really sucks!) in the US.
That's all around the world. Now we have online store
How much PWM input you give to ESC
Does anyone know if going the Arduino way is cheaper than a traditional build?
Why dont you create own PCB board? Would be much smaller.
I will soon!
Also, I strongly recommend you to research quaternions. Method for describing rotation using mixed acc and gyro data.
Using of acc data only not very good and dangerous method for quadcopter.
There are no need special hardware for making PCB, all you need is сlothes iron, laser printer, hydrogen peroxide, salt and lemon acid.
/watch?v=mv7Y0A9YeUc
Yeah, I making right now, not quad but USV (sea drone). Using gps, quaternions, and arduino mega, but wrinting code not in Arduino IDE, but in Atmel Studio at C lang, much more possibilities and less firmware size.
Also, you can order 10 PCBs of less than 100x100 mm for just $2 (all of them) in JLCPCB/EasyEDA. GreatScott! has some videos on this (ruclips.net/video/Fj0XuYiE7HU/видео.html )
Podrías hacerlo en español?? Gracias!!
When you exlsin it it all seems so simple and abvious. But i always get stuck some hiw like my mah watt meter is neasuring about5 amp hours leaving my batter when nothing is connected just becayse if noise ir false readings i tried to set minimum thresholds to ignore some readings. But still just readig voltage values which us easy does not worj for me you read pwm by asuming that afeter a rusecyouvshoyld get a,drop next and calculate the time this,way. But i sm sue mutphy will think of s9me thing to mes this uo forcme.
Hey ! Good job. Can't we do same with nrf24l01 ?!
Yes you can but with NRF you already receive binary values from 0 to 255 so we don't have to use interruption to read the values for each cahnnel. Thank you!
Bro plzz send the link to dwnld arduino programming app in windows 7.plzzz
Can I control drone through Bluetooth module?
Yes you can. But the range will be very less.
i2c error on multiwii gui thanks.
Please make us a receiver like the one we buy from the market
20 Kim dron med agri clchor
y el codigo, la programacion ?
En la descripción!
maybe it's time...maybe it's better to try on stm32 and faster insights and more ?!?!?!?!?
может пришло время...может лучше попробовать на stm32 и быстрее и выводов больше ?!?!?!?!?
U have copied alot of joop brokking
Not copied it just reference ❤