PBOT2018 on ArduBlock – Controlling Servo Motors
04 Jul
![PBOT2018 on ArduBlock – Controlling Servo Motors PBOT2018 on ArduBlock – Controlling Servo Motors](https://www.e-gizmo.net/gizmoshop/image/cache/catalog/pbotservo-1140x300w.png)
![PBOT2018 on ArduBlock – Controlling Servo Motors PBOT2018 on ArduBlock – Controlling Servo Motors](https://www.e-gizmo.net/gizmoshop/image/cache/catalog/pbotservo-1140x300w.png)
Posted By
0 Comment(s)
1410 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”
Adding PBOT BEGIN block – settting up the eGizmo_PBOT2018, Wire library and turn ON all the motors.
FOR SERVO BLOCKS
![](https://www.e-gizmo.net/migration/wp/uploads/2018/07/blockservo.png)
Double Click the block 1 to change the servo number also the 90 degrees to change it.
![](https://www.e-gizmo.net/migration/wp/uploads/2018/07/servocode.png)
Upload to Arduino. This will shown on the IDE.
”YOU NEED TO FOLLOW THE EXTERNAL POWER SUPPLY FOR SERVO MOTORS.
![](https://www.e-gizmo.net/migration/wp/uploads/2018/07/servo-v.png)
Sample connection for Servo Supply you need another supply +6V for +V of servo channels.
![](https://www.e-gizmo.net/migration/wp/uploads/2018/07/servo-7v2.png)
Sample connection with 7.2v Ni-MH battery. Put a jumper for servo supply
- SERVO SWEEP.ino
Leave a Comment