๐คMODi Data-Scratch
Mantis Code
MantisCode is a browser-based software, thatโs based on the Scratch programming language. With MantisCode, you can connect to MantisEDU sensors for data collection and other experiments.
Using MantisCode does not require any software to be installed. The user must simply have access to an internet connected device that runs a modern web browser that supports WebBluetooth. Most modern web browsers support this, with the exception of Safari on MacOS, and Firefox. Google Chrome or Edge are recommended for best results. Mobile browsers are not typically not supported.

From the home page, click on Mantis Sensors to access the sensor of interest.

To get access to the sample lessons and examples for the MODI Sensor, follow the Mantis MODI links

Example: Connect and Sense
Once you find an example you want to explore, click on the load project button to open the program. Below is the default programโs interface.

Once the program is loaded, click on the green flag to start.
Connect Sensor
The Mantis MODI sensor allows you to build and program using Scratch, a block-based programming language that is easy to learn and use. With the MODI, you can explore the world of robotics and learn how to code, while having fun building and controlling your robot.
One of the unique features of the MODI is its Bluetooth connectivity. With Bluetooth, you can wirelessly connect to the sensor and retreive it's values in real time.
To connect with the Modi, you will need to use the connection sprite that is included in the project.

Once you press the green flag, the screen will change to say Scanning of Device.

Once you press the connection button on the Modi, the Device will start to broadcast to allow for the program to connect. Upon a successful connection, you program will update to say โConnected.โ

Access Modi Sensor Values
The MODI sensor plays a crucial role in the Mantis Rover, measuring distance, gyro, and acceleration values with each reporting cycle. This functionality is integral as it enables the robot to detect obstacles and navigate around them effectively.
When you first connect this sensor, the program automatically saves the values to variables in scratch.
After connecting, the values are saved below.

They are also printed to the main spriteโs window

In this example, the MODI connects, and continuously write the values to the screen. Connect your MODI and give it a try!
Last updated
Was this helpful?