Best Answer Gutworks, 02 January 2014 - 08:48 PM
Hi Dave,
It looks like you are using the Microsoft PWM class rather than the Secretlabs PWM class. The MS PWM class has two constructors, one that is often used for driving pulsing LEDs and piezo buzzers, and the other for devices like servos. I think you should be using the other constructor that looks like this:
public PWM(Cpu.PWMChannel channel, uint period, uint duration, PWM.ScaleFactor scale, bool invert);
Some time ago I wrote a sample app for a servo and the Netduino Go Shield Base and I also have a couple other posts that go a little more in detail about the PWM class. Hopefully so of these links will help you along the way.
[*]Continuous Rotation Servo on the Shield Base controlled with Potentiometer Example
[*]Maximum PWM Frequency - http://forums.netdui...quency/?p=44118
[*]Minimum PWM Frequency and Period - http://forums.netdui...duino/?p=43946
[*]PWM class on the 4.2 NETMF API
[/list]
Let me know if you have question and I'll do my best to help.
Cheers,
Steve
Go to the full post