A Cheap WiFi Router
The simplest way seems to get hold of a cheap WiFi router. It can be old. You don't need high speed or the latest protocol. Any WiFi router that supports 802.11n should work.
The router should not be connected to the Internet. You can set it up by temporarily connecting the router to the laptop or the Pi 4 using an Ethernet cable. You may want to change the SSID to something like "ClassBotNetwork" and assign a password.
Once setup you should be able to connect all the Pies to that WiFi network as usual.
You will need to setup all the Pi 0s as ssh servers
. At this point you should be able to ssh
from your Pi 4 to all the Pi 0s.
There are ssh
tools that allow connecting to multiple servers, P 0s in your case, and send the same commands to them all. For example, pssh or clusterssh.
Hope this helps