7 | Connect a receiver to your Teensy in 30 Arduino code lines

preview_player
Показать описание
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.

Рекомендации по теме
Комментарии
Автор

I think this is the best explaination of PPM that I have found online. Well done!

ryanruthrhona
Автор

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

TruongDuongHuu-osxv
Автор

Great video! I thought the standard PWM frequency is 50Hz = 20ms period (pulse width = 1ms to 2ms). Your receiver produces a 250Hz PWM frequency?

mikegranberryii
Автор

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?

techmontc
Автор

Hi.thank you for your videos..i have question..can i use a another radio control ?

سجادورناصری
Автор

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

priyanshuwaghdhare
Автор

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.

Tom-wdee
Автор

Hi dear, how to control the big current for motor brusles

cahyoariwibowo
Автор

this library works only for teensy 4 so how can i use this code with arduino nano?

ahmedsherif
Автор

Hi, i am trying to do this part using labview, where i can contact you in private for information?

LucaSpezzani-gzno
Автор

compilation error.

error: 'CLOCKS_PER_MICROSECOND' was not declared in this scope; did you mean 'CLOCKS_PER_SEC'?

what is the problem??

atifnuman
Автор

The code compiles and uploads just fine however the data is all 0's no matter what. I have confirmed on a scope that something is there, but I'm not sure why the arduino interrupt doesn't interpret it correctly.

JayDee-bu
Автор

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

abineshanbalagan
Автор

I face error that name Clock per second not declared
When I face that error I compile your code
Plz help me

syedadilali