πPWM Setup-JavaScript
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:
How to generate PWM commands for the ROVER.
Understand how the different PWM settings affect motor drive and direction.
Visualize PWM concepts with an appreciation for generated outputs.
To access the program, simply follow this link https://mantiscode.azurewebsites.net/webble/joystick/roverse/pwm.html
Connect ROV 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 by setting PWM values with the slider. Adjust the slider to the desired value, select the motor from the dropdown menu, and click Command Motor to send the instruction. Observe how the motor responds to each command. To immediately stop all motion, click the Stop All Motors button.

This exercise can be demonstrated effectively using only one motor. Just make sure to note that Motor (1) is far right closest to the push button in the lower right hand corner of the PCB.

Last updated