Arduino_Net project

This is my Arduino_Net code page.
Here you can find the latest version of the Arduino code along with the .Net dll and the sourcecode.

I made this code for myself as I'm planning to build a mobile robot based on a Windows pc (Mini ITX board) connected to an arduino for motor control and sensor inputs.
This project consist of two parts. The Arduino sketch that runs on the arduino (duh...) and the .Net dll that connects to the arduino sketch via a serial connection. I use an arduino duemilanove myself, so the code is created to cater that hardware (number of digital and analog pins).

Got any comments or questions? mail me:
arduino[at]gyps.nl

Arduino_Net sketchArduino_net.pde
Arduino_Net Compiled dll (for use with other .net languages/projects)Arduino_Net.dll
Arduino_Net VB.Net 2005 project (complete code of the .Net dll)Arduino_Net.V1.2.0.0.zip

current commands:

StartCommunication() As Boolean
SetDigitalDirection(ByVal Port As Integer, ByVal Direction As DigitalDirection)
SetDigitalValue(ByVal Port As Integer, ByVal Value As Integer)
SetServoValue(ByVal Port As Integer, ByVal Value As Integer)
SetMotorSpeed(ByVal MotorNr As Integer, ByVal Value As Integer)
SetMotorDir(ByVal MotorNr As Integer, ByVal Value As MotorDirection)
EnableDigitalPort(ByVal Port As Integer, ByVal Enable As Boolean)
EnableAnalogPort(ByVal Port As Integer, ByVal Enable As Boolean)
EnableServoPort(ByVal Port As Integer, ByVal Enable As Boolean)
EnableDigitalTrigger(ByVal Port As Integer, ByVal Enable As Boolean)
EnableAnalogTrigger(ByVal Port As Integer, ByVal Threshold As Integer)
GetDigitalValue(ByVal Port As Integer)
GetAnalogValue(ByVal Port As Integer)

current events:

DigitalDataReceived(ByVal DPortNr As Integer, ByVal Value As Integer)
AnalogDataReceived(ByVal APortNr As Integer, ByVal Value As Integer)
LogMessageReceived(ByVal Message As String, ByVal DebugLevel As Integer)
WatchdogReceived()
ConnectionLost()

Revision history:

V1.2.0.0 (18-03-2010)

Added functions for DCMotor use (via Adafruit Motorshield).

V1.1.0.0 (08-03-2010)

Added functions for servo use.

V1.0.1.0 (02-02-2010)

Added checks for wrong portnumbers and inputvalues.
Added options to change the max. number of digital and analog ports so the class can be used for other Arduino models to.

V1.0.0.0 (30-01-2010)

Initial version.
First working version.
Analog inputs and digital inputs and outputs functional.
No error checking on wrong pinnumbers etc.

Feel free to comment on my code, or ask questions:
Arduino discussion forum