How I build my quadcopter with STM32 as flight controller.
ฝัง
- เผยแพร่เมื่อ 28 พ.ย. 2024
- Rebuilding my quadcopter with STM32 and Arduino. I am also planning to add GPS for navigation in next video. If you have any questions, please leave a comment!
Besides GPS model addon, I am also considering adding a optical flow sensor for indoor stability. If you are interested in what I am doing. please subscribe this channel for further videos!
Special thanks to Joop Brokking channel for a lot of inspiring information.
/ @joop_brokking
The above link is his channel.
The Great Unknown by Audionautix is licensed under a Creative Commons Attribution license (creativecommon...)
Artist: audionautix.com/
Genius. Madman. Comedian. Subscribed!
Thanks dude!😁
Great content,,,,drop more videos buddy
What is that blue liquid you brushed the copper board with? If possible, can you share the detailed process behind making a custom pcb with the method as shown?
I fell in love with this project ..can we make our own transmitter -receiver to reduce the cost ?
Like prototyping ur own remote or smthg
Amazing video. What do you call the process of making the board with the water and silicone?
You should use STM32 STEVAL-FCU001V1
Indeed, my chip is a bit overqualified.
muito bom o projeto eu fiz um com arduino seguindo tutorial do Joop Brokking tambem porem estou tentando fazer esse com o stm32 mas nao estou conseguindo teria como disponibilizar o circuito impresso e os codigos necessarios para funcionar forte abraço
error : 2. how can i do to solve this problem. this is caused by main program loop exceded, even i never change or add on original codes
I liked video. You can share PCB . Thank you
Thanks! I cannot share now cause this is not a perfect version of my quadcopter. I will probably share my new version of PCB and code in my next quadcopter video. 😁
@@sheldonvon5232 thank you
Can you do a quadcopter build tutorial? Especially on that focuses in programming an arduino or raspberry pi to fly it
Actually I'm already trying to do that. Thanks for the feedback ☺️
I liked the video, did you use an open source firmware for the stm32 or did you code your own firmware?
Thanks! I actually coded my own firmware.
that's awesome! Could I see your code?
Unfortunately, I accidentally deleted my code on this project. But I am now starting another quadcopter project with official HAL library. I will make another video and release the new code.
@@sheldonvon5232 Oh no rip, I look forward to watching the that video when you upload it!
Have you tried other flight controller as well? such as pixhawk or apm board
No, mostly because it would not be challenging to use such boards. They are well developed and all you need to do is tuning the PID without writing any code.
Which firmware,inav?
Sourcecode mate, i need the code for starting...
Hey that quad crash is similar to mine.I too used joop's code.Must be my fault :(
nice pcb
how much hours of works did it take in total?
It took almost a week.😁
I apologize for bothering you but I noticed you have also watch Mr. Brooking videos I hope you can help me with an issue
As you may have know, the drone suppose to hover near 1500. However after testing my drone started to hover around 1380. So when I enable auto take off the drone give me the error code number 7. So my only choice is to do a manual take off which I set the throttle at 1380. However when I set my throttle at 1380 and go to the mode 2 flight the quadcopter continue to climb up despite I move my throttle stick to the lowest position I constantly have to emergency shut down the quad copter.
I have tried another way to enable the auto take off my just shift the parameter down. For example you have your as 1500 to 1700 I shifted down to 1300-1600. And I adjusted the equation off throttle = manual take off level + xxxx - 1380(which is the level my quad will hover). When I Do this the quadcopter do take off smoothly and hover about half a meter but when I switched to mode 2 it behave unpredictable. Sometime it dropped down and doesn't want to go up but if I move the throttle up it continue to go up despite I move the throttle down.
I also made sure I mounted the altitude meter above the propeller and light proof it as well.
I know it is a long message but I want you to know I didn't just ask you because I was lazy. I have tried everything way I know how but I just couldn't figure this one out.
I am really thanksful for your help. I hope you have a great day
Sorry for the late reply. I've been busy lately. I really wanna help you but actually my code is actually quite different from his code (I took his as reference only). However, I'll try my best to figure out your problem.
Did u check if your barometer is working fine?
Hello, thank you so much for replying and please no apologize you are helping me. I'm very grateful. And yes I checked all sensor and everythjng working as it should. I will try to make a video so you could see the behavior of the quad
No problems, my friend! You could leave your email so we can be in touch.
Vonny on your FC would you be able to flash already developed firmware such as betaflight etc?
Also at hand I have a STM32F411CEU6 (black pill). I compared the pinouts of the chip to the blue pill MCU you're using. There is a couple of difference like the PB11 pin is not there (or is it labelled as something else?).
I am a complete newbie to development, even though I got some idea. Most pins are similar to the blue pill, but maybe could you produce a schematics for the viewers with the black pill?
I am actually building a new FC with this exact chip. It would be a fully open source project and I will make a new series of video about it.
@@sheldonvon5232 F*king legend! Maybe you could include connections to GPS, Minim OSD, vtx, receiver, flash popular FW, etc, should be possible (a while back Drone mesh made a series on diy FC based on a F405 chip). (Also just noticed autocorrect made your name Vonny 😂)
Haha, the Vonny really freaks me out, dude. For more details, I’m actually building a FC with optical flow sensor as well as laser distance measuring sensor, which allows you to fly indoor like DJI drones. My current work is mainly about the basic algorithms like sensor fusion, state estimation and etc., which are quite intriguing and challenging.
@@sheldonvon5232 Laser guidance haha thought you taking the pis 😂 but nope you're serious! Awesome! You working on/ got a time frame for the upcoming vid?
The laser unit is only for the measurement of height, laser guidance would require a laser radar, which is too heavy for common drones. The video would not come out too soon cuz I’m still stuck with the algorithms. 😂😂
where can i buy a GPS like in this video?
Please check if it is available on eBay or Amazon. It is a very common pixhawk GPS model.
@@sheldonvon5232 I have bought many times but got a fake GPS, I am afraid it will happen again. can you give me the link of the shop where you bought the GPS? Please help me
Many times? I'm so sorry to hear that. But I bought this from a Chinese shopping website actually. No idea if they can be delivered to your region. Please tell me how much were the GPS model that you bought (or the links to them) so I could give more advice.😁
@@sheldonvon5232 Physically my GPS is the same as yours, but when I checked the firmware was not in accordance with the original. please tell the shop site where you bought the gps?
@joop broking
1. are you dead?
2. can I see your code for this?
i am very stupid and am trying to learn how to write my own flight controller
peace
I believe I'm still alive. My code is not perfect as you can see. But yes, I can show you the code.
好