0

I'm interested in making a home automation system with my raspberry pi 2 as the master device running the openhab server and an arduino as the slave device that switches the relays and reads the sensors.

I have a 433mhz RF transmitter with a modulator and demodulator with me. How do I make the two boards communicate with each other?

goldilocks
  • 60,325
  • 17
  • 117
  • 234

1 Answers1

1

This isn't really my field (communication between Pi and Arduino) but I have done a little so I'll give an answer anyway.

RF comms are not noted for their high reliability so messages are usually wrapped in a protocol including a checksum to guarantee integrity.

One of the popular messaging protocols used on Arduinos is Virtual Wire.

I have implemented Virtual Wire for the Raspberry Pi in the form of a Python module. See http://abyz.me.uk/rpi/pigpio/examples.html#Python_vw

The module supports sending and receiving. As goldilocks pointed out with a single transmitter/receiver pair you will have to decide whether the Pi or the Arduino is the sender. That rather begs the question of how you will get any response.

joan
  • 71,852
  • 5
  • 76
  • 108