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.

Is it possible to control an Arduino with a computer?

Hello,
I'd like to know if it's possible to create a computer program in whatever language - like C, Java or Python - that controls an Arduino.

For example, the program would have a GUI and if you clicked a button, Arduino would light up an LED.
Or you would click another button and Arduino would do something with some servo motors.
etc
etc
etc

Is it possible?
Thanks. :)

10 answers
sort by: active | newest | oldest
Apr 17, 2010. 1:43 PMsteveastrouk says:
Yes, its easy. You use the serial input, either with the FTDI cable, or via USB.

Steve
Sep 9, 2010. 12:27 PMthe seaker says:
This http://www.instructables.com/id/Controlling-an-Arduino-with-Cocoa/ should help you out some. and i am working on this same thing so if you want to see my source code and what not, pm me. i have the arduino duemilanove controlling 8 leds from a c# program.
May 6, 2010. 9:40 AMspudule says:
If you were to use flash, there is software available that will convert from the protocol flash uses into serial.
From what I gather, if the program you are using doesn't or can't communicate using 'serial', then there are already plenty of pieces of software for translating it. 

www.arduino.cc/cgi-bin/yabb2/YaBB.pl





May 1, 2010. 11:24 PMichisato says:
 any programming language :) processing is popular but i used Visual basic to control my robot, just communicate over serial :D
May 1, 2010. 3:06 PMbelliedroot says:
Check out 'processing' at processing.org . It is like the sister programing IDE to Arduino. You can use 'processing' to control the arduino, like a color picker that you click with your mouse or whatever.
Apr 27, 2010. 1:31 PMajmontag says:
 Yes, I have worked on a team project in which we used a Java touchscreen GUI to communicate to the Arduino. Java has an RX/TX library for serial communication, but we found this to not work.  We instead used a C# program to pipe data from the GUI out to Serial.  Once you get things over to Serial things on the arduino end are pretty straightforward. 
Apr 21, 2010. 9:40 PMraykholo says:
Ultimately, the serial monitor is the way to go (ideally.)  However, this is not ideal and attempting to transmit more than one type of command that way will be a troublesome.  The GUI to program control and data return: Labview.  I have done some basic work with it recently.  I heard that theres a way to put it on arduino, so it is possible.  Not much else I know on doing that, just know that it is possible.  Good luck.
Apr 21, 2010. 5:33 PMGazaman says:
If you check under Arduino - Firmata, I think you will find pretty much exactly what you are looking for (something that can control Arduino from your PC without writing writing customized Arduino sketches once you include the firmata library).

You can take it a step further and use Zigbee wireless modems between your computer and the Arduino to remote manage / control it...

Check out this link: http://www.acraigie.com/programming/default.html

Gary

Apr 17, 2010. 4:32 PMmwrenfro says:
Sparkfun recently released a part called the Serio that is more or less what you're looking for out of the box (not sure about the servos). But at its core, it's a microcontroller with a USB port and a loaded program that reads commands off the serial port and reacts accordingly.

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!