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.

FredOrJoeBlogs

Member Since 02 Aug 2014
Offline Last Active Nov 19 2014 09:48 PM
-----

Posts I've Made

In Topic: Controlling 8 Lego servo motors

12 August 2014 - 10:21 PM

You are going to need a seperate power suply for the motors.  You are going to have to switch this with appropriate transistors (you will need to calculate what transistors you need)

What are the wires on the motors?  Assuming they are +ve and Gnd then you can switch the +ve assuming need more than 3.3V, if not you'll need to stick a resistor in the line between the board and the transistor.

Make sure you tie the Gnds of the power supplies and the controller togoether otherwise your transistors will start boogieing.
Hopefully the diagram will make it clear.


In Topic: Netduino plus 1 System Exception

12 August 2014 - 10:06 PM

Hi,

I'm not sure of you level of C# experience so I will try and explain this in basic terms, I hope I'm not patronising you.

 

Your syntax isn't quite right.  On the line where you have:

            //display the IP adress
            NetworkInterface networkInterface = NetworkInterface.GetAllNetworkInterfaces()[0];
 

The square brackets are in the wrong place, it should be:

            //display the IP adress
            NetworkInterface [] networkInterface = NetworkInterface.GetAllNetworkInterfaces();

This will declare an array of NetworkInterface objects, which will be filled with the result of the function call.
This will make you while loop condition wrong, and everywhere else you use the networkInterface variable, because now networkInterface is now an array rather than a single item.

So this should give you a good start

            while (networkInterface[0].IPAddress.ToString().Equals("0.0.0.0"))
            {
                networkInterface = NetworkInterface.GetAllNetworkInterfaces();
                Debug.Print("Meu IP:" + networkInterface[0].IPAddress.ToString());
                Thread.Sleep(2000);
            }
            Debug.Print("Meu IP:" + networkInterface[0].IPAddress.ToString());

I have't tested any of this, because I was a cheep skate and didn't get the Ethernet socket, but if there is any problems I'll look at them as soon as I can.
 


In Topic: Sensor Library

11 August 2014 - 09:16 PM

I can't give you a library but Laurent Ellerbach posted a class for it on their blog which works quite well.

http://blogs.msdn.co...work-netmf.aspx

 

 


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.