Ex. - Toggle Position - iRobot IR-CT01 User Manual

Ez controller
Table of Contents

Advertisement

3.3. Example - TogglePosition
This is an example of inverting 2 Positions designated by 1 toggling button.
Select [Example] - [IRROBOT_EZController] - [EZ]– [EasyControl_TogglePosition]
[Description]
-
Mode switch (#8) can be positioned anywhere. (Mode switch only works in the built-in basic program)
-
Supply power to the input power terminal (#7). Make sure correct input voltage(7.4V or 12V) and correct
polarity.(GND and VCC)
-
Carefully insert the connector suitable for the selected communication. (#14 PWM / #15 TTL / #16 RS-485)
(For PWM connector (#14), refer to the page 6 to make sure correct polarity.)
-
Set two positional points (position A & B) by turning variable resistors (#3&4). (Clockwise turn – Retracting
direction(short stroke) / Counter clockwise turn- Extension direction(long stroke))
Press A or B button (#9 or 10 ) to make positional command to the assigned goal positions. (Either button
-
between A and B)
It is also possible to reach the assigned points with an external switch or external voltage signal (#1 or 2). For
-
detailed information about external switch, see 2.3 External switches on page5.
[Program Description]
EZ Controller User Manual_EN_V.1.0
Example in which the two points set as variable
resistors are reversed from point A to point B and
point B to point A when the A or B button is pressed.
When the A or B button is pressed, the tg_flag value
declared as bool is inverted, and when the value is 1, it
moves to the A point, and when it is 0, it moves to the
B point.
9

Advertisement

Table of Contents
loading

Table of Contents