7 | Connect a receiver to your Teensy in 30 Arduino code lines
ฝัง
- เผยแพร่เมื่อ 29 ก.ค. 2022
- This video explains the concepts behind PWM (Pulse Width Modulation) and PPM (Pulse Position Modulation). You will use PPM to transfer signals from the FS-IA6B receiver with one signal cable to your Teensy 4.0 microcontroller with the help of the Arduino IDE. The Flysky FS-I6X radiotransmitter is used for this part.
The purpose of this video series is to learn the basics behind a quadcopter drone and enable you to build one yourself, by dividing this challenging project in several easy-to-understand parts. You use the capable Teensy 4.0 microcontroller together with the easy-to-use Arduino language.
Full code available on GitHub: github.com/CarbonAeronautics - วิทยาศาสตร์และเทคโนโลยี
I think this is the best explaination of PPM that I have found online. Well done!
Great video
Hi.thank you for your videos..i have question..can i use a another radio control ?
Hi dear, how to control the big current for motor brusles
Hi, first thanks for this awesome project.
Now a questiion. If the standard PWM signal of ESCs is 1-2ms, shouldn't the period be 2ms = 500Hz? I don't get why you are chosing 250Hz. Thanks in advance.
Hi. Thank you for your video. But I have a big question. You want to built a 4 ms closed loop controller, but as u say, the position time of ppm signal is 1-2 ms, so the time you need to read values from transmitter will surely exceed 4ms. I don't see in your series any part that you check if your code can complete with no more than 4ms. Looking forward to your feedback
Hi Sir, thank you so much for the explanation. It helps a lot. For arduino nano, do you know what pin is recommended to read the ppm signal from fsiA6B?
Normally only the pins that can handle interrupts; D2 or D3. But I haven't tried it myself.
@@carbonaeronautics True
Great video! I thought the standard PWM frequency is 50Hz = 20ms period (pulse width = 1ms to 2ms). Your receiver produces a 250Hz PWM frequency?
this library works only for teensy 4 so how can i use this code with arduino nano?
hello sir , i am building my drone but i have only pwm receiver and transmitter and i don't know how to implement pwm receiver into the final code please help me
Hi sir, I'm building my drone for my control engineering project with your guidance through your videos. Learned so many things really grateful for you... And I'm using FS-CT6B transmitter and FS-R6B receiver. On that receiver nothing is mentioned as ppm channel. it is mentioned on the transmitter as DSC port: PS2; Output: PPM. When I tried with the your code by connecting receiver to teensy and followed all steps perfectly then the channel number and all output shows 0 in serial monitor. Please help me to get rid of this problem sir...
I'm using F450 frame
1000kv motors
30A ESCs
2200 lipo battery
Teensy 4.0
everything else as you have mentioned
Just check once again if you have connected to the 14th pin
compilation error.
error: 'CLOCKS_PER_MICROSECOND' was not declared in this scope; did you mean 'CLOCKS_PER_SEC'?
what is the problem??
Hey have you find solution for this error
Pls help me because I get the same error..
I don't know what to do
I am stuck at the same spot, any solutions?
@@priyanshuwaghdhare5458 I am stuck at the same spot, any solutions?
I face error that name Clock per second not declared
When I face that error I compile your code
Plz help me
Hii have you found the error solution pls help me because I keep gating the same error
Hi, i am trying to do this part using labview, where i can contact you in private for information?