Pages: [1]   Go Down
Author Topic: (Help) Computer vs Arduino  (Read 849 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, does anyone know if you can control the arduino chip from a program on your computer ?

like for example I would like to build a program that tells me the room temperature and have the arduino chip running the temperature sensor and sending the data to the program on my Mac... is this possible using programming skills in both arduino and software ?

if so can someone tell me a couple of tutorials for IOKit in mac os x, as I think this is the way to start smiley-razz
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i think it's yes, i have seen video's on this it. but then again i don't own a arduino but i will be getting one so ill try smiley-grin but i think so.
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That is absolutely possible.

What you need is some programming environment on the computer that supports reading from the serial port. This can be doné in most lprogramming languages both under Windows, on the MAC, and under LINUX.

Writing a program that reads from the serial port usually is not too complicated.

I have done it with Visual Basic .net (VB 2005), but almost any language will have the ability. My program reads the value of 16 potentiometers hooked up to the Arduino board.

It is also possible to have two way communication between the Arduino board and the PC, so for instance you could have the program on the Pc ask the Arduino borad to send information from your sensors when needed.

One important rthing you should be aware of is that you need the serial port on the Arduino board (the USB port) for the communication with the PC, and some sensors are also controlled / read with serial communication. You can not use the built in serial port for both at the sametime, so if you have sensors that need serial communication you should check the forum / playground / example code for how to use softserial communication. This is a way to implement an aditional serial port with two digital pins on the Arduino board and some software.

Good luck with your project.

MikMo

http://www.mikmo.dk
« Last Edit: December 09, 2007, 07:21:06 am by MikMo » Logged

Greenwood, Indiana
Offline Offline
God Member
*****
Karma: 0
Posts: 508
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://processing.org/

This works well and it's free. You can also you Flash and Max of which I have no clue.

I tried one of the examples and it's pretty cool. You can send a value from say a pot or a button to processing and have it do something. In one of the examples it changes the color of a window but it could post that value to a web page or make a blog entry or operate locally in many ways.
Logged

If it was designed by man it can be repaired by man.

Pages: [1]   Go Up
Jump to: