Sensor Help
Archiver
Posts: 46,084
Hello Ricky
> Is it ok to attach this word file to an email?
Email attachments are not permitted in this list, but you can upload
files to the Files folder:
http://groups.yahoo.com/group/basicstamps/files/
Saludos,
Aristides Alvarez
International Education Program Developer
aalvarez@p...
Parallax, Inc. www.parallax.com
Rocklin, California
USA
> Is it ok to attach this word file to an email?
Email attachments are not permitted in this list, but you can upload
files to the Files folder:
http://groups.yahoo.com/group/basicstamps/files/
Saludos,
Aristides Alvarez
International Education Program Developer
aalvarez@p...
Parallax, Inc. www.parallax.com
Rocklin, California
USA
Comments
a 2p. I am confused on the timing and the commands for the sensor. I have the
data sheet but it is only in word format. Is it ok to attach this word file to
an email?
[noparse][[/noparse]Non-text portions of this message have been removed]
It looks like the communication to this sensor is simply 2400 baud RS232.
For example, to read turbidity, you have to send it the activation
sequence, and then receive the result...
PAUSE 5 ' quiet before transmission
SEROUT 0,396,[noparse][[/noparse]$50,$03,$AD] ' command
SERIN
0,396,[noparse][[/noparse]wait($C0,$03),trans.byte0,trans.byte1,scat.byte0,scat.byte1,che
ck.byte0,check.byte1]
It may happen that the delay between the characters will be too fast
for the stamp to receive them with the above form of SERIN. The
following would be faster:
SERIN 0,396,[noparse][[/noparse]STR x\8] ' get 8 bytes fast
' then parse the bytes into the variables
' or just define the variables in the right order to begin with.
-- Tracy
>I have a sensor I need some help with. I am trying to interface
>this sensor to a 2p. I am confused on the timing and the commands
>for the sensor. I have the data sheet but it is only in word
>format. Is it ok to attach this word file to an email?
>
>http://groups.yahoo.com/group/basicstamps/files/Sensor.doc
Original Message
From: "Tracy Allen" <tracy@e...>
To: <basicstamps@yahoogroups.com>
Sent: Thursday, June 05, 2003 7:10 PM
Subject: Re: [noparse][[/noparse]basicstamps] Sensor Help
> Hi Ricky,
>
> It looks like the communication to this sensor is simply 2400 baud RS232.
>
> For example, to read turbidity, you have to send it the activation
> sequence, and then receive the result...
>
> PAUSE 5 ' quiet before transmission
> SEROUT 0,396,[noparse][[/noparse]$50,$03,$AD] ' command
> SERIN
> 0,396,[noparse][[/noparse]wait($C0,$03),trans.byte0,trans.byte1,scat.byte0,scat.byte1,che
> ck.byte0,check.byte1]
>
>
> It may happen that the delay between the characters will be too fast
> for the stamp to receive them with the above form of SERIN. The
> following would be faster:
> SERIN 0,396,[noparse][[/noparse]STR x\8] ' get 8 bytes fast
> ' then parse the bytes into the variables
> ' or just define the variables in the right order to begin with.
>
> -- Tracy
>
>
> >I have a sensor I need some help with. I am trying to interface
> >this sensor to a 2p. I am confused on the timing and the commands
> >for the sensor. I have the data sheet but it is only in word
> >format. Is it ok to attach this word file to an email?
> >
>
> >http://groups.yahoo.com/group/basicstamps/files/Sensor.doc
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
Should the baudmode be 1021 for the stamp2p instead of 396?
What is the wait command in the first serin command?
In the second serin command, what is str?
Is x the input data?
> Hi Ricky,
> It looks like the communication to this sensor is simply 2400 baud RS232.
> For example, to read turbidity, you have to send it the activation
> sequence, and then receive the result...
> PAUSE 5 ' quiet before transmission
> SEROUT 0,396,[noparse][[/noparse]$50,$03,$AD] ' command
> SERIN
0,396,[noparse][[/noparse]wait($C0,$03),trans.byte0,trans.byte1,scat.byte0,scat.byte1,check.byt
e0,check.byte1]
>
>
> It may happen that the delay between the characters will be too fast
> for the stamp to receive them with the above form of SERIN. The
> following would be faster:
> SERIN 0,396,[noparse][[/noparse]STR x\8] ' get 8 bytes fast
> ' then parse the bytes into the variables
> ' or just define the variables in the right order to begin with.
>
> -- Tracy
>
>
> >I have a sensor I need some help with. I am trying to interface
> >this sensor to a 2p. I am confused on the timing and the commands
> >for the sensor. I have the data sheet but it is only in word
> >format. Is it ok to attach this word file to an email?
> >
>
> >http://groups.yahoo.com/group/basicstamps/files/Sensor.doc
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>