• First Steps
  • General
  • Projects
Facebook Twitter YouTube
Tutorials for Raspberry Pi Tutorials for Raspberry Pi
  • Hardware & GPIO
  • Sensors & Components
  • Scale
  • Cases
  • Fingerprint
  • Gas Sensor
  • Heartbeat
  • German
  • French
Tutorials for Raspberry Pi Tutorials for Raspberry Pi
Home»Hardware & GPIO»Let Raspberry Pi’s communicate with each other per 433MHz wireless signals

Let Raspberry Pi’s communicate with each other per 433MHz wireless signals

Facebook Twitter LinkedIn Tumblr Email Reddit
Raspberry Pi 433 MHz
Share
Facebook Twitter LinkedIn Email Tumblr Reddit Telegram WhatsApp

Maybe some of you thought about how to let some RaspberryPi’s communicate with each other wirelessly. For this purpose small 433MHz modules are ideal, which are already available for a few bucks.

Therefore in this tutorial I want to show how two (or more) RaspberryPi’s can “talk” with each other. But do not worry, if you have only one Raspberry Pi, you can do it also.

 

Hardware

  • 2 Raspberry Pi’s (at a pinch only one will do)
  • 433 MHz Transmitter-Receiver Set (US / UK), if both Pi’s should send and receive you need 2 sets
  • Female – Female jumper wires (US / UK)
  • Breadboard (US / UK)

 

Assembling

The set consists of a transmitter (square, 3 pins) and a receiver (4 pins). Both are very small and therefore also ideal for other purposes. The receiver module has two data pins in the middle, from which we only need one.

443mhz 433mhz
 

RaspberryPi Transmitter Receiver
 Pin 2 (5V)  VCC  VCC
 Pin 6 (GND)  GND  GND
 Pin 11 (GPIO17) – RPi Nr.1  ATAD  —-
 Pin 13 (GPIO27) – RPi Nr.2  —-  DATA (to the left of GND)

 

If you have only one Raspberry or you want that two Pi’s can send and receive, connect transmitter and receiver to the same Pi.

 

Preparation

Before we can test the actual software, we need a few libraries. Theses must be installed on all Pi’s that are communicating.
First of all wiringPi is required. If yave you already installed this previously, you can jump to the next installation (if the command gpio -v returns a result, it is installed).

First, we update the packages. This may take several minutes.

sudo apt-get install git-core
sudo apt-get update
sudo apt-get upgrade

Then we clone wiringPi (git must be installed) and install it.

git clone git://git.drogon.net/wiringPi && cd wiringPi &&./build

Now gpio readall should show the pin allocation.
We need a library that simply allows us to send our data via the transmitter and receive it through the receiver module.

git clone https://github.com/ninjablocks/433Utils.git

This library contains corresponding scripts for both Arduino and Raspberry Pi. Now we go to the folder containing the scripts for the Raspberry Pi and compile them.

cd 433Utils/RPi_utils
make all

 

Testing

Now it‘s time to test. To do this, we activate the receiver first. Make sure that you are in the folder 433Utils/RPi_utils.
sudo ./RFSniffer

As soon as a code is received, it will appear here.

Next, we want to send. For this we go to the other Raspberry and run the following command (if you have only one Pi, just open a second shell window, eg by using putty).

sudo ./codesend 1234

The sent number you can enter by yourself. E.g. by using ASCII numbers, a text can be send.

Have fun trying!

433 mhz 433 rf clone Featured
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleRaspberry Pi und I2C Luftdrucksensor BMP180
Next Article OpenCV auf dem Raspberry Pi installieren

Related Posts

How to build a ESP8266 Scale (with Weight Sensor HX711)

How-To: Bluetooth Connection between ESP32’s and Raspberry Pi’s

How to create a Solar Powered Raspberry Pi Bitcoin Miner

How to build a Smart Agriculture System using IoT

17 Comments

  1. Alper on 7. August 2017 17:22

    Hi,

    Don’t forget to put --recursive when cloning 433Utils

    Use as below:

    ~/  git clone --recursive https://github.com/ninjablocks/433Utils.git

    I hope this helps

    Reply
    • kate on 11. January 2019 8:26

      hello!
      I would like to know which raspberry pi version you used . I’m stuck at not receiving and signal using ./RFSniffer.

      Reply
  2. Greensouth on 8. September 2017 9:32

    Isn’t supposed that you would fry your Pi if connecting the receiver (5v) to your GPIO pin (3.3v) without a divider?

    Reply
    • Felix on 9. September 2017 9:50

      The module has resitors on board. You can measure the output voltage 🙂

      Reply
  3. Konstantinos on 11. September 2017 22:30

    it does not work
    can i add a log to trace my error?

    Reply
    • dani on 2. October 2017 15:17

      If you are having issues take a look at my post on the subject which has links to a toolkit which should help https://danicymru.wordpress.com/2016/12/15/433mhz-rf-nexa-sockets-and-the-blyss-wireless-doorbell/

      Reply
  4. Kraft on 16. February 2018 12:44

    Looking to do this as a project for high school kids. They are new to the Raspberry Pi. Can you provide more details? How do the female jump wires and breadboard fit in? Are there instructions for connecting them?

    Reply
    • Felix on 16. February 2018 16:57

      Connecting them is really straight-forward, there is not much that can be done wrong.

      Reply
  5. James Morris on 18. March 2018 19:33

    when I try to compile the code I just get an error that reads:
    “*** no rule to make target ‘…/rc-switch/RCSwitch.o’, needed by ‘send’. stop.
    what am I doing wrong?
    Thanks in advance, James

    Reply
    • Rick on 22. March 2018 20:55

      Hey James,
      Can you be more specific on what part you are stuck on? If its compiling 433Utils you made sure its inside wiringPi directory right?

      Reply
    • Chris on 7. October 2018 21:54

      To solve this, use Alper’s git command instead to ensure that rc_switch is pulled down with the clone

      Per Alper:

      ~/ git clone –recursive https://github.com/ninjablocks/433Utils.git

      Reply
  6. dusty on 30. July 2018 20:46

    What kind of distance can one achieve between units?

    Reply
  7. Jörg Michael Günther on 19. January 2019 20:53

    I can´t compile One who knows why.
    make: *** Ingen regel för att skapa målet ”../rc-switch/RCSwitch.o”, som behövs av ”send”. Stannar.
    WBR
    Jörg

    Reply
  8. طالبی on 16. June 2019 9:46

    Hi
    How do I get in touch between raspberry pi and Arduino using the lora Module?

    Reply
  9. Cabi~ on 6. November 2020 0:08

    Is something like this possible between two RasPi-Zero-W over WiFi or Bluetooth, effectively being able to dispense with a USB cable between a computer & USB gadget?

    Reply
  10. Wilmer on 28. November 2021 19:03

    Can someone kindly point me to an arduino sketch for receiving? I’m having a lot of difficulty getting an arduino to pick up on the signals sent by the raspberry pi.

    Reply

Leave A Reply Cancel Reply

How to connect and control a Raspberry Pi WS2801 RGB LED Strip

Let Raspberry Pi’s communicate with each other per 433MHz wireless signals

How to Build Your Own Raspberry Pi Android TV Box

Build a digital Raspberry Pi Scale (with Weight Sensor HX711)

Expand Raspberry Pi GPIOs with I2C Port Expander

Connect and control Raspberry Pi motion detector PIR

Subscribe to Blog
Subscribe to Raspberry Pi Tutorials and don't miss any new Tutorial!
Subscribe

Thank you!

We will contact you soon.

Tutorials for Raspberry Pi
Facebook Twitter YouTube
  • Contact & Disclaimer

Type above and press Enter to search. Press Esc to cancel.