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.

profajo

Member Since 31 May 2014
Offline Last Active Jun 01 2014 05:32 PM
-----

Topics I've Started

Netduino Go! starter kit

01 June 2014 - 07:07 AM

I have just unpacked and tried to use a Netduino Go! starter kit I bought a while back.

I would like to use it with my 11-year old grandson who is already OK with LEGO Mindstorms EV3 and using the LabVIEW graphic style programming for it.

I am an old guy who is not an expert either in hardware nor in C# but I am pretty experience with using Windows applications.  I bought Netduino Go! because I wanted to get started without soldering!

I was somewhat disappointed not to be able to find a single file which would allow me to set up and test the Go! and the 4 modules supplied.  

I have a copy of the Getting Started With Netduino book by Chris Walker.

I followed the instructions on the website to install the 3 software packages.  

Checking the details from My Downloads these are

1. MS Visual C# Express 2010 (as expected)

2. MS .NET Micro Framework v 4.2 SDK dated 13/08/2012 (not v4.1 as stated)

3. Netduino SDK v4.2.2 dated Jan 2013 (not v4.1 as stated) 

I entered and ran the Blinky program as per instructions - which compiled and installed but just left the power light on - so I had no idea why it wasn't working.  So I replaced the infinite loop with a counted loop so it would terminate:

 

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoGo;
namespace NetduinoGoApplication1
{
    public class Program
    {
        public static void Main()
        {
            OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);// write your code here
            Int64 count = 0;          
            while (count < 20)
            {
                led.Write(true);   //turn on the LED
                Thread.Sleep(250); //sleep for 250ms
                led.Write(false);  //turn off the LED
                Thread.Sleep(250); //sleep for 250ms
                count = 1 + count;
            }
        }
    }
}
 
But stil no joy.  So I searched the Forum and found that the Go! seems, as others have said, to be rather the Cinderella of the Netduino family.  Then I found that the blue LEDs are not yet flashable, but the white power LED is.  So I replaced the first line with:
 
            OutputPort led = new OutputPort(Pins.PowerLed, false);
 
and now have my first successful program running - so I know the kit works.  Now I need a simple explanation of just what additional code is needed to use each of the modules in the starter kit - but I can't find it.
 
So could someone please post the code needed to:
(a) wait until the Button is pressed on Ch 1
(B) turn on a LED attached to the shield base on Ch 5 (and tell me which 2 pins I should I use)
© wait until the Button is pressed again on Ch 1 and then
(d) loop allowing me to use the Potentiometer attached to Ch 3 to control the colour and/or brightness of the RGB LED attached to Ch 4
(e) until the Button is pressed again on Ch 1. 
 
I would be most grateful!
Thanks
 

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.