iRobot IR-CT01 Скачать руководство пользователя страница 11

EZ Controller User Manual_EN_V.1.0 

 

 

 

11 

 

3.5. Example –Basic Function

 

Switching control mode and controlling actuator through Mode selection slide switch. 
Select [Example] - [IRROBOT_EZController] - [EZ]-[EasyControl_BasicFunction]  선택 
 

[Description] 

-

 

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.)

 

-

 

Switch the mode with the mode slide switch (#8) to operate the actuator. 
1) Mode0 : Manual Control (Switch Bottom) 
2) Mode1 : 2 Position Control (Switch Center) 
3) Mode2 : Toggle Control (Switch Top) 

-

 

When  operating  in  Mode1  (Manual  Control),  note  that  the  position 
setting variable resistor values by # 3 and 4 are set to the limit value 
of the movable range of the variable linear potentiometer (# 17). 

[Program Description] 

 
 
 
 
 
 
 
 
 
 

 

 

 
 
 
 
 
 

 

 

 

The  bottom,  middle,  and  top  of  the  Slide  Switch 
are  defined  as  MODE_0,  MODE_1,  and  MODE_2  in 
each order. 

MODE_0 : Manual Position(Potentiometer) 
MODE_1 : Position Select(A, B Position) 
MODE_2 : Position Toggle(A,B Position) 

Debouncing by variable counting 

Sw_status : Recognizing if the switch is pressed 
sw_cnt: When SW is On, recognizing after debouncing 
cnt:  When  SW  is  off,  recognizing  after  determining 
“off operation”.

 

Содержание IR-CT01

Страница 1: ...EZ Controller IR CT01 User Manual...

Страница 2: ...2 3 External Switch and Signal Input 5 2 4 Parts Pin Map 6 03 Example of Actuator Control through Arduino IDE 7 3 1 Overview 7 3 2 Ex 2 Position Control 7 3 3 Ex Toggle Position 9 3 4 Ex Manual Posit...

Страница 3: ...d before use See the picture on the right 3 Since the voltage applied to the EZ controller is directly applied to the connected actuator check the operating voltage range of the actuator and check the...

Страница 4: ...external switch or external signal It is same function as push button For position setting use and A Position setting V R A position setting by adjusting variable resistor A position command made by o...

Страница 5: ...Position respectively and then press the white push buttons A B in the center to operate the actuator as Point A and Point B Position Toggle Mode Connect the actuator move the Mode switch to the top...

Страница 6: ...the manual Page 4 Pin Name Arduino Leonardo I O Pin Part No Pin Name Purpose Part No Pin Name Purpose I O10 GPIO A Signal A0 A2 A3 GPIO Analog D3 GPIO B Signal D5 GPIO PWM A4 Analog A Variable resisto...

Страница 7: ...h an external physical switch or external voltage signal Figure 1 or 2 For detailed information about external switch see 2 3 External switches on page5 Here is the example of moving to 2 assigned pos...

Страница 8: ...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...

Страница 9: ...ional 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...

Страница 10: ...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...

Страница 11: ...8 to operate the actuator 1 Mode0 Manual Control Switch Bottom 2 Mode1 2 Position Control Switch Center 3 Mode2 Toggle Control Switch Top When operating in Mode1 Manual Control note that the position...

Страница 12: ...r digital terminals and the first second pins from the left can be used The signal terminal is the lowest pin of the 3 pins and the pin has a signal level of 5V See picture below Active Low 5V High Si...

Страница 13: ...refully 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 Among the header pins 12 the right t...

Страница 14: ...according to the pin arrayal If you press the A B button in the example A B is sent as an ASCII value When the board receives A as an ASCII value the actuator moves to the A point set the same as bef...

Страница 15: ...n the operation can be different according to the position of Mode selection switch 8 and the operation can be assigned for each mode Program Description Index values for each mode are defined sequent...

Страница 16: ...to the page 6 to make sure correct polarity Set the position limit by turning the variable resistors Fig 3 and 4 that adjust the position of the max and min points of the stroke in the clockwise and...

Отзывы: