I have been messing with the modules I bought for parallax, and I still have no luck getting them to work. I got the code from the datasheet, which is attached below, all help is greatly appreciated. I am really new to electronics, and robotics
These are very simply devices to use, so I suspect there is something with electrical configuration. Reply back with a list of exactly how the device is connected, what pins are connected where.
You are programming the TX code on on board, then switching to another board for RX and monitoring that one?
Well.... It seems everything is correct electrically, though I noticed the comments in one of them reference P7, though the code is set up for P8.
With the BS2p you need to change the baud rate to 16624 since it runs at a different speed.
You probably won't be able to get 9600 baud from these units, they cannot support that baud rate. I'd suggest going to the help files and use the values for SERIN and SEROUT for 1200 baud inverted
Bs2: 17197
Bs2p: 18447
Was the problem that the value was incorrect for the BS2p or that the 9600 was too high on both? I have been getting 9600 to work with those units with no problems.
Martin, what would it look like if they weren't performing at that speed? Lost data?
I may have been in error on the 9600. Seems to me whenever we used them we went at a lower baud rate, but I could have it confused with another means of communications, such as using the 38KHz IR units to send data.
Now that I am looking at it, I am transmitting·using 9600 baud, I think my whole problem was being new I didnt know what I was doing, and he guide me·to the right place to get it to work, and just tested 9600 and worked·wonderful·
Comments
You are programming the TX code on on board, then switching to another board for RX and monitoring that one?
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Personal Links with plenty of BASIC Stamp info
StampPlot - Graphical Data Acquisition and Control
AppBee - XBee ZigBee / IEEE 802.15.4 Adapters & Devices
gnd, into last slot of Vss
+5V into first slot of Vdd
p8 into data pin of transmitter
and a usb board of education (receive)with a BS2p wiring as follows:
p0 470ohm resitor to an Led going to last slot of Vss
p8 into data pin of receiver
+5V into first slot of Vdd
gnd into second to last slot of Vss
With the BS2p you need to change the baud rate to 16624 since it runs at a different speed.
You probably won't be able to get 9600 baud from these units, they cannot support that baud rate. I'd suggest going to the help files and use the values for SERIN and SEROUT for 1200 baud inverted
Bs2: 17197
Bs2p: 18447
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Personal Links with plenty of BASIC Stamp info
StampPlot - Graphical Data Acquisition and Control
AppBee - XBee ZigBee / IEEE 802.15.4 Adapters & Devices
Was the problem that the value was incorrect for the BS2p or that the 9600 was too high on both? I have been getting 9600 to work with those units with no problems.
Martin, what would it look like if they weren't performing at that speed? Lost data?
Carlos
Sorry,
Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Personal Links with plenty of BASIC Stamp info
StampPlot - Graphical Data Acquisition and Control
AppBee - XBee ZigBee / IEEE 802.15.4 Adapters & Devices
Post Edited (bboy8012) : 10/1/2006 4:45:33 PM GMT