Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

simple 433Mhz Tx and Rx examples

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
hoogscherm

Bascom Member



Joined: 17 Jul 2008
Posts: 6

belgium.gif
PostPosted: Sat Dec 25, 2021 8:03 pm    Post subject: simple 433Mhz Tx and Rx examples Reply with quote

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 Confused
(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.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Mon Jan 03, 2022 9:24 pm    Post subject: Reply with quote

thank you for sharing your project. yes these are nice and cheap transmitters/receivers. Very Happy

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
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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