How to read Standard RC signal



  • I want to read Standard RC PWM input signal on port A (or B, C). Standard RC PWM signal is between 1.5 ms to 2 ms and have timeout at 20 ms. How to do it in UI FLOW.

    PS.
    Something that similar to "pulseIn" command in arduino?



  • @pattiuak said in How to read Standard RC signal:

    I want to read Standard RC PWM input signal on port A (or B, C). Standard RC PWM signal is between 1.5 ms to 2 ms and have timeout at 20 ms. How to do it in UI FLOW.

    PS.
    Something that similar to "pulseIn" command in arduino?

    there isn't a dedicate pwm read block,( and I am way behind with my experiments,) Have you tried playing with the analogue or digital pin reads?



  • @ajb2k3 As I Know

    • analog read will read voltage input from 0 V. to 5 V. in this case it will pickup either 0 V. or full 5 V. (depend on PWM duty when you read it). So analog read is useless for this case.

    • digital pin read is just get 0 or 1. But if I can get delta time between it change from 0 to 1 and change back from 1 to 0 it will work. But UI FLOW don't have any block that can read processing time. So it impossible to read duty time with digital pin read only.



  • @pattiuak said in How to read Standard RC signal:

    But if I can get delta time between it change from 0 to 1 and change back from 1 to 0 it will work. But UI FLOW don't have any block that can read processing time. So it impossible to read duty time with digital pin read only.

    sorry, uiflow now not support it


Log in to reply
 

Looks like your connection to M5Stack Community was lost, please wait while we try to reconnect.