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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 22

  • @ryanruthrhona
    @ryanruthrhona ปีที่แล้ว +3

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

  • @E-Engineering_Life
    @E-Engineering_Life ปีที่แล้ว

    Great video

  • @user-vq3pq7ck8v
    @user-vq3pq7ck8v 11 หลายเดือนก่อน

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

  • @cahyoariwibowo7624
    @cahyoariwibowo7624 28 วันที่ผ่านมา

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

  • @Tom-wd2ee
    @Tom-wd2ee 9 หลายเดือนก่อน

    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.

  • @TruongDuongHuu-os8xv
    @TruongDuongHuu-os8xv 2 หลายเดือนก่อน

    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

  • @techmontc8360
    @techmontc8360 ปีที่แล้ว +1

    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?

    • @carbonaeronautics
      @carbonaeronautics  ปีที่แล้ว +2

      Normally only the pins that can handle interrupts; D2 or D3. But I haven't tried it myself.

    • @E-Engineering_Life
      @E-Engineering_Life ปีที่แล้ว +1

      @@carbonaeronautics True

  • @mikegranberryii
    @mikegranberryii 3 หลายเดือนก่อน

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

  • @ahmedsherif7732
    @ahmedsherif7732 11 หลายเดือนก่อน

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

  • @priyanshuwaghdhare5458
    @priyanshuwaghdhare5458 10 หลายเดือนก่อน

    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

  • @abineshanbalagan4048
    @abineshanbalagan4048 ปีที่แล้ว +2

    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

    • @3dprintcess505
      @3dprintcess505 ปีที่แล้ว

      Just check once again if you have connected to the 14th pin

  • @atifnuman3354
    @atifnuman3354 11 หลายเดือนก่อน +1

    compilation error.
    error: 'CLOCKS_PER_MICROSECOND' was not declared in this scope; did you mean 'CLOCKS_PER_SEC'?
    what is the problem??

    • @priyanshuwaghdhare5458
      @priyanshuwaghdhare5458 6 หลายเดือนก่อน +1

      Hey have you find solution for this error

    • @priyanshuwaghdhare5458
      @priyanshuwaghdhare5458 6 หลายเดือนก่อน +1

      Pls help me because I get the same error..
      I don't know what to do

    • @MrKavkaz88
      @MrKavkaz88 3 หลายเดือนก่อน

      I am stuck at the same spot, any solutions?

    • @MrKavkaz88
      @MrKavkaz88 3 หลายเดือนก่อน

      @@priyanshuwaghdhare5458 I am stuck at the same spot, any solutions?

  • @syedadilali5485
    @syedadilali5485 8 หลายเดือนก่อน

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

    • @priyanshuwaghdhare5458
      @priyanshuwaghdhare5458 6 หลายเดือนก่อน

      Hii have you found the error solution pls help me because I keep gating the same error

  • @LucaSpezzani-gz7no
    @LucaSpezzani-gz7no ปีที่แล้ว

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