Netduino home hardware projects downloads community

Jump to content

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


Member Since 09 Aug 2010
Offline Last Active Mar 02 2015 12:09 AM

Topics I've Started

How to avoid 'static'

28 September 2014 - 03:43 PM

I'm lazy, I hate typing more than I have to. As a result, I have adapted a method that avoids having to add 'static' to every function and variable, and follows the Arduino model a little closer. I insert the following code in just about every project I start.


I hope this prevents some carpel tunnel syndrome for someone;

namespace Junk2
    public class Program
        bool instanceDone = false;
        DateTime lastTick;
        EncodedMotor M0;

        public static void Main()
            var p = new Program();
            while (!p.instanceDone)

        void Setup()
            // do initialize things here

            // pwm, phA, phB, reversed
            M0 = new EncodedMotor(PWMChannels.PWM_PIN_D5, Pins.GPIO_PIN_D9, Pins.GPIO_PIN_D10, true);
            lastTick = DateTime.Now;

        void Loop()
            DateTime thisTick = DateTime.Now;
            TimeSpan dt = thisTick - lastTick;

            //.... more stuff

            Thread.Sleep(1000 / 20); // update N times per sec
            lastTick = thisTick;

Multiple reboots

20 August 2014 - 07:26 PM

Is there anything that can be done to reduce the multiple reboots that occur when debugging?


My netduino sometimes reboots 12-15 times before the debugger load symbol tables and begins debugging.


Then there are those rare occasions (1 in 50?) that it works with just one reboot.


I generally have control and can force some sort of orderly shutdown if that helps start the next session, I just have no idea what it would be to do that.

New Robot Meetup Group, Seattle

16 July 2014 - 05:10 PM

Hey guys and gals, after my previous hobby became marked as terrorism by the FAA (Flying FPV), I have moved back into robotics.  Some of you have seen my posts concerning a personal robot project.


Anyhow, I started a meetup group in Seattle, the first meeting is this weekend.  24 members in the first week, not bad, and I am hoping it continues to grow.  The group will be very much software focused, as the last thing I want to do is be another Arduino/3D printing group. Sure we will talk hardware, but usually only in context of what software it is running and why.  I personally find the existing robotics groups barely touch on software.


Location is downtown Seattle, and all flavors are welcome.

Netduino 2 Plus, New Home

13 July 2014 - 11:30 AM



Wiring comes next.


full story;


More learning / sample code

06 June 2014 - 07:48 AM



So, still learning, but I seem to be getting along ok, solving a few problems I see others encountering - so if the code helps anyone, great.


If nothing else it shows off WPF simplicity a little for those of you unfamiliar with with it. WPF was the intended replacement for UI on windows.  It has been made 'legacy' at this point, but the follow-up - WIndows Store apps are very similar.


direct links;



The video shows some 'unaligned' response. I assure you this was a video alignment problem. In actuality the response is very fast and aligned.  Next time I will do the screen capture differently as I think frame rate differences messed with me.

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.