Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. pwm
    Log in to post

    • B

      PWM resolution
      Discussion • lopy wipy pwm resolution • • binux  

      3
      0
      Votes
      3
      Posts
      890
      Views

      B

      @seb Thanks for pointing out!
    • shridattdudhat

      Measure Pulse width of PWM waveform
      Discussion • lopy frequency pwm pulse counter pulse • • shridattdudhat  

      3
      0
      Votes
      3
      Posts
      1484
      Views

      shridattdudhat

      @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.
    • RobTuDelft

      PWM frequency
      Discussion • frequency pwm max • • RobTuDelft  

      2
      0
      Votes
      2
      Posts
      1050
      Views

      robert-hh

      @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.
    • C

      Counting raising edges per second
      WiPy 2&3 • interrupt pwm counting • • cts  

      2
      0
      Votes
      2
      Posts
      1042
      Views

      robert-hh

      @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
    • livius

      MG996R + PWM 3V3 **SOLVED**
      WiPy 2&3 • pwm servo wipi • • livius  

      5
      0
      Votes
      5
      Posts
      2624
      Views

      livius

      @RobTuDelft 5V i use 2N7000 NMOSFET transistor for level shifting for testing for final i use smd BSS138
    • H

      machine.time_pulse_us not in 1.8.6?
      Discussion • wipy 2.0 pwm 1.8.6 • • happyday  

      3
      0
      Votes
      3
      Posts
      1413
      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.
    • vruizvil

      Example PWM: MarioBros
      Projects • pwm buzzer • • vruizvil  

      2
      5
      Votes
      2
      Posts
      1985
      Views

      K

      @vruizvil Good one, was fun to try! Thanks!
    • 1 / 1