Build and program two Raspberry Pi 5s and send messages between them.
- make a 3d modell of RPi5
- desgin box and build with laser cutter
- code transfer data program
- connect both RPi5 in same network
- send messages
- 2x RPi 5 (only tested on RPi5, but should work on other ones too)
if you want to use it on windows, you will have to use py and run the python files by ur self
- wlan connection
- input devices for both RPi's + power supply cable + wlan adapter (if needed)
-
install Raspberry Pi OS using Raspberry PI Imager and just follow the instructions on the screen
-
run
sudo apt update &&
sudo apt upgrade &&
sudo apt install python &&
sudo apt install git
- run
git clone https://github.com/iveltier/jugend-hackt-S.E.M
- go to the new dir
cd jugend-hackt-S.E.M.
- if you want to have both in there own wlan run
./createHotspot.sh <hotspot name> <hotspot password>
else you can just continue
- choose one RPi5 to be the server
- run on the server side
./createServer.sh
the server should now be running and waiting for client
Server-IP: 192.168.1.1
Waiting for client...
- run on the other RPi5
./createClient.sh
- now you will have to pass the server side ip adress
Input server-IP:
if done correct, you should now be able to send messages alternately
- server side:
Server-IP: 192.168.1.205
Waiting for client...
Client 192.168.1.205 connected!
📥 Client: hello world
📤 Answer: bye world
- client side:
Input Server-IP: 192.168.1.205
✅ Connected to Server!
📤 Message ('exit' to exit): hello world
📥 Server-Answer: bye world
📤 Message ('exit' to exit): exit
- Theodor, Phillip, Tillmann, Levi, Lukas, Johnathan, Constantin
- Anna, Timo, Kostia