Problem with serial connection between Atom28 and Stamp BS2e

Hi all,

I was originally trying to get my Atom28 on an ABB to communicate serially with a BS2e Stamp at 9600 baud N81.

The Atom28 code looked like this:

spin CON 6

command CON 1

Serout spin, N9600, “!”, command]

and was in a loop with about a 1 second pause.

IDE: 5.3.1.0

The BS2e code looked like this:

SERIN 9, 84, [WAIT “!”, command]

and was in a loop that used DEBUG to display the value of command so that I would know that the “!” had been received.

For some reason the Atom28 would only send DEC 55 and not DEC 37, which is the code for ASCII “!”, would send a 6 instead of a 1, and would only transmit when I pinched the two transmission wires between my thumb and forefinger. And yes, I have a common ground between the Atom and the Stamp.

In frustration, I replaced the Atom28 with a BS2 programmed to send the “!” and the BS2e received the “!” and the command value of 1 just fine without having to pinch the two transmission wires between my thumb and forefinger.

Any ideas?

Regards,
TCIII

Check that the baudmode is correct. Atom baud modes are inverted relative to the stamp(eg I modes on stamp are N modes on Atom).

Hi Acidtech,

Thanks for the tip.

I will check it out.

Regards,
TCIII