Hello,
Back in March i was having issues trying to get reliable radio communication working for a remote control car project. Due to a certain world pandemic I stopped working on the project for over a month and have only just begun working on it again. Back in march, Hippy advised that I strip down my programs and ensure that I had a firm foundation to start working on. As my last attempt at this car project was poorly documented and poorly executed, I've started the whole circuit and programs from scratch. This time I'm determined to have a good foundation circuit and program.
I'm starting with two 18m2 chips running programs very similar to what hippy recommended. The receiver receives bad packets every single time. I'm very confused and don't know what trouble shooting i should be doing. I've taken everything off the breadboards and wired it all up again, same issue. I'm very sorry if its a basic issue, i really just don't know what else to try except ask people that know what they're doing
Any advice at all would be massively helpful!
Thankyou,
Theo
Transmitter:
Receiver:
Transmitter Datasheet
Receiver Datasheet
Back in March i was having issues trying to get reliable radio communication working for a remote control car project. Due to a certain world pandemic I stopped working on the project for over a month and have only just begun working on it again. Back in march, Hippy advised that I strip down my programs and ensure that I had a firm foundation to start working on. As my last attempt at this car project was poorly documented and poorly executed, I've started the whole circuit and programs from scratch. This time I'm determined to have a good foundation circuit and program.
I'm starting with two 18m2 chips running programs very similar to what hippy recommended. The receiver receives bad packets every single time. I'm very confused and don't know what trouble shooting i should be doing. I've taken everything off the breadboards and wired it all up again, same issue. I'm very sorry if its a basic issue, i really just don't know what else to try except ask people that know what they're doing
Any advice at all would be massively helpful!
Thankyou,
Theo
Transmitter:
Code:
main:
b0 = $A3
let b4 = 20
b7 = b0 + b1 + b2 + b3 + b4 + b5 + b6
rfout b.0, (b0,b1,b2,b3,b4,b5,b6,b7)
pause 500
goto main
Code:
#no_data
#terminal 4800
main:
low c.1
if Pinb.6 =1 then main
high c.1
serin b.2, n2400, b0,b1,b2,b3,b4,b5,b6,b7
low c.1
if b0 <> $A3 then
sertxd( "Bad packet", cr, lf )
else
b0 = b0 + b1 + b2 + b3 + b4 + b5 + b6
if b0 <> b7 then
sertxd( "Incorrect checksum", cr, lf )
else
sertxd( "Valid packet", cr, lf )
end if
end if
goto main
Receiver Datasheet
Attachments
-
413.9 KB Views: 5