Uncategorized

gpio button … network notes

Asked 
Viewed 13 times
1

I have Two or more RPIs where one is places in a different building with a few buttons. The other has to get the value from the first and play a sound if one of the buttons is pushed on the first.

How do I get value that a button is pushed from the first RPI on the Second RPI? I’m new here.

Currently using Python. They are connected to my local Network and plaining to have more RPIs connected in different buildings.

 New contributor
  • Welcome to Raspberry Pi! Please take the tour and visit the helpcenter to see how things work here. Related (but imo not a dupe as other solutions might apply): raspberrypi.stackexchange.com/q/29784/19949 – Ghanima 6 hours ago
  • 1
    You should look at publishing the button status from the first RPi on an MQTT topic that the second RPi can subscribe to. One RPi will need to run a broker like Mosquitto, RabbitMQ or HiveMQ. hivemq.com/blog/how-to-get-started-with-mqtt – Dougie 5 hours ago
  • @David Jr Wollmann, Ah, let me see. Your following comment is a bit too vague: “multiple Rpis on multple buildings LAN”. Is you LAN Wifi or Cat5? If Wifi, are they 500m+ apart? Your question starts with buttons. Will the buttons become text messages, and streaming audios and video? If you start with python, then you can consider python modules http, ftp, tcp, utp, mqtt, … If you are new to GPIO, I would suggest to start newbie exercises on UART to warm up, such as this: (1) Open two serial ports, Port 1, using on Rpi board serial TxD, RxD pins. Port 2 using USB to serial, / to continue, – tlfong01 10 mins ago    
  • @David Jr Wollmann, I start with the stupid, point to point, non many to many wired, short distance (100m) network. But once you have gained some newbie knowledge nad skills, you can “easily” upgrade your stupid wire serial network to a humble Bluetooth wireless point to point, but at least one to many network (ok still 10m PAN). But you only need one cheapy (US$1 or 2) “Bluetooth serial module” to enable your Rpi to talk to an Android smart phone (with Bluetooh serial app) to transfer text messages at low speed. Of course you can always upgrade, and 5G is coming to (my) town 2020Q2, … – tlfong01 just now   Edit

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: