Club robotique de Sophia-Antipolis

Accueil > POBOTpedia > Components > Better Arduino for beginners > Remote control GUI for Arduino

Remote control GUI for Arduino

samedi 24 septembre 2011, par Julien H., Loïc


Toutes les versions de cet article : [English] [français]

Loïc developed a nice graphical user interface for easy access to inputs and outputs of Arduino boards, with even control of servomotors. The transfer protocol is much quicker than Firmata, by using only four bytes. Last but not least, you may record, store and replay sequences of orders at will.

How do you intend to interact with real world using modern interfaces such as Arduino ? Coding autonomous softwares is not so easy for quick & efficient creations. Our solution is using a remote GUI with direct control over the inputs and outputs of any Arduino board. As you will see in the next part of this project, removing the link is OK so you can get an autonomous way of complex behaviors without writing a line of C code.

The project is named "Arduino IHM 2.0" from the French acronym for GUI : Interface Homme Machine.

 Explanation

PNG - 249.7 ko

The solution is an Arduino sketch called IHM2_0 that implements a communication protocol between your computer and the Arduino board.

In other words, it opens a serial link to transfer orders to the board and get back the acknowledge of job executed. Thus you don’t have to rewrite nor access to the board when you want to change a part of your sequence.

It’s of course very useful for tests, especially with complex mechanisms such as servomotors on robots.

 How To

Step 1 : Put IHM2_0 sketch into the Arduino

Open the archive and unzip it in your sketchbook.

Zip - 2.6 ko
Sketch Arduino IHM 2.0

Select your board (tested with Duemilanove, Uno, Mega 2560 and Android Arduino ADK) and the COM / tty port. You may not change the Serial speed, it’s already put on maximum 115200 bps.

PNG - 56.1 ko

Then click the button for upload into the board.

Step 2 : Software installation

The archive below contains all you need (thus it’s a bit heavy due to Qt dll). Contact us for Mac and Unix versions.

Zip - 8.4 Mo
Arduino IHM 2.0 (Win)

Just unzip it anywhere you want (such as Arduino software). That’s all !

Step 3 : Running Arduino IHM 2.0

PNG - 249.7 ko

Select the com port for your Arduino (the same from the skectch upload). Don’t change the baudrate until you also did it in the Arduino code.

Start the connection if the serial port is not already open somewhere else.

The digital part of the Arduino is already available as input, digital output or servomotor output. Just click and play.

Special operations

You may use the buttons such as Play and Record to store the sequence of operations. Very helpful for robot moves.

Just replay until you are satisfied. The interface is partly in french, such as "Sauver" (save) and "Ouvrir" (open) to handle text files with your sequences.

 Example

Loïc’s great Quarduino robot is solely controlled with this GUI software. By using a storage shield for Arduino (with SD card for example), the text files with the sequences will be available from the Arduino without computer connection anymore. Au-to-no-mous ;)

Enjoy the video :

 Evolutions

There will be an oscilloscope for the Analog part of the boards. Soon !

Vos commentaires

  • Le 6 novembre 2015 à 16:59, par Dr. C.M.J. Wijers En réponse à : Remote control GUI for Arduino

    Dear Sirs,
    I am a scientist and want to use your user interface. I use however exclusively linux.
    Could you be so kind to provide me with the code for Arduino IHM 2.0. I am using Mint Linux.
    If you send me the code, I can see if I can adapt it to my kind of work, but that is not robotics.
    It is for measuring and control purposes.
    Thank you in advance,
    Best regards,
    Dr. C.M.J. Wijers

    Répondre à ce message

Un message, un commentaire ?

modération a priori

Attention, votre message n’apparaîtra qu’après avoir été relu et approuvé.

Qui êtes-vous ?

Pour afficher votre trombine avec votre message, enregistrez-la d’abord sur gravatar.com (gratuit et indolore) et n’oubliez pas d’indiquer votre adresse e-mail ici.

Ajoutez votre commentaire ici
  • Ce formulaire accepte les raccourcis SPIP [->url] {{gras}} {italique} <quote> <code> et le code HTML <q> <del> <ins>. Pour créer des paragraphes, laissez simplement des lignes vides.

Ajouter un document