0

Serial data to Visual Basic, Visual C++, Java
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Serial data to Visual Basic, Visual C++, Java

by pd2kplus10 on Sat Apr 26, 2008 9:40 am

Hello all,

I'm interested in sending serial data from an arduino to my PC and have it displayed on either VB,VC++ or Java program. I'm not sure which one would be easiest to do. I would like to be able to make a simple program rather quickly ... nothing too fancy.
I just need to display a reading from one sensor.


thanks,
Phil
pd2kplus10
 
Posts: 16
Joined: Tue Apr 22, 2008 9:01 am
Location: Hollywood FL

by mtbf0 on Sat Apr 26, 2008 11:19 am

Code: Select all | TOGGLE FULL SIZE
int value;

void setup () {
  Serial.begin (9600);          // set usart - 9600 baud, 8 bits, no parity, 1 start bit
}

void loop () {
  value = analogRead ( 3 );  // get sensor value
  printInteger ( value );        // spit it out
  printNewline ();
}
User avatar
mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am
Location: oakland ca

by pd2kplus10 on Sun May 04, 2008 12:33 pm

Thanks. I think I'm going to use Processing. It looks much easier.



Phil
pd2kplus10
 
Posts: 16
Joined: Tue Apr 22, 2008 9:01 am
Location: Hollywood FL

Please be positive and constructive with your questions and comments.