Wiring Forum
Programming Questions & Help >> Integration >> Using a computer to control the microprocessor

Message started by ijmbarr on 02/18/10 at 14:21:36

Title: Using a computer to control the microprocessor
Post by ijmbarr on 02/18/10 at 14:21:36
I'm currently using the jx-mega128 to try and control several things from a computer connected by usb. Currently I'm using the serial connection through wiring to connect and things are working, but I'd like to move use a c++ or python programme to do this automatically.

I've no idea where to start.  I'm not a great programmer and haven't really had to do this before. I've had a look at http://www.wiring.org.co/learning/tutorials/C++/ but am not really sure how that works, plus it doesn't describe how to send data to the microprocessor.

The same for the Firmata library. It seems geared towards someone who already has experience using this things. Are their any examples or tutorials out there designed for beginners on the subject? Any books worth reading on the matter?

Any help at all would be appreciated.

Title: Re: Using a computer to control the microprocessor
Post by barragan on 02/18/10 at 21:18:34
As I understand you need to receive/send data from a C/C++ program running on your PC right?
Here is a small example from Andres Burbano which includes C++ code to communicate with Wiring, http://wiring.org.co/learning/tutorials/C++/

Simon Blackmore made an example using phyton and Blender: http://www.simonblackmore.net/notes/doku.php?id=wiring_to_blender

I am not sure if this helps you or you mean to program the Wiring hardware or atmega128 directly in C++
Please let me know.

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.