FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   Basic Stamp or PIC to proce55ing
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Basic Stamp or PIC to proce55ing  (Read 387 times)
Alina


Basic Stamp or PIC to proce55ing
« on: Feb 12th, 2003, 8:11am »

Hello,  
 
I am trying to use accelerometers to play around with proce55ing.  I want to send 6 continuous numbers to the program. Unfortunately, any time i try to import the data i get garbage.  
 
Can you suggest a way to bring those numbers into proce55ing?    
 
I am sending whole numbers directly to the serial port.  Should i use a different format?
 
Thank you,
Alina
 
fry


WWW
Re: Basic Stamp or PIC to proce55ing
« Reply #1 on: Feb 12th, 2003, 1:34pm »

using basic stamp, send the stuff over as raw bytes (rather than as numbers with spaces between). then write a function:
 
void serialEvent() {
  // do things here based on the latest value
  // latest value is in the variable 'serial'
}
 
the default for basic stamp is to send the data over as ascii, so "123 50 23" etc will come through as 49, 50, 51, 32, 53, 48, etc.. ('1' in ascii has byte value 49.. a space has byte value 32). i'll spare the full explanation..
 
REAS


WWW
Re: Basic Stamp or PIC to proce55ing
« Reply #2 on: Feb 12th, 2003, 10:05pm »

Alina,
 
We're working on posting some examples up on the site. Hopefully they will be up this Friday 14 Feb. We're beginning with BasicX (BX-24) examples and then may also make a few PIC examples. What are you currently trying to attach?
 
+ Casey
 
Alina


Re: Basic Stamp or PIC to proce55ing
« Reply #3 on: Feb 13th, 2003, 3:50am »

Casey,
 
Right now i'm working with the Basic Stamp but I might move to using a PIC to get a faster transmission.  
 
The Basic Stamp was tricky because the way you send out your serial data out is different from the way you view it in the debug window.
 
I will be glad to contribute some Basic Stamp examples if you would like
 
Alina
 
Pages: 1 

« Previous topic | Next topic »