Get started by configuring each device in the STEM Lab. You can build your own lab by following these instructions or you can schedule time in the STEM Lab.
Install nmap.
After your devices are configured, follow these steps to conduct experiments:
-
Power on all your devices
-
If you don't have a static IP address for Public Data Cloud, get the current IP address
ip addr
In this example, the ip address is: 192.168.1.8
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:86:dd:45 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.8/24 brd 192.168.1.255 scope global dynamic noprefixroute enp0s3
valid_lft 601665sec preferred_lft 601665sec
inet6 fe80::ae56:b667:f535:22cd/64 scope link noprefixroute
valid_lft forever preferred_lft forever
- In order to control the devices via SSH, you can find their current ip addresses using Nmap and their MAC address. Here's a sample script:
python3 nmap2mac.py
- Connect remotely to AstroPiQuake. Run the emoji listener so devices can send emojis to the LED panel
python3 emoji.py
- Connect remotely to BumbleBee Rover. Run the listener so the rover can respond to messages such as an earthquake alert
python3 listener.py
-
Go to the Public Data Cloud website, click on Roadtrip, and choose your route
-
Open another session with Bumblebee Rover. Drive the experiment
python3 socketSports.py -ip 192.168.1.x
- To simulate an earthquake, go to Public Data Cloud, open a new terminal, and run ./quake.sh