• PWM resolution

    Discussion pwm resolution wipy lopy
    3
    0 Votes
    3 Posts
    897 Views
    B
    @seb Thanks for pointing out!
  • 0 Votes
    3 Posts
    1k Views
    shridattdudhatS
    @robert-hh said in Measure Pulse width of PWM waveform: UART2 or UART3 hey, robert Thank you for reply, We will try UART for the same.
  • PWM frequency

    Discussion pwm frequency max
    2
    0 Votes
    2 Posts
    1k Views
    robert-hhR
    @RobTuDelft The comment in the example is wrong. Maximum is 19455. For an input value between 19456 and 19531 you'll get 19531 Hz. Generally, the precision is low at the higher frequencies. So specifying a value of 19000 give 19011 Hz, 19200 -> 19230. So it looks as if the "real" periods are multiples of a small value like 200 ns.
  • Counting raising edges per second

    WiPy 2&3 pwm interrupt counting
    2
    0 Votes
    2 Posts
    1k Views
    robert-hhR
    @cts WiPy supports a Pin interrupt, which can be triggered with the rising edge. Look in the documentation for "Pin". And is has a timer module, which could be used for setting the gate time. Look in the documentation at "Timer". However, the precision and speed is very limited. Without testing, I would assume that it works reliably only for frequencies below 1 kHz, with a uncertainty of the gate time of about 1 ms. I
  • MG996R + PWM 3V3 **SOLVED**

    WiPy 2&3 wipi servo pwm
    5
    0 Votes
    5 Posts
    3k Views
    L
    @RobTuDelft 5V i use 2N7000 NMOSFET transistor for level shifting for testing for final i use smd BSS138
  • machine.time_pulse_us not in 1.8.6?

    Moved Discussion wipy 2.0 pwm 1.8.6
    3
    0 Votes
    3 Posts
    1k Views
    H
    Thank you. I am grateful for your reply. I started to use the pin's capability of callback. It is unfortunate the pwm call is not supported yet in the documentation. What is the best way to report bugs? If this is true, it is confusing to users of Pycom.
  • Example PWM: MarioBros

    Projects pwm buzzer
    2
    5 Votes
    2 Posts
    2k Views
    K
    @vruizvil Good one, was fun to try! Thanks!