ArduinoDriver is a library for controlling an Arduino board directly through a USB (serial) connection from C# / Visual Studio, with highly compatible syntax.
A Windows command line utility and a .NET library which can be used to upload a compiled sketch (.HEX file) directly to an Arduino board (without having to use the Arduino IDE or avrdude).
The CmdMessenger messaging library has both an Arduino and .NET+Mono compatible C# implementation
The library implements
You can find the CmdMessenger Playground page here:
CmdMessenger
.Net2.0 gives you the easy to use System.IO.Ports so a programm that writes everything you type to the arduino is quickly written :
using System; using System.IO.Ports;
namespace test { class Program {
static void Main(string[] args) { SerialPort port = new SerialPort("COM4", 9600); port.Open(); while (true) { String s=Console.ReadLine(); if (s.Equals("exit")) { break; } port.Write(s+'\n'); } port.Close();
}
} }
Detect Arduino com port and use Serial Comms
C# with Arduino Duemilanove + Led On/Off/Pwm Control
C# + Arduino Duemilanove + RGB Led Control
C# application for controlling the brightness of the LED (Dimmer example)
C# application to print user input strings on the 8x8 LED Matrix Youtube video: Video
Some Arduino and Visual Studio C#.Net Projects