πŸš—PWM Setup-JavaScript

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 https://mantiscode.azurewebsites.net/webble/motors.html

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.

Last updated

Was this helpful?