Mantis Rover
  • 🔡Mantis Rover Documentation
  • Supported Devices
  • Assembly Guide
    • 📺Video Tutorials
    • 📰Printed Instructions
      • Wheel Assembly using Improved Coupler
    • 📺3D CAD Model
    • 📺3D Model File Download
    • 📺Packing Guide
    • 🚫General Care/Precautions
    • 🚫Charging your Rover
  • 3D Printing
    • 🐺Designing your Part (TinkerCAD)
    • 🐺MODi Adapter 3D Print
    • ⌚Printing your Part
  • PWM Control
    • 🤖PWM Controls-Scratch
    • 🚗PWM Setup-JavaScript
    • 🚗Man-In-The-Loop Obstacle Avoidance Tutorial-JavaScript
    • 🚕PWM Motor Drive-Python
  • MODI Sensor
    • Product Specification Sheet
    • Quick Start Guide
    • MODi Cart Experiment (Bonus)
    • 🤖MODi Data-Scratch
    • 🤖MODi CSV-Scratch
    • 🚗MODi LIDAR Obstacle Avoidance-JavaScript
    • 🍊MODi LIDAR Obstacle Avoidance-Scratch
  • Motor Hat Module
    • Product Specification Sheet
    • Quick Start Guide
  • 🆘Support
Powered by GitBook
On this page
  • Mantis Code
  • Example: Connect and Sense
  • Connect Sensor
  • Access Modi Sensor Values

Was this helpful?

  1. MODI Sensor

MODi Data-Scratch

PreviousMODi Cart Experiment (Bonus)NextMODi CSV-Scratch

Last updated 2 months ago

Was this helpful?

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.

To access MantisCode, visit .

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!

Click this link to load a sample project,

🤖
https://mantiscode.azurewebsites.net/app/scratch3/index.html?project=ModiStarterProject.sb3
https://mantiscode.azurewebsites.net/app/