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

Why custom PWM not working


Best Answer xmen, 29 August 2014 - 02:58 PM

Ha!! found it. It works good on Pin D10. So others are 16-bit still and D10 is 32-bit. Would be nice if all were 32-bit ;D

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 xmen

xmen

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 29 August 2014 - 02:21 AM

I have custom PWM but it doesn't seems to be working. Not in oscilloscope nor onboard led. I have tested same code like 3 weeks ago on oscilloscope and it was working fine. But not anymore, same code. But nope.
 
So I tried this on onboard led and still nothing lights up. Its 0V.

Microsoft.SPOT.Hardware.PWM testPWM = new PWM(PWMChannels.PWM_ONBOARD_LED, 
200000, 120000, PWM.ScaleFactor.Microseconds, false);
testPWM.Start();


Thread.Sleep(Timeout.Infinite);

PS : I'm using Netduino 2.



#2 xmen

xmen

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 29 August 2014 - 02:58 PM   Best Answer

Ha!! found it. It works good on Pin D10. So others are 16-bit still and D10 is 32-bit. Would be nice if all were 32-bit ;D






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.