PBOT2018 on ArduBlock – Controlling Servo Motors
04 Jul
Posted By
0 Comment(s)
1478 View(s)
Updated: 5/17/21
SERVO MOTORS SECTIONS:
P3 : SERVO 1 P4 : SERVO 2 P5 : SERVO 3 P6 : SERVO 4
PROPER UPLOADING:
Press and Hold the SYS RST (SW3) then switch ON the Power (SW1) and Click Upload. Release SYS RST when done.
PBOT 2018 FUNCTION REVIEW:
- Set Servo number and position in degrees from 0 to 180.
- Servo Controls
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)
Ex.:
GET STARTED:
- Setting Up your Arduino IDE with ArduBlocks and the eGizmo PBOT2018 Library. (Read Here)
- In ArduBlock, using PBOT 2018,
START WITH ADDING A BLOCK “PBOT BEGIN”
FOR SERVO BLOCKS
YOU NEED TO FOLLOW THE EXTERNAL POWER SUPPLY FOR SERVO MOTORS.
- SERVO SWEEP.ino
Leave a Comment