Pages: [1]   Go Down
Author Topic: Arduino and C#  (Read 1339 times)
0 Members and 1 Guest are viewing this topic.
Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 5
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I just ordered a couple of Arduino boards, and i am a beginner in the Arduino world.

I am planning an application in C# that will use the Arduino board as an interface to some switches and other stuff.

Does anybody have any experience with communicating with the Arduino board from a C# (or VB.Net) application over USB, or the serial RX / TX pinns ?

Can the serial RX / TX pinns be connected to an ordinary serial port on a PC ?

Any pointers would be great.

Thanks

MikMO
Logged

Forum Administrator
Offline Offline
Newbie
*****
Karma: 3
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

HI

Welcome to arduino

When you plug the arduino board into your computer it shows up as a serial port.
talking to the board is quite simple in any language that supports serial communication. I do this all the time from RealBasic and many other languages.

I googled around for C# and serial port and I found this links that seem to have all you need
http://msdn.microsoft.com/msdnmag/issues/02/10/netserialcomm/
http://www.codeproject.com/csharp/SerialCommunication.asp

hope this helps

massimo
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 5
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the links, the look promising


Quote
HI


When you plug the arduino board into your computer it shows up as a serial port.


Is this also true for the USB boards ?

Mikmo

Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 5
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ahh!

reading some posts in the forum answers my question, it's a virtual serial port - how cool is that :-)

writing software for a  serial port, is so much easier than for USB.

My boards arrive tomorrow it will be like christmas.

MikMo
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 28
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
When you plug the arduino board into your computer it shows up as a serial port.
talking to the board is quite simple in any language that supports serial communication. I do this all the time from RealBasic and many other languages.

Hi massimo, could you post sample code for reading serial port with Realbasic. I tried many times but not success.

Thanks.
Logged


Pages: [1]   Go Up
Jump to: