trouble with 443mhz transceiver module.
shoober
Posts: 2
I have just purchased two parallax 443mhz transceiver modules but I am not sure how to use them. does anyone have some simple code that I could use to send values stored in variables between the two transceivers? If not does anyone know of a simple tutorial explaining how the transceivers work?
PLEASE HELP!
PLEASE HELP!
Comments
I also want to use the 433mhz RF Transceiver, but am a noobie. I am using propeller chip micro controller. I want to send an analog signal from one prop chip and receive it by another prop chip.
I also looked at the basic stamp programming, but am not familiar with this syntax. Looking for some help how to send serial data using these transceivers.
EDIT: Here is my code. I should be storing the value "13" in the variable "x", correct?
obj
SERIAL: "Extended_FDSerial"
con
'Define Pins
Trans_Datapin = 0 'RF1 data pin
Trans_RXTXpin = 1 'RF1 Receive/Transmit pin
Trans_PDNpin = 2 'RF1 Power Down pin
Rec_Datapin = 24 'RF2 data pin
Rec_RXTXpin = 25 'RF2 Receive/Transmit pin
REc_PDNpin = 26 'RF2 Power Down pin
var
byte x
pub MAIN
'Set Pin Directions
dira[Trans_Datapin] := 1 'Set Data Pin as OUTPUT
dira[Trans_RXTXpin] := 1 'Set Rx-Tx Pin as OUTPUT
dira[Trans_PDNpin] := 1 'Set PDN Pin as OUTPUT
dira[Rec_Datapin] := 0 'Set Data Pin as INPUT
dira[Rec_RXTXpin] := 1 'Set Rx-Tx Pin as OUTPUT
dira[Rec_PDNpin] := 1 'Set PDN Pin as OUTPUT
'Initialize RF Transceiver Pins
outa[Trans_PDNpin] := 1 'Set pin HIGH for enable
outa[Trans_RXTXpin] := 1 'Set pin HIGH to Transmit
outa[Rec_PDNpin] := 1 'Set pin HIGH for enable
outa[Rec_RXTXpin] := 0 'Set pin LOW to Receive
'Initialize Serial Communication
Serial.Start(Rec_Datapin, Trans_Datapin, 0, 9600)
repeat
'Transmit data
Serial.tx(13)
'Receive data and store in variable "x"
x := serial.rx
http://www.parallax.com/Portals/0/Downloads/docs/prod/rf/27982-433MHzRFTransceiver-v1.1.pdf
The BS2 examples in this document is very simple and should work, if not, then somebody would have found out by now.
What do you find to be difficult, is it the bs2-code or the hardware setup you find confusing?
I'm a bit confused too about this. The only thing I could think of is that it's a leftover from a larger program that receives and transmits and, in that program, it's important what state the data line is left in. I'd ignore it in your case. Note that the BS1 example doesn't do this.