Pages: [1]   Go Down
Author Topic: serial read  (Read 1211 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello guys!
I have successfully written and tested a programm for arduino, which is sending two numbers  to the computer over usb via serial. Everything works perfekt with the arduino pc suite, but i want it to start a programm when it casts a specific value. i don't know how and where to start please could anyone help me out. PS: i am using ubuntu 10.10 and i have thought, to make a c programm, but i don't get results.
Thank you and i hope i posted in the right section of the forum(soory i am new here).
Logged

New River, Arizona
Offline Offline
God Member
*****
Karma: 19
Posts: 935
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Every one needs to start somewhere.  Perhaps you could tell us more about what you want to start off with.  Do you want the arduino to send something specific to the PC or is it the other way around?  Have you looked at some of the tutorials out there that do something similar?  Perhaps you need to start off with one of the beginner arduino books so you can do something similar to get you started?
Logged

Trying to keep my house under control http://www.desert-home.com/

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

 thank you for the fast reply!
i have two arduino beginner books, but it has nothing to do with the arduino itself. The software and the hardware works perfectly. i have written a small programm that sends an ascii 1 if a button is pressed and a 2 if the 2nd button is pressed over the usb/serial port to the computer. I search a c code, that can handle inputs from the arduino, so i can start a shell script with it.
Logged

New River, Arizona
Offline Offline
God Member
*****
Karma: 19
Posts: 935
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Correct me if I misunderstand.  Now you want to look at the value returned from the arduino on the PC and do something based on which value you received, right?
Logged

Trying to keep my house under control http://www.desert-home.com/

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

yeah right, but this is what i ment from the beginning on
 
Logged

New River, Arizona
Offline Offline
God Member
*****
Karma: 19
Posts: 935
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, at this point I have to let someone else help you.  I haven't done a single thing with the USB port input to the PC from the arduino. 

good luck.
Logged

Trying to keep my house under control http://www.desert-home.com/

Cardiff, UK
Offline Offline
Jr. Member
**
Karma: 0
Posts: 70
Programmer of all sorts
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Check out this post:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1209217094/all

it has some sample code in VB.Net on performing serial communication.
Logged

My Arduino 7 segment LCD/LED library

http://code.google.com/p/arduino-seven-segment/

Pages: [1]   Go Up
Jump to: