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.

mWalsh

Member Since 15 Jun 2013
Offline Last Active Jul 02 2013 02:58 PM
-----

Posts I've Made

In Topic: Using PWM with NetduinoPlus2

18 June 2013 - 05:25 PM

If you look at the sample NetduinoPWMLED4.2 it tells you how to hook up a simple LED to D10 and GND and uses PWM to cycle the LED brightness. I loaded the project and then changed it to .NET MF 4.3 and it ran fine on my N+2 with 4.3 loaded.

 

Tim,

 

Ok so i ran your example and it worked perfectly i appreciate the time to help. the issue i was running into is in all the beginner tutorials and examples when you declare a PWM variable and assign it to a pin it seems anything 4.2 and prior you can declare just the pin, however with 4.3 you have to declare it as a PWM channel instead that is the source of my confusion because you cant just declare the pin, it needs other information in the constructor as well and as new as i am im not sure what those values should be. The solution that i found to use PWM and not PWM channel was to remove the microsoft PWM .dll and use the secret labs one. however last night when i wanted to use a potentiometer to control servo movement the microsoft and secret labs .dll's conflict for analog input so at this point im pretty stuck. luckily i ordered the 'getting started with neduino' book off amazon today so ill get that and try and make some progress i need some background reading because im not sure whats what yet. thank you for all your help!

 

-M. Walsh


In Topic: Using PWM with NetduinoPlus2

17 June 2013 - 05:34 PM

Thank you very much Tim for your reply. That is quite a bit of code to go through. just to verify are you using the N+2 with the 4.3 firmware? According to what i found in my research the coding is a little different with PWM for that board and firmware update. When ive figured out your coding you supplied ill update you if i've figured it out. Thank you again.


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.