Site Tools


pwm_output

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pwm_output [2016/01/10 21:03] – created bullarpwm_output [2016/01/10 21:27] (current) bullar
Line 29: Line 29:
 cd pwm0                   cd pwm0                  
 echo 20000000 > period    ' set period to 20ms (50Hz = RC servo signal) ' echo 20000000 > period    ' set period to 20ms (50Hz = RC servo signal) '
-echo 1000000 > duty_cycle ' set duty cycle to 1ms '+echo 2000000 > duty_cycle ' set duty cycle to 2ms '
 echo 1 > enable           ' enable output ' echo 1 > enable           ' enable output '
 echo 0 > enable           ' disable output ' echo 0 > enable           ' disable output '
Line 35: Line 35:
 echo 0 > unexport         ' release PWM to kernel ' echo 0 > unexport         ' release PWM to kernel '
 </code> </code>
 +
 +Output on PWM0:
 +
 +{{::hantek100_1.gif?400|}} 
 +
 +
 +
  
 Example C-Program (part of RC-Test program: Example C-Program (part of RC-Test program:
pwm_output.1452459837.txt.gz · Last modified: 2016/01/10 21:03 (external edit)