Dual PWM motor driver in 1 cog

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: Kyle Love, created: 2013-04-05 | updated: 2013-04-05

This object reads in a integer value from 0 to 127 and outputs a PWM signal with a duty cycle proportional to the integer value 0 is 0V DC, 50 is high 50/127 of the time, 127 is 3.3V DC. It runs at 400Hz but both the range of integers and the frequency can be adjusted in the constant block. My first attempt at spin and the propeller so feedback would be great.

 

Original File Upload
AttachmentSize
DutyCycle.spin8.03 KB

Comments