Thank you, good work Joop Brokking Changes in STM32 code. Assign serial-line pins in the Arduino IDE -Serial1.begin (9600); // TX-PA9 / RX-PA10 -Serial2.begin (9600); // TX-PA2 / RX-PA3 -Serial3.begin (9600); // TX-PB10 / RX-PB11 -Serial.Begin (9600); // USB (PA11 / PA12) "HardWire" library is integrated into "wire.h" and renamed to "TwoWire" Summary of responses to the 2020-09-18 code adjustment YMFC-32_Setup_ver-1a -Serial.begin(57600); to Serial1.begin(57600); -"HardWire" to "TwoWire" "YMFC-32_Flight_Controller_ver-1a" -"HardWire" to "TwoWire"
Hi Joop. I would like to thank you for al this work and sharing it with us. It is a wealth of knowledge. Getting back intto the RC hobby from being not able for years i am on the verge of building this. Thanks again.
Joop! You're really good at what you do! continue like this, my friend! You really are an expert and it's low cost drones! Only now lack to put in your programs the option of "flight modes" I believe that a "Headless" would already help! And something with barometer to keep the altitude of course! Congratulations on the excellent work!
@ 3:50 you said ground is connected to the ground (battery negative). but in your schematic it is connected to POSITIVE of battery? also can i use stm cube ide instead of arduino ide?
Sir, could you please suggest how to modify the code to make a hexacopter instead of a quad?? Like the connections for the 2 extra ESCs and necessary changes in the code...
Hi Joop. Thanks for you work. I would like to know if it's possible use 5 volts from a pdb matek to supplies the stm32 and all circuite instead use one esc?
In my case, when i turn left the left stick throttle increases, turn down the left stick pitch increases With right stick when turn left roll increases. I did all the connection according to the schematic. Any answer for this problem?
hi. I have build F450 drone but not work calibration Esc. When i put battery i hear only 2-3 beep. I put top position the trotthle and after connect battery i move down the throttle. But nothing. I dont hear another beeps and motors not spin. Where is my mistake ? thnks
@joop brokking Why didn't you use a diode in this set up? you did use it in your earlier setup. Waarom wordt er hier geen diode gebruikt en wel in de eerdere versies?
This is a very rewarding project and thank you for sharing!!! I've decided to give it a go but when compiling i'm getting this error: YMFC-32_Setup_ver-1a:31:1: error: 'HardWire' does not name a type HardWire HWire(2, I2C_FAST_MODE); I think i've installed the libraries, also uploaded an i2c scanner and mpu6050 test sketches in the stm32 board and both work. any idea why am i getting this error. my suspicion would be library conflict but since my knowledge in coding is minimal i need some help here. Thank you in advance
hi Mr. joop I am building ur quadcopter using FLIP 32 flight controller I need to load ur code in to flight controller I already installed the driver what I need to know is how to connect the receiver channels and how to connect it to the ESC I checked the schematic diagram of the FLIP 32 it have some difference with ur schematic could u please help me can i use the data sheet that come with FLIP 32
Hello, I just finished editing with the stm32f103c8t6, but the program works with arduino buno! I would like to have the program for the stm32f103c8t6. thank you
Can I use a transceiver instead of single receiver at the quadcopter so I can send data to computer either ? If yes, which product do you recommend if I am using the same RC controller, and Arduino Mega.
I was interested to know that does this flight controller Autolevels the Quadcopter like the YMFC-AL Project or is just Acro like the YMFC-3D V2? And also I am in love with all your projects because of the neatness of the prototypes and the simplicity and of course the content quality. I really appreciate your work and hope you will continue doing such awesome projects...
In the beginning of the flight controller program there is a variable "auto_level". When set to false the quadcopter has Acro capabilities. Never, NEVER switch AL-Acro modes during flight!
Hey Joop. Great tutorial. Thanks! Short question: It is save connecting the STM32 to the computer via USB and have the battery connected to test the motors at the same time? It is possible to damage my usb port?
Under normal circumstances the highest 5V will feed the electronics. Or the load will be shared. Most likely the USB port is protected against short circuits. So this should not be a problem.
Very good work that a lot for all your efforts , i have question if we can convert to esp32 and take profit og the wifi module , the idea its to make a android app to control the droe via wifi
Thank you very much, sir! I found that when I clicked the link you attached, the page didn’t show the zip file that contained the test programs. Only when I clicked the download tab again did the page show the zip file. I don’t know if this would be some helpful information if anyone else wants to download the files.
Hello sir. I'm trying to figure out a simple question that I found no answer on the internet. And after watching this video I think you are the very one that can answer me. Can I load my own firmware to any STM32F103 board using Arduino IDE via USB? The one you mentioned in the video has a USB to serial converter, but are the ones without converters already have bootloaders burned?
Found another problem in hardware(Input capture mode without battery). The 5v from STM32 won't enough for the receiver. Resulting failure in reading PWM signals
well, just follow the normal procedure mentioned in the video to calibrate the devices. Play with if you'll figure it out. Btw initial rc testings might get tricky. Do the tests that can be done.
I did but didn’t work only if i switch the 2 esc cables with other 2 esc cables that are connected to the stm32 then the 2 motor were spinning will not now and the other 2 motor will spin
joop brokking still i m finding code for auto level quadcopter through mpu6050 control by stm32f103c8 i didnt found code kindly send me link so i could download code
Hello, first I have to mention I typed this same reaction as response to a different video. I build this FC using the STM32. Installed the test program version 2b. All seems to work. All tests run. Even the vibration test runs fine. Also I can start all the motors. BUT ! ! ! When I switched on the power (from a 11.1V accu) the motors are getting nervous and are making random movements in both directions. Motors and ESC's become very hot. One of the motors (motor-1) starts smoking. So power-off..... There is a note *1 in the schematic saying the red wires from the ESC's should not be connected except for one. I connected them all. I also used a bucksupply providing power to the FC for the 11.1V battery. But I have the feeling this can not be the reason for the random movement of the motors after switching on. Does any of you have an idea why I have this problem?
hey thanks you but i have a problem with the code, i did all the thing you said but it still writting this error "HardWire" does not name a type, so i can't upload the program after all my soldering it's quite annoying plz help me
I just tried flying my build of this and noticed some drift etc. that I was having a hard time dealing with but in doing so I realized that the orientation of the pitch is opposite to what I was expecting and indeed opposite to that of the little JJRC H36. I would have expected to move the pitch forward to go forward and back to go back as in an airplane and indeed in the H36. Is this a mistake or am I missing something? I can reverse the Channel (2) on my transmitter to correct this I believe. Thanks, I may have more queries as I work through my issues.
If you run the setup program you will see the arrows on the screen that indicate the stick direction. Pitch stick back is nose up. So you have to reverse your transmitter channel.
Thanks for confirming. I did all the setup and it works as advertised I just didn’t realize how it would affect me until I actually tried to fly it. Old age doesn’t make for a “plastic” brain!
I didn't find any YMFC-32 (Non Autonomous) software in his website & when I was gonna test the YMFC-32 Autonomous code that code did not compile in arduino IDE
what if you swap two channels? For example throttle with yaw. Is the fault moving to the other channel? Also make sure that the ground ( - ) of the receiver is connected to the ground of the STM32. Otherwise no pulse is detected.
Ok so I hope someone see this but I’m doing this project and when I connect my battery my circuit does NOT power on I have a 3 cell 11.1 v 5200mAh battery( the only thing not right is the current supposed to be 2200)
@@Joop_Brokking I also visited your website for YMFC-32 non autonomous code but there is no code files for only YMFC-32 non autonomous hardware test program & flight controller program,please tell/answer me as I saw most of people did not find this same code so that I can tell/help them,anyway thanks Joop,my friend..
Boris1990ua only one bec nescessary to power everything on 5V. The becs don't allways output exactly 5V so any difference between them may cause problems.
hi joop I I'm building stm 32 qadcopter every thing was going ok but when I tried to flash the code the sirial monitor doesn't display any thing the external red led( whech is connected to PB4) stays on for half second and blinks could u help me please what could be the problem i checked every thing but I couldn't find the problem please help me i am stack here
Did you upload the test software first? This will help to test the hardware. If nothing works you could try to upload a simple program just to see if the STM32 works.
If you use the STM32 for Arduino add-on from: github.com/rogerclarkmelbourne/Arduino_STM32 Change: HardWire HWire(2, I2C_FAST_MODE); To: TwoWire HWire (2, I2C_FAST_MODE);
hello, Sir. Have you solved your problem?When I compile the program STM32 TEST, it appears ['HardWire' does not name a type], a similar problem to yours, which caused the program to fail to compile. Can you help me? Thank you very much~
Giorgi Bichiashvili keep the USB cable attached to pc. Upload only the setup sketch for STM32. STM32 in programmode. Sketch setup uploaded? Place the pin back in non programmode. Open the serial monitor in Arduino IDE. Now press the button on the STM32. The test program will start. Follow the instructions onscreen. Read all instructions of Joop Brokking. All tested, load the flight program. Keep in mind that the values of the gyro had to be put in the setup and flight sketch. Mind the program and non program mode.
Hello sir I'm having a problem with test program. I get zero values in receiving mode but from your 'Connecting RC receiver videos' i downloaded ICM_2 code and when i upload that i get good results but when i try to upload test program i get zero all the time any idea why?
Hi Joop, good job friend, thank you for your efforts. If you make a video about explanation and implementation of kalman filter, D term lowpass on PID, dynamic notch filter, It will very helpful for many people and I think you will get more subscription.
People keep thinking that the Kalman filter is some sort of holy grail that will make everything right. I simply don't go with that because I try to keep it as simple and understandable as possible. The more I know about Kalman the more I think it's heavily overestimated. On the other hand there is much more to gain by decreasing the main program loop time to get more data and use better (faster) ESC's with break functionality.
I am unable to find a gps that has a genuine HMC5883L compass they all have the DA5883 can you tell me where to buy one and that doesn't cost me a squillion dollars as I am only on a disability pension
I just checked my transmitter pulses, and they read within the correct range (1000-2000). I then connected the ESC data wire to channel 1 of the receiver, and all 4 ESC wires read values that are not 1000-2000. They read anywhere from 3500-13000. Because of this, I am not able to calibrate my ESCs. Thoughts?
The only thing that I can think of is that you not have a solid ground and signals can start to float. Make sure that you have a solid power supply and that all your connections are reliable soldered.
Thank you for the reply. Upon further investigation I figured out that I forgot to solder ONLY the ESC pin headers to the stm32 while all other pins were soldered to the board and headers *major facepalm*. So the 4 ESC wires were only making contact to the stm32 when the pins were bent. Keep on making the quality content. You've definitely earned a new subscriber.
Ook hier vordert het project met flinke sprongen. Ik zit naar je schema te kijken (lijkt bijna indentiek aan de mijne, echter ik heb ook B0 en B1 aangesloten). Ik heb echter wel een opmerking over je getoonde schema: ik zie dat je de VB pin (Vbat) niet hebt aangesloten, echter in de documentatie van de STM32 staat het volgende: "If no external battery is used in the application, it is recommended to connect VBAT externally to VDD with a 100 nF external ceramic decoupling capacitor (for more details refer to AN2586)".
You don't know how much we learned from your videos, and other new people will eventually find your content
Thank you, good work Joop Brokking
Changes in STM32 code.
Assign serial-line pins in the Arduino IDE
-Serial1.begin (9600); // TX-PA9 / RX-PA10
-Serial2.begin (9600); // TX-PA2 / RX-PA3
-Serial3.begin (9600); // TX-PB10 / RX-PB11
-Serial.Begin (9600); // USB (PA11 / PA12)
"HardWire" library is integrated into "wire.h" and renamed to "TwoWire"
Summary of responses to the 2020-09-18 code adjustment
YMFC-32_Setup_ver-1a
-Serial.begin(57600); to Serial1.begin(57600);
-"HardWire" to "TwoWire"
"YMFC-32_Flight_Controller_ver-1a"
-"HardWire" to "TwoWire"
My goal is to release the software and website on January 13, 2018.
Joop Brokking we are waiting for it sir, you are the person who made me learn arduino and microcontrollers🙏
Thank you for doing this
Will be waiting..
Please make flight controller with gps
!! I can't wait !!
I did the Balance robot and I will build this one
Thank you Mr Joop
You are great.
Hi Joop. I would like to thank you for al this work and sharing it with us. It is a wealth of knowledge. Getting back intto the RC hobby from being not able for years i am on the verge of building this. Thanks again.
Joop! You're really good at what you do! continue like this, my friend! You really are an expert and it's low cost drones! Only now lack to put in your programs the option of "flight modes" I believe that a "Headless" would already help! And something with barometer to keep the altitude of course! Congratulations on the excellent work!
I'm currently working on a telemetry and a altitude hold add-on. And I hope to explain more features this year.
@ 3:50 you said ground is connected to the ground (battery negative). but in your schematic it is connected to POSITIVE of battery?
also can i use stm cube ide instead of arduino ide?
Sir, could you please suggest how to modify the code to make a hexacopter instead of a quad?? Like the connections for the 2 extra ESCs and necessary changes in the code...
hello, can you do it for the aircraft and specifically for the FSi A6B receiver!?
hey after esc calibration the flight controller program is not working can u plz help me out with this problem?
Hello Sir, Is it possible to add a FPV Camera to your YMFC-32 autonomous Drone?
Awaiting your reply...
Hi joop, I was wondering if is it possible to make ymfc-32 using stm32f401 blackpill and not the one you are using bluepill.
Hi Joop. Thanks for you work. I would like to know if it's possible use 5 volts from a pdb matek to supplies the stm32 and all circuite instead use one esc?
In my case, when i turn left the left stick throttle increases, turn down the left stick pitch increases
With right stick when turn left roll increases. I did all the connection according to the schematic. Any answer for this problem?
hi. I have build F450 drone but not work calibration Esc. When i put battery i hear only 2-3 beep. I put top position the trotthle and after connect battery i move down the throttle. But nothing. I dont hear another beeps and motors not spin. Where is my mistake ? thnks
Good work, it would be good to apply it with the ESP32, which is dual core at 240Mhz , WIFI, etc.. and compatible with the arduino ide
I was thinking the same thing.
I'm thinking the same thing.
Hi @joop Brokking. Actually i had a problem regarding the receiver outputs displayed on the serial monitor.
They are like :
start: 1 , Roll:
Im trying to add 6*hrscr04 all side and up-down but i m confuse for PPM as it has only 1 signal wire and i have PWM can u help me
Anyone plz help me while compling this code i am having error . I2C_FAST _MODE was not declared in this scope
@joop brokking Why didn't you use a diode in this set up? you did use it in your earlier setup.
Waarom wordt er hier geen diode gebruikt en wel in de eerdere versies?
This is a very rewarding project and thank you for sharing!!! I've decided to give it a go but when compiling i'm getting this error: YMFC-32_Setup_ver-1a:31:1: error: 'HardWire' does not name a type
HardWire HWire(2, I2C_FAST_MODE);
I think i've installed the libraries, also uploaded an i2c scanner and mpu6050 test sketches in the stm32 board and both work. any idea why am i getting this error. my suspicion would be library conflict but since my knowledge in coding is minimal i need some help here. Thank you in advance
Use TwoWire instead HardWire
oh i just thank you so much, i think it lost of library:
Thank you very much for the detailled and clear informations.
Cann't download softwarepackage YMFC_32 and YMFC_32_auto. Message 404 Page not found
When Compiling the setup code i got error for HardWire.h library why
I am trying to make a camera gimbal (e a is open source) Will you Cover the basics of using quaternion angles in the context of quads?
Sir as u have provided the schematic of the project but sir I want to know what voltage and current u provided to the PA4 pin...
//analogRead => 0 = 0V ..... 4095 = 3.3V
//The voltage divider (1k & 10k) is 1:11.
//analogRead => 0 = 0V ..... 4095 = 36.3V
//36.3 / 4095 = 112.81
The pin Lipo is 12.6V right ?. Why in here is 36.3V ?
Can anyone explain me?
hello,
I have problem ...
only 2 motor spinning and the other's are not why?
someone help me please.
thanks for helping
Can I use flysky ct6b transmitter?
hi Mr. joop I am building ur quadcopter using FLIP 32 flight controller I need to load ur code in to flight controller I already installed the driver what I need to know is how to connect the receiver channels and how to connect it to the ESC I checked the schematic diagram of the FLIP 32 it have some difference with ur schematic could u please help me can i use the data sheet that come with FLIP 32
o codigo nao esta carregando da o seguinte erro hardwire does not name a type
Hi, I have problems with the sketch :c, I don't Know if is my library or other thing, pls help, my sketch don't compile
Hello,
I just finished editing with the stm32f103c8t6, but the program works with arduino buno!
I would like to have the program for the stm32f103c8t6.
thank you
Can I use a transceiver instead of single receiver at the quadcopter so I can send data to computer either ? If yes, which product do you recommend if I am using the same RC controller, and Arduino Mega.
I was interested to know that does this flight controller Autolevels the Quadcopter like the YMFC-AL Project or is just Acro like the YMFC-3D V2? And also I am in love with all your projects because of the neatness of the prototypes and the simplicity and of course the content quality. I really appreciate your work and hope you will continue doing such awesome projects...
In the beginning of the flight controller program there is a variable "auto_level". When set to false the quadcopter has Acro capabilities. Never, NEVER switch AL-Acro modes during flight!
Hey Joop. Great tutorial. Thanks! Short question: It is save connecting the STM32 to the computer via USB and have the battery connected to test the motors at the same time? It is possible to damage my usb port?
Under normal circumstances the highest 5V will feed the electronics. Or the load will be shared. Most likely the USB port is protected against short circuits. So this should not be a problem.
When I am upload the program then serial monitor show warning throttle is enabled and the board is unable to arm
Hi, i changed the line to the new line but a new error was given " expected unqualified-id before '?' token " What should I do ? Thanks for all
Hello Sir, can i make this Flight Controller Board with Arduino Nano?
Very good work that a lot for all your efforts , i have question if we can convert to esp32 and take profit og the wifi module , the idea its to make a android app to control the droe via wifi
Hi sir, where could I find the test program you mentioned at 4:55 in your website?
www.brokking.net/YMFC-32_downloads.html
Thank you very much, sir! I found that when I clicked the link you attached, the page didn’t show the zip file that contained the test programs. Only when I clicked the download tab again did the page show the zip file. I don’t know if this would be some helpful information if anyone else wants to download the files.
@@Joop_Brokking There is no code and files, only stm libraries.. plz help with codes
use commensence
Awesome as always.
Thank you, i'm building my drone follow your video. So far so good but how to use mutiple I2C, UART on Blue Pill ?
check the STM32 for Arduino forum: stm32duino.com
In my STM controller is perfectly working with receiver but i2c device is not detecting pls help me sir
Firoz Khan,What happened then?Did you solve this i2c atlast?
You mentioned that this code can also be used with a Flip32. Is it possible to use this hardware with Clean Flight or Beta Flight?
Can it work with ardupilot or betaflight software.
With any modifications ?
What does YM stand for?
Hello sir. I'm trying to figure out a simple question that I found no answer on the internet. And after watching this video I think you are the very one that can answer me.
Can I load my own firmware to any STM32F103 board using Arduino IDE via USB?
The one you mentioned in the video has a USB to serial converter, but are the ones without converters already have bootloaders burned?
Sir Can I use Arduino nano instead of stm32? plz sir rply me
hii joop my quad weights about 1000 grams and the total thrust is 2520g should I need more thrust motors??
Normally the quad hovers at half throttle. So you should be fine.
Mr job can I use the same type of esc in this STM quadcopter to ymfc v1
Can you access the timers for precise timing on these microcontrollers the same way as with avr ("arduino")?
Yes, please check this video as an example: ua-cam.com/video/JFSFbSg0l2M/v-deo.html
Found another problem in hardware(Input capture mode without battery). The 5v from STM32 won't enough for the receiver. Resulting failure in reading PWM signals
what did you do then ? I have the same problem
well, just follow the normal procedure mentioned in the video to calibrate the devices. Play with if you'll figure it out. Btw initial rc testings might get tricky. Do the tests that can be done.
Also i have problem that only 2 motor are spinning and the other’s are not and I did the calibration and didn’t work do you know how i can solve it?
Do the motor testing, check your circuitry, check the motors individually
I did but didn’t work only if i switch the 2 esc cables with other 2 esc cables that are connected to the stm32 then the 2 motor were spinning will not now and the other 2 motor will spin
I'm using the FS-IA6B receiver, do I still need to connect channel signals 1 to 6 or just 1 wire that's from PPM/CH1?
@khimaira - I am using it as well but how you connected it ?
@@eliastannous8327 Sorry I forgot the details, but either worked, I tried both ways one wire and 6
is it necessary to add a voltage divider to A4 ?
That very awesome.... 👏👏👏👏
joop brokking still i m finding code for auto level quadcopter through mpu6050 control by stm32f103c8 i didnt found code kindly send me link so i could download code
I can not find it this "YMFC-32_Flight_Controller_test_ program" where it can be downloaded
It's in the same file as the flight controller code.
hi, the quality of work is super awesome, i need help regarding STM 32, i cant find the code, i dont want autonomous, just need simple one, plz help
Most of people did not find non autonomous code...that is the problem
Hello, first I have to mention I typed this same reaction as response to a different video.
I build this FC using the STM32.
Installed the test program version 2b.
All seems to work. All tests run. Even the vibration test runs fine.
Also I can start all the motors. BUT ! ! !
When I switched on the power (from a 11.1V accu) the motors are getting nervous and are making random movements in both directions. Motors and ESC's become very hot. One of the motors (motor-1) starts smoking.
So power-off.....
There is a note *1 in the schematic saying the red wires from the ESC's should not be connected except for one.
I connected them all. I also used a bucksupply providing power to the FC for the 11.1V battery.
But I have the feeling this can not be the reason for the random movement of the motors after switching on.
Does any of you have an idea why I have this problem?
I have same problem. It is caused by loop time exceeded
hey thanks you but i have a problem with the code, i did all the thing you said but it still writting this error "HardWire" does not name a type, so i can't upload the program after all my soldering it's quite annoying plz help me
same here!
I just tried flying my build of this and noticed some drift etc. that I was having a hard time dealing with but in doing so I realized that the orientation of the pitch is opposite to what I was expecting and indeed opposite to that of the little JJRC H36. I would have expected to move the pitch forward to go forward and back to go back as in an airplane and indeed in the H36. Is this a mistake or am I missing something? I can reverse the Channel (2) on my transmitter to correct this I believe. Thanks, I may have more queries as I work through my issues.
If you run the setup program you will see the arrows on the screen that indicate the stick direction. Pitch stick back is nose up. So you have to reverse your transmitter channel.
Thanks for confirming. I did all the setup and it works as advertised I just didn’t realize how it would affect me until I actually tried to fly it. Old age doesn’t make for a “plastic” brain!
Hi sir, I can't find the YMFC-32 set-up program and flight controller program (non-autonomous)
hello , even i cant he find the code on the website or anywhere else. pls reply
I didn't find any YMFC-32 (Non Autonomous) software in his website & when I was gonna test the YMFC-32 Autonomous code that code did not compile in arduino IDE
nice easy to understand
Please help receiver input value of throttle is zero show wire connection is correct
what if you swap two channels? For example throttle with yaw. Is the fault moving to the other channel? Also make sure that the ground ( - ) of the receiver is connected to the ground of the STM32. Otherwise no pulse is detected.
Ok so I hope someone see this but I’m doing this project and when I connect my battery my circuit does NOT power on I have a 3 cell 11.1 v 5200mAh battery( the only thing not right is the current supposed to be 2200)
where i can get this file project?
Great video as usual.. :-)
Where is the test program?? I could not find it in the files that I downloaded from your website
What YMFC version did you download? The YMFC-32 of the YMFC-AL?
@@Joop_Brokking I also visited your website for YMFC-32 non autonomous code but there is no code files for only YMFC-32 non autonomous hardware test program & flight controller program,please tell/answer me as I saw most of people did not find this same code so that I can tell/help them,anyway thanks Joop,my friend..
Great video. Can anybody explain to me why only one BEC should be connected?
Boris1990ua only one bec nescessary to power everything on 5V. The becs don't allways output exactly 5V so any difference between them may cause problems.
When using switched BEC modules they will "fight" each other. Causing an unstable voltage.
Joop Brokking also, many becs are switching to regulate voltage (e.g pwm, not analog regulators), meaning the pulses aren't syncronized.
Hi, great videos man, I just wanted to ask you a question about what program you used to draw the schematic, please I hope your response soon
I used LibreCAD for that.
Why didn't you use atmel studios, I though you switched over to it from the arduino ide
For my own projects I use AS. For the things that I share on UA-cam I still use the Arduino IDE.
Great video (again)! A short note on your video equipment for making the videos and also the software?
Thanks! I use VLC for screen capture, Magix video deluxe for editing and a Canon Legria HF M52 for filming.
hi joop I I'm building stm 32 qadcopter every thing was going ok but when I tried to flash the code the sirial monitor doesn't display any thing the external red led( whech is connected to PB4) stays on for half second and blinks could u help me please what could be the problem i checked every thing but I couldn't find the problem please help me i am stack here
Did you upload the test software first? This will help to test the hardware. If nothing works you could try to upload a simple program just to see if the STM32 works.
Now every thing is all right but pulse still 0 and print intro is not print on serial monitor please halp
Please sir add gps also in this so it or better
Can I use flysky i6 ??
Hey Joop Nice Work ......
I can not upload YMFC-32_Flight_Controller_ver-1a this error indicates " 'HardWire' does not name the type " i need help
change:
HardWire HWire (2, I2C_FAST_MODE);
into:
TwoWire HWire (2, I2C_FAST_MODE);
Hi, i changed the line to the new line but a new error was given " expected unqualified-id before '?' token "
What should I do ? Thanks for all
very nice work
How do you measure temperature?
Great project!
Manuauto mpu6050 support it
trunghieu880 ok, thanks
what is the role of ch 5 and ch 6
Whining I upload the program in stm32 then HWIRE` not declared in this scope error show by arduino ide
If you use the STM32 for Arduino add-on from: github.com/rogerclarkmelbourne/Arduino_STM32
Change:
HardWire HWire(2, I2C_FAST_MODE);
To:
TwoWire HWire (2, I2C_FAST_MODE);
hello, Sir. Have you solved your problem?When I compile the program STM32 TEST, it appears ['HardWire' does not name a type], a similar problem to yours, which caused the program to fail to compile. Can you help me? Thank you very much~
Hi, Joop Brokking thank you very much, the program can be compiled normally, so happy to meet you~
@@赵健朗 hello i also fase this problem how to correct it .can you help me
@@Joop_Brokking: after changing this error occurs
error: 'PB9' was not declared in this scope
pinMode(PB9, PWM);
i did everything but i can't find this flight controller test program
Giorgi Bichiashvili keep the USB cable attached to pc. Upload only the setup sketch for STM32. STM32 in programmode. Sketch setup uploaded? Place the pin back in non programmode. Open the serial monitor in Arduino IDE. Now press the button on the STM32. The test program will start. Follow the instructions onscreen. Read all instructions of Joop Brokking. All tested, load the flight program. Keep in mind that the values of the gyro had to be put in the setup and flight sketch. Mind the program and non program mode.
@@robsmit932 most of people did not find YMFC-32 non autonomous hardware test program & flight control program..How he could upload the sketch?
Hello sir I'm having a problem with test program. I get zero values in receiving mode but from your 'Connecting RC receiver videos' i downloaded ICM_2 code and when i upload that i get good results but when i try to upload test program i get zero all the time any idea why?
Hello,
you use which processor, the stm32 or arduino uno?
@@pascalou95pascal52 i used stm32f103c8t6 but i didnt make the pwm to ppm converter
@@furkantut7885 you can use ppm output compatible receiver
@@sandideas5993 my receiver has pwm output and i cant change it right now
When I uploaded the program it comes out this 'HardWire' does not name a type. What have I done wrong?
Change it: "HardWire"->"TwoWire"
@@aivaraspetrikas15 I changed the HardWire -> TwoWire but I2C_FAST_MODE 'was not declared in this scope i can't know what to do, help me
@@NguyenHung-rz5uj select the appropriate stm32 board in the tools
Hi Joop, good job friend, thank you for your efforts.
If you make a video about explanation and implementation of kalman filter, D term lowpass on PID, dynamic notch filter, It will very helpful for many people and I think you will get more subscription.
People keep thinking that the Kalman filter is some sort of holy grail that will make everything right. I simply don't go with that because I try to keep it as simple and understandable as possible. The more I know about Kalman the more I think it's heavily overestimated.
On the other hand there is much more to gain by decreasing the main program loop time to get more data and use better (faster) ESC's with break functionality.
You are legend!!!
Can I u programs GpS system in Arduino
yes,GPS is also easy as this...If you need you can contact me.
Great. As usual
;)
error:: 'HardWire' does not name a type
please provide solution sir!
me too
@@shinemg7825 hi type TwoWire instead of HardWire
I'm getting HardWire error can you help me
Change Hardwire to TwoWire
thanks i love that
i mean the esc output channel and input
USE TwoWire
Instead of HardWire
your voice reminds me of that photography guy with the dog
I am unable to find a gps that has a genuine HMC5883L compass they all have the DA5883 can you tell me where to buy one and that doesn't cost me a squillion dollars as I am only on a disability pension
Channel 3 input value is zero shown how to solve
Check the receiver connections. You could also swap channels on you receiver to see if it is the receiver or the STM32.
I just checked my transmitter pulses, and they read within the correct range (1000-2000). I then connected the ESC data wire to channel 1 of the receiver, and all 4 ESC wires read values that are not 1000-2000. They read anywhere from 3500-13000. Because of this, I am not able to calibrate my ESCs. Thoughts?
The only thing that I can think of is that you not have a solid ground and signals can start to float. Make sure that you have a solid power supply and that all your connections are reliable soldered.
Thank you for the reply. Upon further investigation I figured out that I forgot to solder ONLY the ESC pin headers to the stm32 while all other pins were soldered to the board and headers *major facepalm*. So the 4 ESC wires were only making contact to the stm32 when the pins were bent. Keep on making the quality content. You've definitely earned a new subscriber.
Ook hier vordert het project met flinke sprongen. Ik zit naar je schema te kijken (lijkt bijna indentiek aan de mijne, echter ik heb ook B0 en B1 aangesloten).
Ik heb echter wel een opmerking over je getoonde schema: ik zie dat je de VB pin (Vbat) niet hebt aangesloten, echter in de documentatie van de STM32 staat het volgende: "If no external battery is used in the application, it is recommended to connect VBAT externally to VDD with a 100 nF external ceramic decoupling capacitor (for more details refer to AN2586)".
nice
Do some quadcopter using arduino nano
You can use the YMFC-AL and replace the Arduino UNO with an Arduino Nano.
www.brokking.net/ymfc-al_main.html