Skip to content

eetutyni/Unity-RaspberryPi-Controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi Controller - Unity

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.

Features

  • 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

How It Works

  1. The application sends a UDP broadcast (DISCOVER_RASPBERRY_PI) to detect Raspberry Pis.
  2. Pis responding with RASPBERRY_PI_RESPONSE are added to the UI list.
  3. Users can select a Raspberry Pi, establish a TCP connection, and toggle an LED on/off.
  4. The app monitors connection status and updates the UI accordingly.

Setup & Requirements

Unity

  • Unity 2021.3+ (or newer)

Pi

  • I personally used Raspberry Pi 4.

Raspberry Pi

Download the controller.py for the raspberry it's located in the root of the repo.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published