Icon controling solenoid by remote

I would like to use arduino wirelessly with my laptop. I would like to be able to click on an icon and activate a solenoid. Actually, I would like to have like 10 solenoids at different locations that can be activated by clicking an icon on my laptop. Is this possible? How should I start if it is possible? Thanx


You can create an application on the PC that displays a form with any number of buttons. The application will need to connect to the serial port, and send data when the button is pressed. By connecting a XBee (http://www.sparkfun.com/products/8665) on a XBEE Explorer (http://www.sparkfun.com/products/8687) to the PC, with a XBee and a shield (http://www.sparkfun.com/products/9976) on the Arduino, you can make the whole thing wireless. Or, get the whole kit: http://www.sparkfun.com/products/9897

Clicking an icon on the desktop implies starting an application, have it do something, and then end. The problem with this is that when the application starts, and establishes serial communication, it will reset the Arduino. If the application does not wait for the Arduino to be ready, but sends data immediately, that data will be lost. The application then ends, causing the serial port to be closed, causing the Arduino to reset again. Thus, no useful action will have occured.

There are ways to modify the Arduino to prevent this, but I don't plan to do them to my Arduinos.


Probably the simplest single click setup is to make a web page based control GUI. You can put the apache web server on your laptop and make a control page. I use a simple batch file to operate the below single click pan/tilt cam. With the arduino you have to use a resistor or capacitor to defeat the auto reset after you have loaded your script on it.


cool thanx