Overview
- Object ID : 2797 (2013-04-05)
- Author : Kyle Love | added by Archiver
- Content : Code
- Microcontroller : Propeller 1
- Language : SPIN
- Category : Motor Control
- Licence : Other
- Tag : PWM
Content
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.