Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

How do I get this servo running?


  • Please log in to reply
2 replies to this topic

#1 Larsey

Larsey

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts

Posted 05 March 2013 - 04:28 PM

After some googling I found out that this PWM class is used, but its a old version of PWM class as the PWM class does take 4/5 arguments, not one.

 

So, could I get some quick help? :D

 

How do I use PWM class? I think PWM(Cpu.PWMChannel.?, period, duration, invert) would be the easiest to use. But what PWMChannel to use, and what pin is that on my N2?

 

Can I just write:

 

 

 

PWM pwm = new PWM(Cpu.PWMChannel.PWM_7, 100, .5, false);pwm.Start(); 

 

 
and if so, what pin is PWM_7?


#2 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 05 March 2013 - 04:56 PM

PWM pwm = new PWM(PWMChannels.yourpin, 100, .5, false); pwm.Start();  



#3 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 05 March 2013 - 05:33 PM

See this thread.  http://wiki.netduino...ngle-Servo.ashx

 

and

 

http://forums.netdui...etduino-plus-2/

 

as well as

 

http://forums.netdui...no-servo-class/

 

There is also very nice article by Pete Brown.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.