3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Interfacing your arduino with a C# program

Interfacing your arduino with a C# program

Ever wanted to make your own application (*.exe) to work with your arduino (or other serial communicating device)?

This instructable requires:

  - Visual Studio 2008 or later* (I am using 2010 RC, some options may differ between versions)
                       OR
  - Visual C# Express Edition 2008 or later*


  - An Arduino (Any type) or other kind of serial communicating device
  - A basic knowledge of the C# Language
 

* An earlier edition of VS may work, but I am not sure if it has the SerialPort library.

 
Remove these adsRemove these ads by Signing Up
 

Step 1Create a new application

Create a new application
«
  • serialport.bmp
  • newproj.bmp
Open Visual Studio and create a new Windows Forms Application. Then when form 1 comes up, add as many controls as you would like, starting with the SerialPort class.

If you are adding the Arduino support to your pre-made program, then just add the SerialPort class. If you are more advanced, you may want to make a plain code file with just the SerialPort library, so that you don't keep defining it.
« Previous StepDownload PDFView All StepsNext Step »
4 comments
Feb 21, 2012. 8:51 PMuncledj says:
I am c# programmer, I waste a lot of time try the c# in ardunio, at the end, I give up. mainly, many HW library is not equip as ardunio library, even I know how to convert back to c# code. But what is the point for my objective, learn the language or make sth happen in ardunio, and is stupied idea add extra code in the assamble code.
Sep 26, 2011. 12:35 PMbassman76jazz says:
nice job
Jul 26, 2010. 2:30 PMredryno1221 says:
Awesome I've been looking for a tut on just this...

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
4
Followers
2
Author:Techno Dancer(My site)
I love writing computer programs and pulling stuff apart to "see how it works", then putting it back together again.