Instructables

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. :)

Yes, its easy. You use the serial input, either with the FTDI cable, or via USB.

Steve
pedrotome (author)  steveastrouk4 years ago
Thanks a lot. :)
SCORN1537 months ago
Bla Bla Bla...
1. You need to download a program called processing, easier to use the older 1.51
2. You need to be using windows 7

3. You going to look on YouTube for a few months gathering info on how it works. And when nobody helps you, send me and email.
iserver1 year ago
Hi

its easy to communicate with Arduino Borad using Dos Command, so that you can transform Dos command to handmade application, i did it and i put my command in exe application, i'm using multimedia builder to make text button and turn on and off LEDs relays ...

test arduino button.jpg
the seaker3 years ago
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.
hello the seaker,
i'm interested with your project. but i'm using visual basic 6.0
what source code i'll write in vb6 to control 8 leds in arduino?
please help.
Thanks!
spudule4 years ago
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





belliedroot4 years ago
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.
ajmontag4 years ago
 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. 
raykholo4 years ago
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.
Gazaman4 years ago
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

mwrenfro4 years ago
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.