Skip to content

Latest commit

 

History

History

mg513-30

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Motor Encoder Driver

The MG513-30 DC motor encdoer with QEI interface.

Device Model

Install

> rap device add --model mg513-30 --id <device-id>

Demo

Supposed <device-id> is encoder in the following demos.

$('#encoder').getRpm(function (error, rpm) {
});

API References

Properties

ppr

A number indicates the pulse number generated per round of the DC motor. This value is read only.

Methods

getRpm(callback)

Get rotate speed of DC motor. The unit is rpm (round per minute).

The parameters of callback are (error, value), in which value is rpm.