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.

enough

Member Since 24 Apr 2013
Offline Last Active Feb 05 2014 02:06 PM
-----

Topics I've Started

Release Dates of Netduino Boards

24 October 2013 - 08:50 PM

Hi everyone,

 

for an article I'd like to know the release dates of the Netduino boards, more specifically for the Netduino 2, the Netduino Plus 2 and the Netduino Go boards.

 

Thanks in advance,

yours

  Robert


Generating own NuGet packages

04 September 2013 - 07:07 PM

I have created a .NET MF class library and want to publish that on NuGet.

Creating the NuGet seems to work fine, but when I integrate the NuGet package (it's called Enough.MF.Connectivity) I get the following errors in Visual Studio: Could not copy the file "[...]ProjectsLightOMatorpackagesEnough.MF.Connectivity.1.0.1libnetmfleLEEnough.MF.Connectivity.pe" because it was not found. Could not copy the file "[...]ProjectsLightOMatorpackagesEnough.MF.Connectivity.1.0.1libnetmfleLEEnough.MF.Connectivity.pdbx" because it was not found. Could not copy the file "[...]ProjectsLightOMatorpackagesEnough.MF.Connectivity.1.0.1libnetmfleBEEnough.MF.Connectivity.pe" because it was not found. Could not copy the file "[...]ProjectsLightOMatorpackagesEnough.MF.Connectivity.1.0.1libnetmfleBEEnough.MF.Connectivity.pdbx" because it was not found.

I can fix that error by moving the files from packagesEnough.MF.Connectivity.1.0.1libnetmfle to packagesEnough.MF.Connectivity.1.0.1libnetmfleLE, etc.

Comparing that to other Microframework NuGet packages (that work flawlessly out of the box) I can't really find any substantial difference other than those packages being tailored for specific .NET MF versions (with folders such as netmf42, etc).

Something seems to point to the libnetmfle folder as the root, but I don't know what.

I have attached the NuGet file, you can also download it under the ID Enough.MF.Connectivity.

I create the NuGet package with following psake script:

1. building:   Exec { msbuild "/t:Clean;Build" /p:Configuration=Release /p:OutDir=$tempBinariesDir /p:GenerateProjectSpecificOutputFolder=true /p:StyleCopTreatErrorsAsWarnings=false /m "$solution" } "Error building $solutionFile" 2. NuGet packaging:   Exec { .$nuget pack $projectNugetFolder$projectNuspec -Output $nupkgDir } "Error packaging $name"

When I unpackage the generated nupgk file, I get following folder structure:

+ _rels   .rels + lib   + netmf   Enough.MF.Connectivity.dll  Enough.MF.Connectivity.pdb  SecretLabs.NETMF.Hardware.dll  SecretLabs.NETMF.Hardware.Netduino.dll  SecretLabs.NETMF.Hardware.Netduino.pdb  SecretLabs.NETMF.Hardware.pdb  + be Enough.MF.Connectivity.dll Enough.MF.Connectivity.pdb Enough.MF.Connectivity.pdbx Enough.MF.Connectivity.pe SecretLabs.NETMF.Hardware.dll SecretLabs.NETMF.Hardware.Netduino.dll SecretLabs.NETMF.Hardware.Netduino.pdb SecretLabs.NETMF.Hardware.pdb SecretLabs.NETMF.Hardware.pdbx SecretLabs.NETMF.Hardware.pe  + le Enough.MF.Connectivity.dll Enough.MF.Connectivity.pdb Enough.MF.Connectivity.pdbx Enough.MF.Connectivity.pe SecretLabs.NETMF.Hardware.dll SecretLabs.NETMF.Hardware.Netduino.dll SecretLabs.NETMF.Hardware.Netduino.pdb SecretLabs.NETMF.Hardware.pdb SecretLabs.NETMF.Hardware.pdbx SecretLabs.NETMF.Hardware.pe + package   + services   + metadata + core-properties 407e9cf4968540ff98272fc0fb2a98a8.psmdcp [Content_Types].xml Enough.MF.Connectivity.nuspec

 

 

 

Thanks in advance for any pointers, Robert


SerialPort / Itead Studio Bluetooth Shield V2.2

22 June 2013 - 09:37 AM

Hi everyone,

 

My problem:

I cannot receive data using the Itead Studio BT V2.2 on my Netduino Plus 2.

 

My analysis (note that I'm total noob when it comes to electronics):

 

The shield itself seems to be working, I can connect to it using my Windows Phone app, the blinking LED on the shield then switches to the 'connected' blinking mode as expected. I send data to the StreamSocket on my Windows Phone and flush the stream without problems. However, on Netduino I am unable to receive data on the

SerialDataReceivedEventHandler.

 

The shield has a UART Multiplexer, the description from the product shield confuses me a bit (attached).

 

Here's a crude ASCII art of the multiplexer:

 

[font="'courier new', courier, monospace;"]  0  14567[/font]

[font="'courier new', courier, monospace;"]____________[/font]

[font="'courier new', courier, monospace;"]| [] OOOOO | TX[/font]

[font="'courier new', courier, monospace;"]| [] OOOOO | D0 | D1 D4 D5 D6 D7[/font]

[font="'courier new', courier, monospace;"]| [] OOOOO | RX[/font]

[font="'courier new', courier, monospace;"]------------[/font]

 

 

I figured that the TXD side defines the transferring digital port and RX the receiving one.

 

Now typically I would expect to be able to use D0 and D1 (aka "COM1") for the serial communication.

This leads me to believe that I need to set the jumpers like this on the multiplexer (one green, one red):

 

C1:

[font="'courier new', courier, monospace;"]____________[/font]

[font="'courier new', courier, monospace;"]| [color=rgb(0,255,0);][][/color] OOOOO | TX[/font]

[font="'courier new', courier, monospace;"]| [color=rgb(0,255,0);][][/color] [color=rgb(255,0,0);]O[/color]OOOO | D0 | D1 D4 D5 D6 D7[/font]

[font="'courier new', courier, monospace;"]| [] [color=rgb(255,0,0);]O[/color]OOOO | RX[/font]

[font="'courier new', courier, monospace;"]------------[/font]

 

or like this:

 

C2:

[font="'courier new', courier, monospace;"]____________[/font]

[font="'courier new', courier, monospace;"]| [] [color=rgb(255,0,0);]O[/color]OOOO | TX[/font]

[font="'courier new', courier, monospace;"]| [color=rgb(0,255,0);][][/color] [color=rgb(255,0,0);]O[/color]OOOO | D0 | D1 D4 D5 D6 D7[/font]

[font="'courier new', courier, monospace;"]| [color=rgb(0,255,0);][][/color] OOOOO | RX[/font]

[font="'courier new', courier, monospace;"]------------[/font]

 

For the configuration C1 above the description says:

 

You can use the jumper to connect the TXD and RXD pins of HC-05 to D0, D1, D4~D7 pin of Arduino. 
Figure 2 UART Multiplexer When using the connection as Figure C1, the BT shield connects to the ATMega328 chip on board. 

 

For the configuration C2 above the description says:

When using the connection as Figure C2, the HC-05 connects with the FT232RL chip, and the FT232RL connect to PC by USB. Whit this configuration you can use the serial software on PC to control or configure the HC-05 module. 

 

For other jumper configuration the description says:

Except the 2 configurations above, you can connect the TXD and RXD to any other pins from D4-D7, and using the software-serial library to control the HC-05 module.

 

So it seems to me that I cannot use neither C1 nor C2 but instead need to place the jumpers to other configurations. However, I did not figure out a working configuration.

 

When using COM1 I never receive data.

When using COM2 I always receive various length of byte arrays, that's interesting but as the multiplexer does not server D2/D3 at all, I guess that is something completely different going on there (told you I'm a noob).

From this post: http://forums.netdui...opic/4999-com3/ I think that COM3 uses D7/D8 which is a bit of shame, as I only have D4 - D7 available above.

 

So, am I doomed? Can anyone recommend a stackable shield that works fine with my Netduino Plus2?

 

Thanks in advance,

Robert

 

 

My Netduino code:

 

using SecretLabs.NETMF.Hardware.Netduino;using System.IO.Ports;using System.Threading;public class Program{    static SerialPort serial;    public static void Main()    {        // initialize the serial port for COM1 (using D0 & D1)        serial = new SerialPort(SerialPorts.COM1, 9600, Parity.None, 8, StopBits.One);        // open the serial-port, so we can send & receive data        serial.Open();        // add an event-handler for handling incoming data        serial.DataReceived += new SerialDataReceivedEventHandler(serial_DataReceived);        // wait forever...        Thread.Sleep(Timeout.Infinite);    }    static void serial_DataReceived(object sender, SerialDataReceivedEventArgs e)    {        // create a single byte array        byte[] bytes = new byte[1];        // as long as there is data waiting to be read        while (serial.BytesToRead > 0)        {            // read a single byte            serial.Read(bytes, 0, bytes.Length);            // send the same byte back            serial.Write(bytes, 0, bytes.Length);        }    }}

The sending part of my Windows Phone code:

private async void ConnectToDevice(PeerInformation peer)        {            if (_socket != null)            {                // Disposing the socket with close it and release all resources associated with the socket                _socket.Dispose();            }            try            {                _socket = new StreamSocket();                string serviceName = "1";                 await _socket.ConnectAsync(peer.HostName, serviceName);                DataWriter writer = new DataWriter(_socket.OutputStream);                string data = "hello world";                writer.WriteString(data);                await writer.FlushAsync();                //writer.DetachStream();                DataReader reader = new DataReader(_socket.InputStream);                await reader.LoadAsync((uint)data.Length);                reader.ReadString((uint)data.Length);                // If the connection was successful, the RemoteAddress field will be populated               MessageBox.Show(String.Format(AppResources.Msg_ConnectedTo, _socket.Information.RemoteAddress.DisplayName));            }            catch (Exception ex)            {                // In a real app, you would want to take action dependent on the type of                 // exception that occurred.                MessageBox.Show(ex.Message);                _socket.Dispose();                _socket = null;            }        }

Attached File  BTShieldV2.2_DS.pdf   644.68KB   11 downloads


Controlling Lights with Netduino Go

24 April 2013 - 02:24 PM

Hi everyone,

since yesterday I'm a proud owner of a Netduino Go starter kit, hooray!
I have set up VS2012 along with the .NET MF and Netduino SDK. Then I successfully created a couple of test apps that use the RGB LED light - so everything's pretty cool.
My problem is that I have no clue about hardware, this was one of the main reasons to use the Netduino Go board - it's just to amazingly simple!

 

Now I wonder how to start my actual idea: I want to control lights according to the time of the day (e.g. having more blue light in the morning, but more red light in the evening),
but also control it from my mobile phone. For that I _think_ I need basically 3 things:

  • Netduino Go
  • Some Wifi extension
  • Some lights with a connection

Wifi is discussed in several threads here, so I guess that can be solved. About the light I am not so sure - I am thinking about RGB LED arrays such as the
"ITeadstudio 8x8 LED Matrix RGB" (e.g. http://www.exp-tech....B--circle-.html ).
I assume that I would need a proto board to connect the lights and then the shield base to connect the proto board - is that correct?


How would you tackle such a problem? How could I control a big collection of RGB LEDs, e.g. to lid a complete office?


I am ready to learn, and yes, even to solder - but I want some guidance before galloping into a completely wrong direction.

 

Thanks for you help,
Robert


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.