I bought a wireless receivers and transmitters from Hongkong, just want to play with them. Now I tried to transmit data between two 08M. After one day of struggling I gave up. I never got the same data on the receive side as send from the transmit side. Only nonsense.
Then I put a wire between the two 08 with the same dismal result. What I thought was a simple task looks like learning to fly a jet. I have search the forum and tried the most (I think). Also tried to replace the two 08 with som brand new one.The distance between the two are about 25cm and using the same power supply.
Tried with N2400, T2400, N1200, T1200. Also tried with "pulsout 1,200" instead of "SerOut 1, T2400, (85,85,85,85,85,85,85,85,85,85)".
The code is very simple.
;Transmit code:
#PICAXE 08M
#terminal off
Transmit:
Do
;pulsout 1,200
high 1
SerOut 1, T2400, (85,85,85,85,85,85,85,85,85,85)
Pause 5
SerOut 1, T2400, ("ABCDEF")
Pause 1000
Loop
;Receive code:
#PICAXE 08M
#terminal 4800
Receive:
Do
SerIn 2, T2400, b0
If b0 > $20 And b0 < $7F Then
SerTxd( b0 )
End If
Loop
Then I put a wire between the two 08 with the same dismal result. What I thought was a simple task looks like learning to fly a jet. I have search the forum and tried the most (I think). Also tried to replace the two 08 with som brand new one.The distance between the two are about 25cm and using the same power supply.
Tried with N2400, T2400, N1200, T1200. Also tried with "pulsout 1,200" instead of "SerOut 1, T2400, (85,85,85,85,85,85,85,85,85,85)".
The code is very simple.
;Transmit code:
#PICAXE 08M
#terminal off
Transmit:
Do
;pulsout 1,200
high 1
SerOut 1, T2400, (85,85,85,85,85,85,85,85,85,85)
Pause 5
SerOut 1, T2400, ("ABCDEF")
Pause 1000
Loop
;Receive code:
#PICAXE 08M
#terminal 4800
Receive:
Do
SerIn 2, T2400, b0
If b0 > $20 And b0 < $7F Then
SerTxd( b0 )
End If
Loop