Posted: Sat Dec 25, 2021 8:03 pm Post subject: simple 433Mhz Tx and Rx examples
I found these cheap FS1000A (or FS100A) 433MhzRF transmitter/Receiver modules.
The pgm uses manchester-code to transmit/receive
The range depends on the antenna you use and the TX-power supply.
A short wire of about 17cm and a simple 5V power gave me stable data at a range of over 40 meter.
Hope these light examples can be used as starting project for other users.
It took me a few days before I had a good working project
Construction is simple. Rx and Tx modules only have 3 wires. (+5, Data, Gnd)
You can use any pin to connect with the Transmitter, any pin (except Hardware uart pins) to connect the receiver.
maybe, a clever guy can explain me why I needed to use the INVERTED option in the receiver-module to read the data from the receiver
(Open "comc.0:600,8,n,1,INVERTED" For Input As #2 )
My example transferts 6 bytes each 5 seconds+Checksum, easy to send more (or less) bytes.
thank you for sharing your project. yes these are nice and cheap transmitters/receivers.
I see you use manchester encoding/decoding which makes sense.
There are built in functions since version 2082:
W = Manchesterenc(j) ' encode into manchester code whith results into a WORD
B = Manchesterdec(w) ' decode it back
the transmitter/receiver you use have no uart, they just send/receive a signal. and it happen to be inverted. that is why you need the inverted option. _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum