Pages: [1]   Go Down
Author Topic: Where can I find more programming reference?  (Read 394 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm fairly new to the Arduino and it's programming. I'm interested in programs that will interface with a Windows PC. I know that I could create an application in C# or VB on the PC and communicate using the serial interface. That's probably overkill for what I need.

I see example programs that use functions like writetext, and draw lines on the screen using the draw function. I cannot find these functions listed on the Arduino reference page. Where is the reference documentation for those other functions? I'm guessing there are other functions as well.

Can someone point me to where these functions are documented? I would really appreciate it.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 617
Posts: 49463
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I see example programs that use functions like writetext, and draw lines on the screen using the draw function. I cannot find these functions listed on the Arduino reference page. Where is the reference documentation for those other functions? I'm guessing there are other functions as well.
I think you are looking at Processing sketches. You might try the documentation on their site.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I see example programs that use functions like writetext, and draw lines on the screen using the draw function. I cannot find these functions listed on the Arduino reference page. Where is the reference documentation for those other functions? I'm guessing there are other functions as well.
I think you are looking at Processing sketches. You might try the documentation on their site.

It appears I was. I didn't understand the difference between programming in Processing Sketches and Arduino Sketches. It appears the Processing environment is designed to graph data obtained from sensors. They support adding a library to communicate with the Arduino.

What I was hoping that there were some functions in the Arduino sketches to allow very simple interfaces with a computer such as reacting to a keypress on the computer keyboard or sending a text message to the host computer.
Logged

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

Quote
What I was hoping that there were some functions in the Arduino sketches to allow very simple interfaces with a computer
Yes it is called Serial.print and Serial.write and it send data to the serial port. Then any application that can handle the serial port on your computer can read it. This includes processing.

Quote
It appears the Processing environment is designed to graph data obtained from sensors
That is a very limited view of Processing.
Logged

South Texas
Offline Offline
Edison Member
*
Karma: 8
Posts: 1025
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You have the Arduino environment which is based around the AtMega328. You have a limited number of i/o pins, no video display, no keyboard, no a lot of other things.

You have the Processing Environment which is PC based. It has access to a video display, keyboard, disk drives, network and a lot of other capabilities. 

Arduino is based on Processing and is a subset of processing that is dedicated to the various ATmel microcontrollers and their capabilities/limitations.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 303
Posts: 26354
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Processing is based on Java.
Arduino is based on Wiring, which is based on C/C++.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm starting to get a little better understanding.

It appears I'll have to learn more about Processing sketches because the Arduino sketches by themselves won't do what I'm looking for. I have more experience with Visual Basic, so I may take that path instead. I think I would use serial I/O functions in VB to send a receive data to the Arduino board. The VB app would get input from the keyboard on the PC and display outputs on the PC. The Arduino board would communicate with sensors and relays to monitor and control things.

I think I'll do some searching on using VB with the Arduino.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This looks cool!

http://www.acraigie.com/programming/firmatavb/

Someone wrote VB .Net Class libraries to talk to Firmata. This looks like an easy solution to interface a VB .Net application to the Arduino.

Has anyone else played with these libraries?
Logged

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

Depends on what you want to do Firmata has a bit of a reputation of being difficult and buggy.
Logged

Pages: [1]   Go Up
Jump to: