PDA

View Full Version : Pulse Width Modulation (PWM)


kbanks
03-27-2008, 04:06 PM
The following will be in the next release of SNAP and Portal Pro, but here is a sneak peek.

RF Engine pin GPIO 0 supports PWM in hardware. I will be attaching three files to this post:

PWM.py - provides basic access to the PWM functionality

ledCycling.py - a demo that uses PWM.py to vary the brightness of the LED on a SN163 Bridge Demonstration Board or a SN111 End Device Demonstration Board (the SN171 Proto Board does have LEDs, but not on the correct pin)

servoControl.py - a demo that uses PWM.py to position a standard servo motor (like R/C cars and planes use). This demo would be run on a SN171 Proto Board.

Look in the scripts themselves for more details.

kbanks
09-30-2010, 08:07 PM
It's been done on more than one platform, but I don't think it has been done on the Si1000 yet.