Page 1
PBOT2018 MANUAL GUIDE FUNCTIONS : PBOT 2018 > Line follower > Maze Solver > Collision Avoidance Included: - USB Cable Type A to mini B - 5V 1A adaptor > Sumo fight...
Page 2
PBOT 2018 DESCRIPTIONS VARIANTS: - has new comptible PBOT 2018 Board and gizDuino 168 PBOT2018 Microcontroller for basic entry level robot functions and open Circuit board. The Open circuit enables the user to boarden the Capabilities of prototyping by adding certain peripheral to the Board.
PBOT 2018 SPECIFICATIONS Features: - Basic Arduino Programming, Include eGizmo_PBOT2018 library. General Specifications: The operation of motor to its maximum power Battery: 3.7V Li-Ion 1650mAh rechargeable - Efficient Motor Driver circuitry enables On-board Peripherals: The operation of motor to its maximum power - IC Atmega168 w/ 16KB Flash memory At the same time eliminating the need for - IC A3966 Dual Full-bridge PWM Motor Driver...
LINE SENSOR LINE FOLLOWER CONNECTIONS LINE CAL – for making line sensor calibrated as easy. (to calibrate read the page 5) LINE SENSORS CONNECTION (P7): GND,DRV,LN3,LN2,LN1 LINE SENSOR LED INDICATORS: - LN3(D13), LN2(D12),LN1(D11) - if LED is ON, black color detected ...
Choose your Arduino IDE for your OS. Drivers Install this first! www.e-gizmo.net/oc/kits documents/ARDUINO IDE SOFTWARES Download Prolific Driver v10.0 (Windows) (For Mac OS users) Download md_PL2303_MacOSX Library Add to My Documents>Arduino>libraries www.e-gizmo.net/oc/kits documents/PBOT2018 Download eGizmo_PBOT2018.zip (Unzip this before you move to libraries) ...
Page 7
Setting Up your Arduino IDE with Ardublock...
Page 8
Downloads ArduBlock MOD: “Ardublock-060118.jar” Go to My Documents>Arduino. Create filename “tools” folder then “ArduBlockTool” folder and “tool” folder. Inside the tool folder place the “ardublock-060118.jar“. Now Open your Arduino 1.8.5 IDE.
Page 9
Open the ArduBlock The Ardublock shown in Tools list > Click ArduBlock. Done...
Basic Block CONTROLS - sketch, control structures - loop - delays (millis) - if - if else - while - do while - repeat - break...
Page 12
Basic Block PINS [FUNCTIONS] - Digital I/O, Analog I/O, Time,Advanced I/O - read digital pin - analog pin(INPUT) - set digital pin(OUTPUT) - analog pin - servo - ultrasonic - Dht11 - tone - set digital 8pins (0-7)
Page 13
Basic Block TESTS - Comparison Operators,Boolean Operators - greater than - less than - equal to - greater than equal to - less than equal to - not equal to…...
Page 16
Basic Block COMMUNICATION - Serial communication, Stream,Print, Serial read/write - Serial data available,serial read, serial parseInt, Serial write, Serial print,…...
Page 17
For PBOT2018 blocks E-GIZMO PBOT2018 BLOCKS (USE FOR NEW PBOT BOARD)
Page 18
Connect the PBOT to PC USB Connector Open Arduino IDE. USB Cable...
Page 19
Uploading Linebot.ino For line follower On the Arduino IDE. 1. Line Follower codes Go to File>Examples>eGizmo_PBOT2018>LINEBOT 3. Port select Go to Tools>Port>COM# Select the correct port Go to Device Manager if you're not sure. 2. Board select Tips for uploading: Go to Tools>Boards>gizDuino (mini) w/ Atmega168 Press and Hold the SYS RST (SW3) ...
LINE SENSOR 1. After uploading your code for linesensors. CALIBRATION1,2 Turn OFF the POWER switch. Turn ON the POWER Switch. Turn Turn On 2. Place the eGizmo PBOT controller to the "black line" then LN2 (D12 LED indicator) is ON. Press and Hold LINE CAL and SYS RST, while pressing and holding the buttons,...
Page 21
LINE SENSOR CALIBRATION 3 3. First RELEASE the SYS RST followed by LINE CAL. Make sure the 3CH Line sensors are faces on the "black line" Now Press LINE CAL once for the black color calibration. and you will see the LN1 and LN3 (D11 and D13 LED indicators) are Turn ON and LN1 is blinking.
Page 22
LINE SENSOR CALIBRATION 4,5 4. Next, if the L3 (D13 LED indicator) is blinking. After that you will see all the LEDS for linesensors are ON. Place the 3CH Line sensors on the "White track". 5. Now your eGizmo PBOT Controller Then Press LINE CAL again once for the Linesensors are calibrated.
Page 23
LINE FOLLOWER SYNTAX SYNTAX PBOT.LS1_LEFT(); PBOT.LS2_CENTER(); PBOT.LS3_RIGHT(); OUTPUT WHITE LINE DETECTED = 0 or LOW BLACK LINE DETECTED = 1 or HIGH EXAMPLES; (PBOT.LS2_CENTER() == HIGH) // if line sensor 2 center is high Serial.println(“Black line detected!”);...
Page 24
START WITH ADDING A BLOCK “PBOT BEGIN” Adding PBOT BEGIN block – settting up the eGizmo_PBOT2018, Wire library and turn ON all the motors.
Page 25
SERIAL MONITOR BY ADDING THE SERIAL PRINT BLOCK...
Page 26
USE THE DROP-DOWN ARROW TO SELECT SENSOR Click the Dropdown arrow to select immediately the line sensor As you can see the 3 line sensors appears...
MOTORS CONNECTION SECTION MOTOR WIRE CONNECTIONS (P2): MOT 1 – 1A,1B ; MOT2 – 2A,2B MOT 1 = LEFT Blue-Bottom Yellow-Upper MOT 2 = RIGHT Green-Upper Black-Bottom *Please don not depends on the color of the wires. Follow the location of it.
Page 34
Uploading Motor Test.ino Direction/Speed On the Arduino IDE. 1. Motor controls codes Go to File>Examples>eGizmo_PBOT2018>MOTOR_TEST 3. Port select Go to Tools>Port>COM# Select the correct port Go to Device Manager if you're not sure. 2. Board select Tips for uploading: Go to Tools>Boards>gizDuino (mini) w/ Atmega168 Press and Hold the SYS RST (SW3) ...
Page 35
MOTOR CONTROLS SYNTAX SYNTAX Set motor direction: PBOT.DIRECTION(whichmotor,dir); where: whichmotor = MOTOR_A or MOTOR_B, MOTOR_BOTH dir = MOTOR_FWD,MOTOR_REV Set motor speed: PBOT.SPEED(whichmotor,speed); where: whichmotor = MOTOR_A or MOTOR_B, MOTOR_BOTH speed = 0 to 255, 0 = Full Stop, 80 = Neutral,255 = High, limit 250 ...
Page 36
START WITH ADDING A BLOCK “PBOT BEGIN” Adding PBOT BEGIN block – settting up the eGizmo_PBOT2018, Wire library and turn ON all the motors.
Page 37
Move Forward Motors forward at 120 PWM speed in 2 secs...
Page 38
Reverse Motors Motors reverse at 120 PWM speed in 2 secs...
Page 39
Turn Right Motors A turning right at 120 PWM speed in 2 secs...
Page 40
Turn Left Motors B turning left at 120 PWM speed in 2 secs...
Page 41
Motor Stops Both Motor stops at 0 speed in 2 secs...
Page 42
Extreme Right Motors A forward and Motor B reverse at 120 PWM speed in 2 secs...
Page 43
Extreme Left Motors A reverse and Motor B forward at 120 PWM speed in 2 secs...
Page 44
MAZE/SUMO IR SENSORS CONNECTIONS IR RECEIVERS 38Khz - U5, U6, U7 IR LED TRASMITTER - D17, D18, D19 - Distance Range: 2 – 4 inches IR LED INDICATORS - COL1 (D14), COL2 (D15), COL3 (D16) - if LED is ON, Object detected - if LED is OFF, No object detected...
Page 45
Uploading Maze.ino Maze Solver On the Arduino IDE. 1. Maze Solver codes Go to File>Examples>eGizmo_PBOT2018>MAZE 3. Port select Go to Tools>Port>COM# Select the correct port Go to Device Manager if you're not sure. 2. Board select Tips for uploading: Go to Tools>Boards>gizDuino (mini) w/ Atmega168 Press and Hold the RST (SW3) ...
Page 46
Uploading Sumo.ino Sumo Fight On the Arduino IDE. 1. Sumo fighting codes Go to File>Examples>eGizmo_PBOT2018>SUMO 3. Port select Go to Tools>Port>COM# Select the correct port Go to Device Manager if you're not sure. 2. Board select Tips for uploading: Go to Tools>Boards>gizDuino (mini) w/ Atmega168 Press and Hold the RST (SW3) ...
Page 47
IR SENSORS SYNTAX SYNTAX PBOT.COL1_RIGHT(); PBOT.COL2_CENTER(); PBOT.COL3_LEFT(); OUTPUT NO OBJECT DETECTED = 0 or LOW OBJECT DETECTED = 1 or HIGH EXAMPLES; (PBOT.COL2_CENTER() == HIGH) // if IR sensor 2 center is high Serial.println(“Object detected!”);...
Page 48
START WITH ADDING A BLOCK “PBOT BEGIN” Adding PBOT BEGIN block – settting up the eGizmo_PBOT2018, Wire library and turn ON all the motors.
Page 49
SERIAL MONITOR BY ADDING THE SERIAL PRINT BLOCK...
Page 50
USE THE DROP-DOWN ARROW TO SELECT SENSOR Click the Dropdown arrow to select immediately the collision sensor As you can see the 3 IR collision sensors appears...
Uploading Servo sweep.ino On the Arduino IDE. Servo Controls 1. Servo codes Go to File>Examples>eGizmo_PBOT2018> Servo_Sweep 3. Port select Go to Tools>Port>COM# Select the correct port Go to Device Manager if you're not sure. 2. Board select Tips for uploading: Go to Tools>Boards>gizDuino (mini) w/ Atmega168 Press and Hold the RST (SW3) switch ON the power and...
Page 56
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;...
Page 57
START WITH ADDING A BLOCK “PBOT BEGIN” Adding PBOT BEGIN block – settting up the eGizmo_PBOT2018, Wire library and turn ON all the motors.
Page 58
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. ”...