Sending w0 with RF

nerdegutta

Senior Member
Hi.

When I'm trying to sent w0 through rf it chuncks it down to b0. Why? And how do I get w0 on the receiver side?

TX:

Code:
#no_data

Symbol ADCvalue = w0
symbol ADCpin = c.1
Symbol TXpin = c.0
Symbol Baud = N2400
Symbol ActLED = c.4

main:
	gosub getADC
	goto sendADCvalue
	
getADC:
	readadc10 ADCpin, ADCvalue
	return

sendADCvalue:
	serout TXpin, Baud, ("UUUUUUUUUUUUUUUUUUUUUUUUU")
	pause 50
	serout TXpin, Baud, ("therm", ADCvalue)
	pause 450
	debug
	toggle ActLED
	goto main
RX:

Code:
#no_data

symbol ADCvalue = w0
symbol RXpin = C.6
symbol Baud = N2400
symbol ActLED = C.0

main:
	do
		serin c.3, N2400, ("therm"),  ADCvalue
		debug
	loop
The transmitter and receiver are these:

433MHz
tx-rx.jpg

- nerdegutta
 

PaulRB

Senior Member
Because serout and serin always work in bytes.

Send b0 and then b1, and then receive them in the same order on the receiving picaxe.

Paul
 

SAborn

Senior Member
You could simply send it as a ascii value (#w0) and receive it as an ascii value (#w1) it how i have sent data with dumb wireless modules without problems.
 
Top