Sending and receiving 433MHz signals with cheap GPIO RF modules on a Raspberry Pi
Project description
Introduction
Python module for sending and receiving 433MHz LPD/SRD signals with generic low-cost GPIO RF modules on a Raspberry Pi.
Protocol and base logic ported ported from rc-switch.
Supported hardware
All generic 433MHz capable modules (cost: ~2€) connected via GPIO to a Raspberry Pi.
Compatibility
Generic RF outlets and most 433MHz switches (cost: ~15€/3pcs).
Full list compatible devices and chips see the rc-switch Wiki
Dependencies
RPi.GPIO
Installation
On your Raspberry Pi, install the rpi_rf module via pip.
Python 3:
# apt-get install python3-pip # pip3 install rpi-rf
Wiring diagram (example)
Raspberry Pi 1/2(B+):
RPI GPIO HEADER ____________ | ____|__ | | | | | 01| . x |02 | | . x__|________ RX | | . x__|______ | ________ | | . . | | | | | TX | ____|__x . | | |__|VCC | _______ | | __|__x . | | | | | | | | | | x____|______|____|DATA | | GND|____|__| | | . . | | | | | | | | | . . | | |DATA | | VCC|____| | | . . | | | | | | | | . . | |____|GND | | DATA|_________| | . . | |________| |_______| | . . | | . . | | . . | | . . | | . . | | . . | | . . | 39| . . |40 |_______| TX: GND > PIN 09 (GND) VCC > PIN 02 (5V) DATA > PIN 11 (GPIO17) RX: VCC > PIN 04 (5V) DATA > PIN 13 (GPIO27) GND > PIN 06 (GND)
Usage
See examples (send.py, receive.py).
Open Source
The code is licensed under the BSD Licence
The project source code is hosted on GitHub
Please use GitHub issues to submit bugs and report issues
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.