Skip to content

Periscope

Jose Jimenez edited this page Jan 30, 2021 · 78 revisions

This is the future of micromouse development.

The periscope feature allows the user to see exactly what is going on inside your micromouse. Enjoy.


Problem

The current issue with the development of the micromouse is in debugging the maze-solving algorithm in the 
hardware. Aside from being time-consuming, it is confusing to diagnose an issue from a conglomerate stream 
of repetitive output or LED status lights. 

Solution

Streamline a protocol between the simulator and the micromouse to effectively animate the stream of data 
in a virtual environment. Along with animating the data, the user can enter a command in a text box to 
send to the micromouse and then view the response in a terminal-style serial monitor.

Architecture

A periscope packet is sent from the micromouse to the simulator via a serial port connection i.e. Bluetooth 
serial port cu.HC-06-DevB. Then, once the simulator parses the periscope packet the virtual mouse renders 
an updated environment. Concurrently, a serial monitor is printing, in plain text, the data being recieved
from the micromouse.

Periscope Protocol:

Protocol (text-based):
send("Periscope: (16x16)(15,0)(north)(up)\n");
Periscope Protocol (byte-based): (inactive)
Serial Monitor Architecture
This is how your micromouse data gets outputted to a terminal style serial monitor.

Clone this wiki locally