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
  • Rover PWM Motor Drive Tutorial
  • Overview
  • Connect MTH Board
  • Issue Motor Commands

Was this helpful?

  1. PWM Control

PWM Setup-JavaScript

PreviousPWM Controls-ScratchNextMan-In-The-Loop Obstacle Avoidance Tutorial-JavaScript

Last updated 2 months ago

Was this helpful?

The user must 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.

Rover PWM Motor Drive Tutorial

Learn how to command the motors using the Motor Hat provided in your Rover kit.

This guide requires no prior programming experience and users should focus more on the concepts being introduced versus getting lost in the minutia of the scripting language.

Overview

In this guide you will learn how to manipulate and control the Rover based on the following basic concepts:

  1. How to generate PWM commands for the ROVER.

  2. Understand how the different PWM settings affect motor drive and direction.

  3. Visualize PWM concepts with an appreciation for generated outputs.

To access the program, simply follow this link

Connect MTH Board

Click on the Bluetooth icon and make sure your device is broadcasting. Once broadcasting, click on the pair button to connect to the board.

Once you have a successful connection, the interface will report that a connection was successful.

Issue Motor Commands

After connecting, use the interface to control the Motors via PWM values set by the slider. Notice how the motors move as your issue the commands. Press the Stop Motor command to cease all motion.

🚗
https://mantiscode.azurewebsites.net/webble/motors.html