EZ Controller User Manual_ENG_21E21_V2

EZ Controller User Manual_EN_V.2.0
13
-
[Program Description]
Example of setting two points with the value of a
variable resistor and moving them to the corresponding
point when the buttons of A and B are pressed.
Mapping for PWM value
Short : 900 Long : 2100
Read the variable resistor values of Position A and
Position B and assign values to “A_stroke_val” and
“B_stroke_val” variables respectively.
The map () function maps the variable resistor's resistor
value to the actuator's position range.
*
In case not using a variable resistor,,
A_stroke_val = 100;
B_stroke_val =
3600;
It has a scale of 4096 and enters a value between 0 and
4096.
Tester.MightyZAP.goalPosition() : TTL,485 control
Tester.servof_CH1.writeMicroseconds() : PWM control