Basic Stamp communicate with RS-232 enabled module?
arrozkongandulez
Posts: 5
Hello people!
i have a basic stamp that i'd like to interface with the Atlas Scientific ph meter probe.......
they specify that it can communicate through the RS-232 protocol
in their datasheet they give a little explanation:
"TX output delivers asynchronous serial data in RS232 format, except voltagesare 0-Vcc. The output is (up to twelve) ASCII characters representing the pHor status messages; all ending with a carriage return (ASCII 13). Example4.60<CR>
The baud rate is: 38400, 8 bits, no parity, with one stop bit.
The voltage swing 0-VCC, not +/- 12 volts
If standard voltage level RS232 is desired, connect an RS232 converter such as a MAX232. "
will i be able to interface the two? could anyone provide an example? thank you very much in advance!.
i have a basic stamp that i'd like to interface with the Atlas Scientific ph meter probe.......
they specify that it can communicate through the RS-232 protocol
in their datasheet they give a little explanation:
"TX output delivers asynchronous serial data in RS232 format, except voltagesare 0-Vcc. The output is (up to twelve) ASCII characters representing the pHor status messages; all ending with a carriage return (ASCII 13). Example4.60<CR>
The baud rate is: 38400, 8 bits, no parity, with one stop bit.
The voltage swing 0-VCC, not +/- 12 volts
If standard voltage level RS232 is desired, connect an RS232 converter such as a MAX232. "
will i be able to interface the two? could anyone provide an example? thank you very much in advance!.
Comments
However, at that baud rate, its been my experience that the Stamp will not be able to keep up with receiving more than a couple of characters because it has no communication buffer.
If the instrument can be set down to 4800 baud or lower, everything will be fine.
Also, if you move up to a BS2px, you may be able to run at the higher speed. More drastic solutions include an external communication buffer or a microcontroller with a comm buffer.
Cheers,
i have 2 Basic Stamp 2e modules, i dont really want to buy another one... so you think the stamp couldn't keep up with a reading of about 6 ascii chars? (e.g XX.XX<CR>)? thanks for the help
You easiest path will be to lower the baud rate by using the Z3 command. Something like this (untested!).