Go Down

Topic: Arduino + Visual Basic (Read 1 time) previous topic - next topic


Hi everyone
For a project im doing i have a Visual Basic program that interfaces with the Arduino. What I was wondering is if its possible to program the Arduino using the Visual Basic program.

For example: I click a certain button in a form and it compiles a certain sketch and loads it into the Arduino.

Maybe there is a way I could make my program use the Arduino IDE in the background or something.... :-?


Simple answer is yes you can do that.
However it is probable that you will have to do it yourself. That is I don't know of any one who has written such a system although there is nothing stopping you doing so.


The Arduino IDE is just using the Avrdude (i think) program.

If you turn on verbose text in the IDE you can see exactly what is going on when Arduino compiles and uploads a sketch to the board.


Thanks for the replies.
I turned verbose text on but I must say I find it hard to follow the compilation path. Is there not a way I could still make the IDE do the compiling and uploading form my program without opening up the IDE?


Not really, that would be like running a program without running it :-)


What actually does the compiling and uploading in the Arduino environment anyway?


Wouldn't this essentially be rewriting the IDE in VB? Not saying this is a bad idea, but it's a lot of work when the IDE is already there. For a custom job I think you might be able to call avrdude from VB, but you'd need to understand it properly in order to do it right.
3D Artist,Modeler, Texturer, Animator, Electronics and Robotics, Programming C, VB, Website Design, Flash animator

Too many hobbies?


Jun 13, 2010, 03:22 pm Last Edit: Jun 13, 2010, 03:23 pm by retrolefty Reason: 1

What actually does the compiling and uploading in the Arduino environment anyway?

The Arduino IDE calls the open source gcc compiler/linker for constructing the final HEX file. The IDE then calls the open source AVRDUDE for uploading the HEX file to the target board.



If you just want your VB program to upload an already compiled program to Arduino you can skip the ggc compile / link step and just call Avrdude to upload the hexfile. Be warned though, Avrdude takes a whole bunch of parametres that absolutely has to be right. You should be able to see them in the IDE in verbose mode.


Hi everyone and thanks a lot for all the replies.
I will indeed try to call the gcc compiler and the avrdude from vb. Do you think I cantake inspiration onthe already written java code for the Arduino IDE and if so which source files from all of the java code (http://code.google.com/p/arduino/source/browse/#svn/trunk/app/src/processing/app) is responsible for all the compilation and uploading?

Thanks again. :)

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131