Questions tagged [netduino]

Netduino is an open-source electronics platform using the .NET Micro Framework.

A tag for any questions related to the open-source electronics platform, Netduino.

Netduino's current hardware variants consist of the Netduino 2, Netduino Plus 2, and Netduino Go. Their legacy hardware variants are the Netduino, Netduino Plus, and the Netduino Mini. With this tag, you can post questions relating to whichever type of Netduino you own. All variants run the .NET Micro Framework, meaning you can use much of the same programming skills and techniques you have learned as a C# programmer to venture into the world of physical computing.

For further information about Netduino, check out netduino.com and to learn more about the .NET Micro Framework, go to netmf.com.

71 questions
1
vote
0 answers

Erroneous i2c response from LSM303D to Netduino Plus

I have this module on a breadboard: https://www.pololu.com/product/2127 +3V3 into Vdd, GND to Netduino GND, SDA to Netduino pin A4 and SCL to Netduino pin A5. I'm attempting to use the NETMF i2c functions to simply read the response from the…
1
vote
1 answer

How to properly change a static IP address using the Microframework?

I have my Netduino Plus 2 go out to a web service to look up some values that I would like it to use in my project. One of the values that I have the Netduino check is its preferred IP address. If the Netduino has a different IPAddress than its…
Bill Greer
  • 3,046
  • 9
  • 49
  • 80
1
vote
1 answer

Using C# and Netduino to log data

I am developing a telemetry platform for a nano-printing project. My team is using a Netduino 2 plus (not my first choice, but what are you going to do?) I am not at all familiar with C# and am a novice programmer, to be certain. We have some code…
1
vote
1 answer

Why do I have to execute my button function twice in order for my logic to work properly?

I'm writing a simple alarm program that uses a PIR motion sensor that detects an intrusion. My expected logic is trying to make toggle button for my sensor to be turn on or off. By default the sensor should be inactive/turned off, unless the first…
user3195396
  • 254
  • 2
  • 7
  • 21
1
vote
1 answer

Bytes sent over SerialPort not the same when received on Netduino over Bluetooth

I am working on a project and I am using this website as a reference to get my Netduino to communicate with my PC. I've purchased this Bluetooth transceiver. It seems to be an updated version of the one used by the original post. 1.06 vs 1.04 on his…
1
vote
1 answer

Timestamp format in Xively

I'm writing a simple application for Netduino which sends some data in CSV format to Xively. When sending multiple entry in CSV I must include a timestamp for each value. The message I send is this: Sensor no. 1,0,2014-05-01T23:20:40Z Sensor no.…
1
vote
2 answers

ASCII is not under Encoding

For some reason when I type "Encoding." in to VS all there is UTF8, Equals, and ReferenceEquals. Does anyone know why I can't use ASCII? I need to convert serial data from bytes[] to Char[] or String. I'm using .net framework 4.1
Justin Gardner
  • 605
  • 2
  • 9
  • 17
1
vote
1 answer

Problems calculating CRC for NRPE protocol on .NET Micro Framework (Netduino)

I am trying to write an NRPE interpreter for a Netduino board. This is an Arduino-type board running .NET Micro Framework 4.3. I'm having trouble calculating the CRC that the protocol calls for, which looks like this (original C++ header file…
StewLG
  • 81
  • 1
  • 5
1
vote
1 answer

Writing a full website to socket with microncontroller

I'm using a web server to control devices in the house with a microcontroller running .netMF (netduino plus 2). The code below writes a simple html page to a device that connects to the microcontroller over the internet. while (true) …
Wayneio
  • 3,466
  • 7
  • 42
  • 73
1
vote
2 answers

56 bytes and 99 problems to hold a date and number

I have a 56 byte register available on some eeprom that I'd like to store engine hours with. Currently I just use 3 bytes to increment a 60 second timer and then download the information (the number rarely exceeds 9999 minutes before it…
Daniel Minnaar
  • 5,865
  • 5
  • 31
  • 52
1
vote
1 answer

TCP Sockets and .Net Micro Framework

I'm new to sockets and just can't seem to get my app working. What I want to do is send a log file from the Netduino+2 back to my laptop. The approach I took was to prepend the file size to the byte array before sending. However, I never seem to…
CCE1911
  • 13
  • 1
  • 3
1
vote
1 answer

Netduino communication with PC

I am new to netduino so I have a simple question (or, it should be simple). What I want to do is to send an integer (string) via rs232 from my winform app to my netduino plus 2, and then, my netduino should read that integer and blink an onboard…
1
vote
1 answer

I can't find the project type Netduino

I've just got my netduino in the mail and installed the microframework and netduino sdk. In visual studio I have the C# branch Micro Framework but where is the project type "Netduino" What went wrong?
Jason94
  • 13,320
  • 37
  • 106
  • 184
1
vote
1 answer

Escaping a double quotes in string in c#

I know this has been covered lots of times but I still have a problem with all of the solutions. I need to build a string to send to a JSON parser which needs quotes in it. I've tried these forms: string t1 = "[{\"TS\"}]"; string t2 = "[{" + "\"" +…
scoleman2272
  • 358
  • 6
  • 18
1
vote
1 answer

Event handling on in the .Net Micro Framework

I'm wondering if anyone has some pointers and/or a good guide on how to properly do events in the .Net Micro Framework. I've gotten a Netduino and is playing around making a small wrapper framework around various components and I'm trying to make…
Svish
  • 152,914
  • 173
  • 462
  • 620