At the moment i am having trouble with the data values that the PIC is recieving from the AXE123 reciever. the values that should be coming out when a push to make being pressed on the AXE123 transmitter board should be 49. However the value keeps changing everytime i press the push to make. Values that are random such as 48, 62, 6 and even 152 and 224. here is my reciever program:
main:
pause 10
serin c.7,n4800, b0,b1,b2,b3
debug
if b0 = 49 then straight
if b1 = 49 then back
if b2 = 49 then right
if b3 = 49 then left
goto main
straight:
let pinsb = %00000000
high b.0
high b.2
goto main
back:
let pinsb = %00000000
high b.1
high b.3
goto main
right:
let pinsb = %00000000
high b.0
high b.3
goto main
left:
let pinsb = %00000000
high b.1
high b.2
goto main
My program works and there are no kinks in it. is there any possible way of setting the imput to transmit a sertain value such as 49, so it stays constant and does not keep changing? or would it depend on the wires within the breadboard that i have made?
main:
pause 10
serin c.7,n4800, b0,b1,b2,b3
debug
if b0 = 49 then straight
if b1 = 49 then back
if b2 = 49 then right
if b3 = 49 then left
goto main
straight:
let pinsb = %00000000
high b.0
high b.2
goto main
back:
let pinsb = %00000000
high b.1
high b.3
goto main
right:
let pinsb = %00000000
high b.0
high b.3
goto main
left:
let pinsb = %00000000
high b.1
high b.2
goto main
My program works and there are no kinks in it. is there any possible way of setting the imput to transmit a sertain value such as 49, so it stays constant and does not keep changing? or would it depend on the wires within the breadboard that i have made?