Need Wireless programming help
daddyjk44
Posts: 5
I am trying to make a wireless rocket launching system using basic stamp and 2 wireless 433mhz transceivers. The problem I am running into is that I cannot find any reference material to do a simple task like sending a signal to the remote unit to make a pin go high to trip the relay for launch. any programming help would be appreciated.
Comments
Welcome to the forums!
All the code you need to get started with is on the product page:
http://www.parallax.com/product/27982
Click on the downloads section and read all the documents and code.
http://www.parallax.com/search?search_api_views_fulltext=+433mhz+transceivers
Please post back if you have specific questions.
' Tcvr_TxCode_v1.1.bs2
'{$STAMP BS2}
'{$PBASIC 2.5}
HIGH 1 ' T/R Line
DO
PULSOUT 0, 1200 'Sync pulse for the receiver
SEROUT 0, 16468,
HIGH5 ' tells P5 to go high
PAUSE 10000 ' hold high for 10 sec
LOW5 ' tells P5 to go low
END
ignition = 5
PULSOUT TX, 1200
SEROUT TX, Baud, [ "U!"] 'Syncbytes
SEROUT TX, Baud, [ignition] 'Send the trigger Byte
And on the receiver side:
SERIN RX, Baud, [ WAIT("U!")] 'Wait until U! is received,then read the command byte (ignition)
SERIN RX, Baud, [ignition]
IF ignition = 5 THEN
HIGH 5
PAUSE 10000
LOW 5
ENDIF
-Phil
Of course, an ignition sequence should not be trigged by a simple "5" to be received. My code was just meant to show the very basics in a TX-RX system, a simple respond to his last post. Now its up to daddyjk44 and his team to work out a good error handling code and other safety handling routines. I guess the forum members are ready to help!