chipKIT® Development Platform

Inspired by Arduino™

PWM with variable period for Uno32

Created Tue, 06 Dec 2011 05:11:39 +0000 by Myst12


Myst12

Tue, 06 Dec 2011 05:11:39 +0000

So I made my first Libraries for Uno32 (don't know if it'll work on Max32). It's a simple PWM where the period of the PWM can be specified. It works only for pin 3 and 5 on the Uno32 (OC1 OC2) I'll probably add pin 6 and 9 later to make this suitable for 2 motors.

Comments? Suggestions?

I hooked it with a L293D motordriver, 3V DC motor and it worked like a charm.

https://code[dot]google[dot]com/p/pwm-chipkit-uno32-librarie/downloads/list

migrated to Github

https://github.com/alexisfcote/pwm-chipkit-uno32-librarie


Myst12

Tue, 20 Dec 2011 02:39:39 +0000

Added Pin 6 and 9, so you can control 2 motors foward and reverse.


mcsquared

Mon, 09 Jan 2012 07:32:39 +0000

Thanks for this, I've tested it and it seems to work ok :)