Pages: [1]   Go Down
Author Topic: Arduino as input output board  (Read 569 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This must be the most stupid question in the whole forum, but I wasn't able to find the answer.

Can I run my software on my PC and just use the Arduino as I/O board with C/C++, or does only work in stand alone mode?

Thanks.
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 206
Posts: 12859
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I believe this will do what you want...

http://firmata.org/wiki/Main_Page

I've never used it myself but I suspect someone else here can help with the details.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 620
Posts: 33991
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
or does only work in stand alone mode?

Even so with the firmata software it is still running stand alone.

It's just the job it is doing is looking at the serial port for some commands about reading or writing to the ports and doing it when these come along.
Logged

Atascadero, CA
Offline Offline
Sr. Member
****
Karma: 2
Posts: 468
Arduino addict
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

With the Firmata libraries (or if you can interface to serial with your apps), the board can sort of act like an IO board, but it's more like a smart proxy.  It really is its own thing.  You need to write code that reads in data from sensors and then sends that to your computer (application) for further processing.

The cool thing is that it can be an IO board with some brains.  It can for example aggregate data and calculate whatever and then send that back to the computer rather than just relaying the sensor input data.  It's up to you how you want to use it, really.
Logged

What about elevensies? Luncheon? Afternoon tea? Dinner? Supper?

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

That's great! I really only wanted to be able to input commands from the computer as a form of input to the Arduino. As long as it's capable of running complex programs at a decent speed I don't really care where the calculations are done. I suppose running all in the PC and sending a lot of data to the Arduino would not be as fluid as running the programs directly in the Arduino.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 620
Posts: 33991
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
As long as it's capable of running complex programs at a decent speed

Well I wouldn't go that far. Complexity is limited by the size of storage for variables and lack of floating point support with only 16MHz clock. You are talking about something less capable than an Apple II here.
Logged

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

Ouch! No floating point! Well, I might just multiply all by 100 and work in percentages smiley-wink
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17293
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Ouch! No floating point!

There is floating point math avalible in the Arduino, it's just not done directly in hardware but rather is done with software library code.


Lefty

Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 620
Posts: 33991
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes when I said:-
Quote
lack of floating point support
I meant that there was no hardware support for floating point. However if you can do it all in integers it will be so much faster anyway.
Logged

Pages: [1]   Go Up
Jump to: