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:

  1. Setting Up your Arduino IDE with ArduBlocks and the eGizmo PBOT2018 Library. (Read Here)
  2.  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

Double Click the block 1 to change the servo number also the 90 degrees to change it.

Upload to Arduino. This will shown on the IDE.

 

YOU NEED TO FOLLOW THE EXTERNAL POWER SUPPLY FOR SERVO MOTORS.

Sample connection for Servo Supply you need another supply +6V for +V of servo channels.

Sample connection with 7.2v Ni-MH battery. Put a jumper for servo supply

  • SERVO SWEEP.ino

/**********************************************
* e-Gizmo PBOT2018 Controller - SERVO_SWEEP.ino
*
* This is for SERVO sample sketch
* to sweeps the shaft back and forth
* across 180 degrees.
*
* SERVO Control
* ex. 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)
*
* Codes by
* e-Gizmo Mechatronix Central
* http://www.e-gizmo.com
* June 5,2018
************************************************/
#include "eGizmo_PBOT2018.h"
#include <Wire.h>
eGizmo_PBOT2018 PBOT; // Create PBOT object to control a SERVO
int POS = 0; //servo start position
void setup() {
Wire.begin();
PBOT.BEGIN();
}
void loop() {
for(POS = 10; POS < 170; POS += 1) // goes from 00 degrees to 170 degrees
{ // in steps of 1 degree
PBOT.SERVO(1, POS); // tell servo to go to position in variable 'pos'
PBOT.SERVO(2, POS);
PBOT.SERVO(3, POS);
PBOT.SERVO(4, POS);
delay(15);
// waits 15ms for the servo to reach the position
}
for(POS = 170; POS>=10; POS-=1) // goes from 170 degrees to 10 degrees
{
PBOT.SERVO(1, POS); // tell servo to go to position in variable 'pos'
PBOT.SERVO(2, POS);
PBOT.SERVO(3, POS);
PBOT.SERVO(4, POS);
delay(15); // waits 15ms for the servo to reach the position
}
}
view rawSERVO_SWEEP.ino hosted with ? by GitHub