Page 6
Challenge ............................................................62 Objective 9: We Need Area Patrol! ................................................63 Introduction to Movement and Its Mechanisms........................................63 Step by Step Block Arrangement ................................................. 66 Objective 10: Let's Find Hidden Treasures............................................69 Introduction to Push Button ..................................................70 Introduction to Movement and Its Mechanisms........................................70 Step by Step Block Arrangement: .................................................
“Mikrobotik” Pathfinding Robot Line Detector Sensor Indicator LED LiPo Battery Charger Connector Power Switch Battery Power Connector Power Indicator Robot Power Connector Line Low Battery Indicator P1 Open Port Detector Sensor P2 Open Port Right Motor Left Motor Light Indicator L2...
Low Battery Indicator Low battery indicator will light up red colour. User need to stop using Mikrobotik and start charging when low battery The lower the voltage value in battery, the brighter the indicator. indicator lights at maximum. Minimum voltage operated: 11.0 V (Low battery indicator light...
Installation of mBlock v5 Step 1 mBlock v5 software can be obtained from: Link: https://mblock.makeblock.com/en-us/download/ @ QR: Step 2 Download the latest version of mBlock v5 based on the computer operating system. Step 3 Click mBlock v5 on your download location. Step 4 Wait until mBlock v5 installation is complete.
The calibration process is an important process for the robot to identify between the white line and the black line. The calibration process for this Mikrobotik robot can be done both manually and automatically. This process is done before the robot can follow the line and complete the circuit.
Page 20
Make sure all sensors starting from TR1 (LED L1) until TR5 (LED L5) were put on black line. Step 2 Switch on the power switch for Mikrobotik. Red LED1 light and blue LED2 will light up. The robot will automatically rotate to carry out the calibration process.
Page 22
Steps for Manual Calibration Process Step 1 Switch on Mikrobotik. LED1 with red colour and LED2 with blue colour will light up. RED LED BLUE LED (LED1) (LED2) POWER SWITCH Step 2 Move all sensors starting from sensor labelled with TR1 (LED L1) until TR5 (LED L5) and bring back to TR1 (LED L1).
Page 23
Step 3 Repeat movement in Step 2 until both LED (LED1 and LED2) light off. Make sure all the sensors can detect the black line. The RED LED (LED1) LED on the sensors will light up if the sensor detects a LIGHTS OFF.
Page 24
Autonomous Robot PID Algorithm PID algorithm is a control strategy suitable to assist determine the direction and speed of the robot such that it autonomously drive and follows the line as close and fast possible . PID algorithm will ensure the robot does not overshoot from the line track when turning and moves straight along the line.
Introduction to Buzzer Buzzer is a type of sound device that converts audio models into sound signals. It is usually used for alarms. Step by Step block arrangement: When Mikrobotik starts Robot Prepare. Step 1 Combine block with block...
Page 28
After Step 2 Next, combine block Mikrobotik starts Play with block C5” Choose “ Music (Note-C5, Beat-Double) (Note- as music note D5, Beat-Double), (Note-E5, Beat- Double), (Note-F5, Beat-Double), (Note-G5, Beat-Double), (Note-A5, Beat-Double), (Note-B5, Beat-Double) double” Choose “ as music beat...
Page 31
After Mikrobotik starts Turn Step 2 Combine block with block On LED Status On with choice of and LED #1 and block wait 1 second . Put the blocks under the block in Step 1. This program will light up the LED.
(labyrinth). The robot will move depending on the speed and direction of the left and right motors set by user. Introduction to Motors There are two motors on Mikrobotik that can be controlled separately, can rotate clockwise and counterclockwise continuously. These motors can also be used to move or drive the project.
Page 35
Steer to right Steer to left Left motor forward, right motor forward. Left motor forward, right motor forward. Left motor speed > Right motor speed Left motor speed < Right motor speed Sharp steer to right Sharp steer to left Left motor forwards, right motor stops.
Step by Step block arrangement Move forwards Step 1 Combine block When Mikrobotik starts with block Robot Prepare. After Mikrobotik starts Tank Turn Wheel Left -Forward Speed Wheel Step 2 Combine block with block -100, Right-Forward Speed wait 3 seconds...
Page 38
Mikrobotik stop after 1 loop Step 4 After the program uploaded, Mikrobotik will move forwards for duration of 3 seconds. Step to make the robot move backwards is the same as step to move forwards. You only need to change the direction of the left wheel to backward and the direction of the right wheel to backward.
Page 39
1 second Step 4 After the program uploaded, Mikrobotik will steer to left for duration of 3 seconds. Step for steer to the right is similar to the step for steer to the left. You just need to change the direction to right.
Page 40
Turns left Step 1 Combine block When Mikrobotik starts with block Robot Prepare. After Mikrobotik starts Tank Turn (Wheel Left -Backward, Speed Step 2 Combine block with block -100, Wheel Right-Forward, Speed wait (3 seconds) stop -100), block and block .
Page 41
Mikrobotik stop after 1 loop Step 4 After program uploaded, Mikrobotik turns left for 3 seconds and stops. Step for turn to the right is similar to the step for turn to the left. You just need to change the wheel left direction to forward and wheel left direction to backward.
Introduction to Line Tracer Time and its Mechanism Line Tracer Time used to make Mikrobotik follow along line with Black or White colour until it reach maximum time period (in ms). When Mikrobotik reaches the maximum time period, Mikrobotik will stop. Mikrobotik will move continuously without making turn when meeting left junction, right junction and middle junction.
Page 45
After Mikrobotik Starts Line Tracer Time. Step 2 Then, insert block and combine with block Line sensitivity (higher values mean more sensitive) ≥ 50: Motor speed when divert from line < 50: Time at maximum speed Left motor speed when on the line...
Step 3 After uploading the code, Mikrobotik will start moving forward temporarily. Perform the calibration process on the line sensor. After that, Mikrobotik will follow the line of either Black or White until it reaches the maximum time period (in ms).
(right or left or middle or dead end or offset). At the junction, Mikrobotik will act to turn (left or right or stop) for a set period of time or until the robot finds the next line and will stop.
After uploading the code, turn on the Mikrobotik switch and perform the calibration process. After that, Mikrobotik will follow the black line and if the robot meets a left junction, Mikrobotik will move forward and then turn to enter the left junction until Mikrobotik meets another line.
Introduction to and its Mechanism Mikrobotik travel autonomously on lines (Black or White or Thin Black or Thin White) until meet an intersection (Left or Right or Middle or Dead End or Offset). At the junction, Mikrobotik will act (Turn left or Turn right or Stop) for at least the Minimum Turn Period (Min Turn Period) continue turning until it detects the line and stops.
Page 54
After Mikrobotik starts Path Finder Tank (Line Format- Black, Junction Step 2 Combine block with block Right, Action-Turn Left, Left Speed Right Speed Turn Speed RampUp Perc -50, -50, -200, -100, Kp-0.02, Sensor Threshold Junction Speed Forward Delay Min Turn Period ms Kd-0.2,...
Step 3 After uploading the code, turn on the Mikrobotik switch and perform the calibration process. After that, Mikrobotik will follow the black line and if the robot finds a left junction, Mikrobotik will move (Min Turn Period) forward and then turn for at least the Minimum Turn Period and continue turning until it detects the line and stops.
Objective 7: Wrong way? Make U-turn Mikrobotik can make a U-turn on the line it passes through 180 degrees on its axis and turn left or right during the Minimum Turn Duration (Min Turn Period) and continue until it meets the line (Black or White).
Left wheel moves Right wheel moves Left wheel speed forward backward Right wheel speed Mikrobotik performs calibration process while moving for few seconds process Mikrobotik stops for 1 second Turn At Centre (Line Format- Black, Direction Turn-Left, Speed Step 2 Combine block...
Introduction to Bluetooth and its Mechanism Mikrobotik can be control in close range using the Bluetooth approach as it can be find and control easily. The Bluetooth module inserted into the port provided. This Bluetooth module contains 4 pins which are RXD, TXD, GND, and VCC.
Step by Step block arrangement: Step 1 Insert block When Mikrobotik Starts and combine Robot Prepare with block After Mikrobotik starts Bluetooth Step 2 Combine block with block after combined with block Data Check. Put those blocks under the block in Step 1.
Page 63
After Mikrobotik starts Bluetooth Data Control Data (F, B, L. R, X) Step 3 Under the block , combine 5 blocks with 5 then Tank Turn blocks and under the block combine with 5 blocks to get forward, backward, turn to left, turn to right and stop movement.
Page 64
Bluetooth Data Control Data (T, S, E. Q, C, Z) Step 4 For the next block, combine 6 blocks with 6 blocks then Play Music (Note-C3, Beat Half) Tank Turn under the block combine with 2 blocks .5 and 4 blocks get forward and steer right, forward and steer left, backward and steer left, backward and steer right movement.
Page 65
Bluetooth Data Control Data (1, 2, 3, 4, 5) Step 5 For the next block, combine 5 blocks with 5 blocks then Turn On LED (#1 On, #1 Off, #2 On, #2 Off) under the block combine with 2 blocks and 1 block Play Music (Note-A3, Beat Whole) Data for turn On LED#1...
Objective 9: We Need Area Patrol! Sometimes a robot needs to use more than one block to complete a task such as "area patrol robot". To patrol an area, the robot needs to move along a line at varying speeds and for a certain distance or time. In addition, while following the line, the robot has to make a turn in the opposite direction.
Page 70
Line Tracer Time The robot moves autonomously using with high speed for 3 seconds (red arrow) and then with low speed for 3 seconds (yellow arrow). Start Turn At The robot makes a turn in the middle, towards the left. (yellow arrow direction to green arrow) using Centre.
The left wheel turns The right wheel turns forward Left wheel speed backward Right wheel speed Mikrobotik perform the calibration process while moving for a few seconds. Mikrobotik stop for 1 second. After Mikrobotik starts repeat until Line Tracer Step 2...
Page 73
Turn at Centre Line Tracer Time Step 3 Add a block and set it to make a left turn. Add another by setting Line Tracer Time the speed to 80 for 3 seconds. Then, add another block by setting the speed to 80 in 4 seconds.
Objective 10: Let's Find Hidden Treasures. Sometimes the robot needs to use more than one block to complete a task such as "robot looking for hidden treasure". In order to get all five hidden treasures, the robot needs to go through many intersections, among which are left junctions, right junctions and 3-way junctions.
A push button is a type of switch that functions to control a machine directly through the touch of a hand or finger from the user or the surface of a component. Mikrobotik has push buttons S1 and S2. The analog reading value will be less than 400 when S1 is pressed while the analog reading will be less than 500 when S2 is pressed.
Page 77
Here is a sketch of the movement of the robot searching for hidden treasures by going through different intersections to complete the task. Path Finder The robot moves from the starting point to find the left junction and turns using the to the left to pick up the first hidden treasure.
Page 78
Path Finder iii) The robot moves to find the 3-way intersection and turns using the to the left to pick up the third hidden treasure. Path Finder Tank The robot moves again to find the left junction and turns using the to the left to pick up the fourth hidden treasure.
The left wheel turns The right wheel turns forward Left wheel speed backward Right wheel speed Mikrobotik perform the calibration process while moving for a few seconds. Mikrobotik stop for 1 second. After Mikrobotik starts repeat until Path Finder Step 2...
Page 81
Path Finder Junction – “Right”, Action – “Turn Right”, Speed – Step 3 Add a new block and set the value to ( “60”, Turn Speed – “200”, Junction Speed – “50”, Forward Delay – “0” Turn Period – “600” Path Finder Junction –...
Page 82
Path Finder Tank Junction – “Left”, Action – Turn Left”, Step 5 Add a block and set the value to ( Speed – “70”, Turn Speed – “100”, Junction Speed – “100”, Forward Delay – “350” Min Turn Period – “200” Path Finder Tank Junction –...
Extra: Try Upgrade and Self Program DEVICE PORT ARDUINO NANO PIN PERIPHERALS ADDITIONAL INFO ITR1 Line Detection Sensor – Outer Left ITR8307 ITR2 Line Detection Sensor – Inside Left ITR8307 ITR3 Line Detection Sensor – Middle ITR8307 ITR4 Line Detection Sensor – Inside Right ITR8307 ITR5 Line Detection Sensor –...
Need help?
Do you have a question about the MIKROBOTIK and is the answer not in the manual?
Questions and answers