LSS - RC PWM

Version 26.1 by Coleman Benson on 2019/02/19 12:28

Table of Contents

RC PWM

RC hobby servo motors have three pins; the black wire is ground (GND), the middle (red) wire is VCC (normally 4.8V to 6V) and the last wire (commonly yellow or white) is the signal wire. The signal wire is meant to receive 5V PWM pulses which are repeated every 20-30 milliseconds. The onboard electronics receive and time these pulses and associate them to angular positions. If no RC pulse is received, the servo goes limp. Note that by default many handheld RC transmitters only send between 600 to 2400 (slightly limited range).

RC PWM - Wiki.png

LSS RC Mode

All three Lynxmotion Smart Servo motors can be used with normal hobby remote control (RC) electronics including handheld remote controls and RC servo controllers. Unlike normal RC servo motors however, the Lynxmotion servo's configurations can be changed via programming. There are two methods to change from serial to RC mode: via the LSS - Button Menu or sending a CRC command (explained on the communication protocol page). Note: Each mode can have the rotation reversed, but clockwise is standard (equivalent to CW1 or CW-1 commands). 

RC 180° mode

This means a range of -90.0 degrees to +90.0 degrees (equivalent to sending a "configure angular range of 1800" or "CAR1800<cr>" command).

LSS PWM - Wiki.pngPWM - 180 CCW - Wiki.png

RC 360° mode

This gives a rotation angle of -180.0 to + 180.0 degrees or a full 360 degrees of rotation (equivalent to sending CAR 3600).
PWM - 360 - Wiki.pngPWM - 360 CCW - Wiki.png

RC Speed mode

Wheel mode is where a centered pulse of 1500 represents stop, and increasing the pulse towards 2500 increases the speed (for example CW), whereas decreasing the speed towards 500 increases the speed in the opposite direction (ex. CCW).
PWM - Wheel - Wiki.pngPWM - Wheel CCW - Wiki.png

Wiring - RC Mode

When in RC mode, only one connector should be attached, and either connector on the servo can be used. The servo cannot be daisy-chained. The RC adapter cable includes the fourth pin connected as the cable can also be used to with non-RC electronics like FPGA boards and microcontrollers. In RC mode, the servo does not transmit any data on its TX pin (green wire).

LSS - RC Cable Side.png

 

Programmable Functionality

The functionality listed below applies to RC mode and can only via serial configuration commands. This means the servo must be connected to a computer (or other device like a microcontroller able to communicate serially) and the servo set to serial mode via the button menu. A detailed explanation of each command can be found on the LSS - Communication Protocol page; under the Command List, any configurations which has a checkmark associated with RC is included in RC mode. These configurations are saved within the servo and are retained even if the servo loses power. 

Config. Origin Offset (CO): This command allows you to change the origin of the servo in relation to the factory zero position. The servo is shipped with the zero being centered on the side of the servo with the LED bar (image below) 

Config. Angular Range (CAR): This is the total travel of the servo which is used in RC mode. The units are in tenths of degrees. The minimum value is 1 (0.1 degrees, which is essentially useless) up to 3600 (360.0 degrees). Note that 3600 represents the total travel, which can be interpreted as 360.0 degrees or ± 180.0 degrees where the center is in relation to the origin offset above.

Config. Max Speed (CSR, SDR): This sets the maximum speed in wheel mode (specified in either tenths of degrees per second or in rpm) corresponding to a pulse of either 500 microseconds or 2500 microseconds, with 1500 microseconds as "stopped". Note that the set speed cannot be above that of the servo's maximum.

Configure First position (CFP, CFD): This feature allows you to specify a startup position in either tenths of degrees (in relation to the factory origin) or as a pulse. By default the servo will not move at power-up until a signal is sent.

Config. LED Color (CLED): You can set the default color of the RGB LED when in use. This is purely aesthetic.

Config. Direction of rotation (CG): In certain applications, it is preferably to reverse the direction of the servo in relation to the pulse. See images below.

Examples:

With the "Angular Range" set 240.0° (±120.0°; CAR2400) of movement with the same 500µs to 2500µs signal.

PWM - 120 - Wiki.png

With the "Angular Range" set to 240.0° (±120°; CAR2400) and "Origin Offset" you can shift the center position and still get your 240.0° range.

PWM - 120 25offset - Wiki.png

It is also possible to setup pass the 360.0° mark like here for a 720° (±360°; CAR7200) total rotation.

PWM - 720 - Wiki.png

Created by RB1 on 2019/01/15 15:05

Recently Visited

Copyright RobotShop 2018