SERVO SYNTAX
SYNTAX
PBOT.
SERVO
(whichSERVO,pulsewidth)
;
where:
Whichservo = 1 to 4, ignore other values
Pulsewidth = 0 to 180 (degrees)
- value less than 500 stops the Servo PWM generator
- the pulsewidth converted to degrees from 0 to 180 (default)
EXAMPLES;
PBOT.
SERVO
(1, 15)
;
delay(1000);
PBOT.
SERVo
(1, 90)
;
delay(1000);
Содержание PBOT2018
Страница 4: ...PBOT 2018 BOARD MAJOR PARTS...
Страница 7: ...Setting Up your Arduino IDE with Ardublock...
Страница 9: ...Open the ArduBlock The Ardublock shown in Tools list Click ArduBlock Done...
Страница 10: ...Familiarize with Blocks THE IDE...
Страница 11: ...Basic Block CONTROLS sketch control structures loop delays millis if if else while do while repeat break...
Страница 17: ...For PBOT2018 blocks E GIZMO PBOT2018 BLOCKS USE FOR NEW PBOT BOARD...
Страница 18: ...Connect the PBOT to PC USB Connector USB Cable Open Arduino IDE...
Страница 25: ...SERIAL MONITOR BY ADDING THE SERIAL PRINT BLOCK...
Страница 27: ...FOR BLACK LINE SENSING LEFT...
Страница 28: ...FOR BLACK LINE SENSING CENTER...
Страница 29: ...FOR BLACK LINE SENSING RIGHT...
Страница 30: ...FOR WHITE LINE SENSING LEFT...
Страница 31: ...FOR WHITE LINE SENSING CENTER...
Страница 32: ...FOR WHITE LINE SENSING RIGHT...
Страница 37: ...Move Forward Motors forward at 120 PWM speed in 2 secs...
Страница 38: ...Reverse Motors Motors reverse at 120 PWM speed in 2 secs...
Страница 39: ...Turn Right Motors A turning right at 120 PWM speed in 2 secs...
Страница 40: ...Turn Left Motors B turning left at 120 PWM speed in 2 secs...
Страница 41: ...Motor Stops Both Motor stops at 0 speed in 2 secs...
Страница 42: ...Extreme Right Motors A forward and Motor B reverse at 120 PWM speed in 2 secs...
Страница 43: ...Extreme Left Motors A reverse and Motor B forward at 120 PWM speed in 2 secs...
Страница 49: ...SERIAL MONITOR BY ADDING THE SERIAL PRINT BLOCK...
Страница 51: ...FOR OBJECT DETECTION RIGHT...
Страница 52: ...FOR OBJECT DETECTION CENTER...
Страница 53: ...FOR OBJECT DETECTION LEFT...
Страница 54: ...SERVO CONNECTION Servo labels 1 4 Servo connectors from P3 P6 Servo Supply J2...