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
3
votes
1 answer

How to end an interrupting thread in C#

I'm using a Netduino board and I'm having a problem with ending a NativeEventHandler(button). The problem is main thread stuck at the join() function. I dont understand why the childthread is not released after it is run. public class Program { …
henryyao
  • 1,758
  • 6
  • 23
  • 37
2
votes
2 answers

Can the netduino board send and receive directly to and from my appharbor app?

Hi i would like to send data from my netduino board directly to my app that is hosted on appharbor, I couldn't find any examples. I may be asking the question wrongly, if so thanks for you patience. :)
2
votes
3 answers

.NET Micro Framework, reading files on a device with limited memory

On a ChipworkX device we would read files using: File.ReadAllBytes(filename); But if we try that on a NetDuino Plus which has a much smaller amount of memory, we simply get an OutOfMemoryException. The files are not that big, but I guess that's all…
TimothyP
  • 21,178
  • 26
  • 94
  • 142
2
votes
1 answer

Using .NET Micro Framework, Why does my Regular Expression match fail?

I'm developing a little network command interpreter for .net Micro Framework 4.3 running on a Netduino. I use a regular expression to parse user input that arrives from the network via a stream socket. Commands are in the following…
Tim Long
  • 13,508
  • 19
  • 79
  • 147
2
votes
1 answer

How to MFDeploy a configuration file

Colleagues and users testing various features in a program use MFDeploy to install for example "MyApp.exe" onto their Netduino +2. This method works great. Is there a way to also MFDeploy a "MyApp.config" text file so they can set their specific…
George Aslanis
  • 517
  • 4
  • 11
2
votes
1 answer

How to make a servo go to a certain angle, 60 degrees for instance

I've got the following code that turns the servo back and forth, over and over. I got it working, but how can I create a function that sets it to a certain degree... 60 for instance? My current code: public static void Main() { PWM servo = new…
Jason94
  • 13,320
  • 37
  • 106
  • 184
2
votes
1 answer

Button event on netduino 2

I have started hobby development on a netduino 2. I'm struggling with interrupts on the onboard button. My problem is, that the interrupt is called several times for each time i press the button. public static void Main() { dac = new…
hogni89
  • 1,920
  • 6
  • 22
  • 39
2
votes
2 answers

how to stop the socket.connect() function if it stucks?

I'm facing a problem of stop the socket.connect() function. Sometimes the physical link between my local machine and the remote machine might be good, but due to some reason, the remote endpoint cannot be accessed, maybe a firewall or the port on…
henryyao
  • 1,758
  • 6
  • 23
  • 37
2
votes
2 answers

netduino check email

I see lot of examples on how to send email with a but I'm looking to run an action checking an email account. Does anyone know if that can be done (im sure it can) and point me to some examples?
Crash893
  • 11,428
  • 21
  • 88
  • 123
2
votes
1 answer

Custom events in .Net Microframework

I want to create a simple PushButton class which wraps an InterruptPort. I'd like to give it two simple Up and Down events which are triggered when the port is high and low. Normally I'd do it like this: public event EventHandler
Svish
  • 152,914
  • 173
  • 462
  • 620
2
votes
1 answer

StreamReader is not reading my entire file?

Resolved: The file on the SD card has a bunch of NULLs at that point in the file. I am using the Netduino Plus to read text from a file on the SD card. I'm using C# .NET Micro Framework 4.2 and FileReader / StreamReader to get it done. I've…
martinarcher
  • 137
  • 2
  • 9
1
vote
1 answer

Can't read from NETMF socket

This trivial adaptation of the Pachube sample for Netduino doesn't work. It doesn't barf, it just fails silently. I noticed that if you wait a little after the write, the socket reports 315 bytes in its Available property, but attempting to read the…
Peter Wone
  • 17,965
  • 12
  • 82
  • 134
1
vote
2 answers

Netduino + Ethernet Shield: How to write to SD card?

I have tried several example programs to write data to the SD card mounted on the Ethernet shield, but none worked. The SD card size is 4 GB and formatted as FAT32. The Ethernet shield is the following: (Bought on Amazon - Arduino Ethernet…
Niko Gamulin
  • 66,025
  • 95
  • 221
  • 286
1
vote
1 answer

i2c read data from sensor with Netduino

I start learning Netduino short time ago. At now, I want to use it with MS5803 30BAR sensor. This Components communicate with I2C Protocol. I learned this protocol a little bit but not enough. I wrote introducing of code. When I came main code, I…
Berk Altun
  • 27
  • 2
  • 8
1
vote
1 answer

Netduino InterruptPort Inconsistency

Im writing a Netduino 3 program that will control turn lights and other relays for hayrides. My program was written before I got the device, so Im not sure how well it will work, but Im already having a problem with one of the buttons…
hightekjonathan
  • 581
  • 1
  • 9
  • 29