A Unity based application for discovering, connecting to, and controlling Raspberry Pi devices over a local network. This project allows users to detect available Raspberry Pi's, connect via TCP, and toggle an SenseHat matrix on/off, read sensor data from Rapsberry Pi's Sensehat module and relay that data to show it up on other Raspberry Pi's SenseHat matrix.
- Auto Discovery: Broadcasts a UDP message to find Raspberry Pis running a compatible listener.
- Connection Management: Establishes and maintains TCP connections with selected Raspberry Pi devices.
- LED Control: Sends commands to turn an LED on or off remotely. Can also be expanded to other commands, LED on/off is just an example.
- UI: Displays discovered devices and updates their connection status in real time.
- Sensors Gets humidity, temperature and pressure from the Pi's to the apps UI, this uses Sense Hat.
- Relay function Can send sensor data from Pi to other Pi and display it on the Sense Hat matrix
- The application sends a UDP broadcast (
DISCOVER_RASPBERRY_PI
) to detect Raspberry Pis. - Pis responding with
RASPBERRY_PI_RESPONSE
are added to the UI list. - Users can select a Raspberry Pi, establish a TCP connection, and toggle an LED on/off.
- The app monitors connection status and updates the UI accordingly.
Unity
- Unity 2021.3+ (or newer)
- I personally used Raspberry Pi 4.
Download the controller.py for the raspberry it's located in the root of the repo.