At last. Working.
Redesigned pcb's but not reconfigured. Just turned pic sideways for ease of removal and added pads for each pin to facilitate cross connection, although not finally needed.
After making up the boards I wrote the most simple TX/RX routines and connected the 3 pins needed with temporary jumpers. They immediately talked to each other. Replacing the jumpers with the modules and they talked !!!!
There was one change in code that needed to be added but later removal and they still talked although not quite 100%. That was the extra first characters "SSSSSSSSBOB" before the required string to match the serin string of "BOB"
Send code -------------
Code:Include "modedefs.bas" DEFINE OSC 10 TRISA = %00000000 CMCON=7 pause 2000 TEST: serout PortA.3, T9600,["SSSSSSSBOB"] PAUSE 500 GOTO TEST END
Receive code -----------------------------
Now I need to expand the code to do just what I want and to then add a decent antenna to get the range.Code:Include "modedefs.bas" DEFINE OSC 10 TRISA = %11111101 CMCON=7 relay var PortA.1 low relay pause 2000 TEST: low relay pause 100 serin PortA.2,T9600,["BOB"] high relay PAUSE 1000 GOTO TEST END
I'm considering a 'Moxon' Rectangle which gives 3dbd gain with excellent f/b ratio fitted directly to modules via short solid wire. It can be made up using UK twin earth cable wire. About 1.5mm copper. It's very small indeed at 123x46mm
Rob




Bookmarks