GPS Visualization Setup
In order to make use of the GPS visualization system, the Meshtastic devices, GPS modules, and HC-12 devices must already be configured.
Hardware Connections
Beacon
Connect Meshtastic device “d700” to the USB power source.
Connect the ZED-F9P to the USB power source.
Robot
Connect Meshtastic device “3480” to an open USB port on the Jetson Orin Nano.
Connect the NEO-M8P module to another open USB port on the Jetson Orin Nano.
Connections from the HC-12 to the ZED-F9P:
VCC ⟶ 5V
GND ⟶ GND
TXD ⟶ RX2
RXD ⟶ TX2
Tablet
Connect Meshtastic device “e074” to the tablet’s USB-C port with the help of a USB-A to USB-C adapter.
Software Setup
1. Turn on the beacon’s USB power source
2. Turn on the robot. The jetsonBoth.py script will automatically run and begin sending GPS coordinates to the tablet.
3. Login to the tablet and launch a new Powershell window. Navigate to the Roboflock directory using the cd command.
Note
This direction should contain two folders, static and template, as well as two files, jetsonBoth.py and tomBoth.py.
4. In the Roboflock directory, run the following:
python tomBoth.py
5. As messages are printed to the Powershell window, watch for “GPS RECEIVED” and the coordinates that follow. Wait until the robot and beacon’s coordinates are non-zero.
6. Open a new web browser window and enter the URL http://localhost:5000/
If successful, you should be able to see the location of both the robot (red) and the beacon (blue) on the map. As they move, their paths will be traced out in their corresponding colors.
The page should also show buttons labeled “STOP ROBOT” and “COME TO BASE” that will each send a message to the other devices in the Meshtastic network. If a Meshtastic device receives either of these messages, it will be displayed on the device’s screen.
Otherwise, start over by checking all hardware connections and then repeating the software setup.