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.

tim c's Content

There have been 29 items by tim c (Search limited from 28-April 23)


By content type

See this member's


Sort by                Order  

#40246 SD Card cannot get basic example working

Posted by tim c on 26 November 2012 - 06:33 PM in Netduino Plus 2 (and Netduino Plus 1)

Can any one help me on the above post?

Thanks in Adavance
Srinivas R



What happens if you replace all your code with this:

Byte[] bt = File.ReadAllBytes(@"\SD\Sample.bmp");



#40205 NetMF Toolbox PWM code

Posted by tim c on 26 November 2012 - 01:19 AM in Netduino 2 (and Netduino 1)

Which PWM dll do you have selected in your references?



#40114 Netduino Plus 2 RGB LED PWM Sample

Posted by tim c on 24 November 2012 - 06:26 PM in Netduino Plus 2 (and Netduino Plus 1)

This all started because I have this kit: http://www.seeedstud....html?cPath=138

And I wanted to get this sample working: http://www.seeedstud...k:_Tricolor_LED

I used a few pieces of code to compile this sample. Thanks goes out to everyone working on educating folks on how to work with all this.

http://forums.netdui...torial-rgb-led/

http://netmftoolbox.codeplex.com/

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

I do NOT know electronics so please feel free to point out any issues you see.

NOTE change the last parm from true to false if you are using a cathode type RGB LED and connect
the cathode to the ground. I have not tested that as I only have an Anode LED.
http://en.wikipedia.org/wiki/Cathode
http://en.wikipedia.org/wiki/Anodic

led_r = new PWM(PWMChannels.PWM_PIN_D9, 100u, 0u, PWM.ScaleFactor.Microseconds, true);

Attached Thumbnails

  • RGB NP2.jpg

Attached Files




#40106 Bricked my Netduino Plus 2

Posted by tim c on 24 November 2012 - 04:02 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Greg,


Netduino Plus 2 works almost exactly the same as Netduino Plus 1...but the re-flashing method is brand new. SAM-BA is only used for Netduino Plus 1; you'll want to use STDFU and DFUSE for Netduino Plus 2.

Here are the full re-flashing instructions (and firmware) for Netduino Plus 2:
http://forums.netdui...-firmware-v421/

If you completely erase and then re-flash your board using those instructions, you should be back up and running. If not, we'll need to check the version of .NET MF SDK to make sure it's running QFE2.

Does this get you back up and running?

Chris


<TOTAL NOOB ALERT - read with caution>

I bricked my board at least 10 times Thursday using ?OLD? PWM code examples. The instructions linked above: http://forums.netdui...-firmware-v421/ saved me everytime.

Almost anytime I tried to run 4.1 PWM code it would lock the ND+ 2 and I would have to follow the steps above to get it working again. I am not sure if the issue is with the SecretLabs PWM port to 4.2 or what - but if I use the NETMF PWM libraries (Microsoft.SPOT.Hardware.PWM)it works.

Each time it locked I loaded the latest DFU I could find and was back up and running.

After a few hours (total noob) I was able to get a PWM project working that cycled my RBG LED. I am going to clean it up now and post it as a sample.

If you are having trouble with PWM please post which Class Library you are using - Microsoft.SPOT.Hardware.PWM or SecretLabs.NETMF.Hardware.PWM

Tim




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.