Inex KidBright32iA JR-BOT Manual

Hide thumbs Also See for KidBright32iA JR-BOT:

Advertisement

Quick Links

SPEAKER
Su
o t
o n
t
o
n b o
too
t
n
o o
o
oP t on o
t
o o
o
o
t
KidBright IDE
microBlock IDE
Arduino IDE
u no
c o
dee
www.inex.co.th

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KidBright32iA JR-BOT and is the answer not in the manual?

Questions and answers

Summary of Contents for Inex KidBright32iA JR-BOT

  • Page 1 SPEAKER n b o oP t on o KidBright IDE microBlock IDE Arduino IDE u no www.inex.co.th...
  • Page 3: Part List

    Part List 1. Chassis with 3-cell AA battery holder 10. Right angle bracket 2 x 2 holes - 2 pcs. 2. KidBright32iA Board 11. 10mm. Plastic Standoffs - 4 pcs. 3. Base plate for KidBright32iA Board 12. Thumb Screw - 4 pcs. 4.
  • Page 4 KidBright32iA JR-BOT robot wiring assignment - Connect the ZX-SONAR1M ultrasonic sensor to connector. - Connect the ZX-03 infrared sensor (left) to connector and the ZX-03 infrared sensor (right) to connector. - Connect the left KSERVO-36J servo motor to connector and the right...
  • Page 5: Table Of Contents

    Install the KidBright IDE software and the plugin for KidBright32iA JR-BOT robot Chapter 3 Testing the movement of the KidBright 32iA JR-BOT robot Chapter 4 KidBright32iA JR-BOT with Obstacle Avoiding Mission Chapter 5 Using the infrared reflector with KidBright32iA JR-BOT Chapter 6 Line Following Robot...
  • Page 7: Introduction To Kidbright32Ia Jr-Bot

    On-board Light and Temperature sensor Mount the Ultrasonic sensor for object and distance sensing Mount the IR reflector for detection surface and line Figure 1-1 shows the main components of the KidBright32iA JR-BOT robot KidBright32iA JR-B T...
  • Page 8 1.1 Technical features of the KidsBright32iA JR-BOT robot • Supports coding with command block tools such as KidBright IDE and microBlock IDE. Develop microPython code with microBlock IDE also. It also supports program development in C/C++ language with Arduino IDE (recommended Arduino IDE 2.x) •...
  • Page 9 Microcontroller board for computing education Light detector USB-C connector 16x8 dot LED Temperature sensor Connect via analog input pin 36 Auxiliary Input/output - Connect to computer Connect via the I C bus. terminals pin 18, 19, 23, - Receive +5V power from the Acceleration sensor analog input VN and LED shows wireless...
  • Page 10 Technical features of the KidBright32iA board • Uses ESP32 microcontroller with built-in low power Wi-Fi and Bluetooth circuitry. • There is a 16 x 8 dots matrix LED display. • There is an LED to show the working status, including: - Computer connection via USB port.
  • Page 11: Install The Kidbright Ide Software And The Plugin

    Chapter 2 Install the KidBright IDE software and the plugin KidBright32iA JR-BOT robot KidBright32iA JR-BOT robot can be programmed with many software tools. The recommended tool is the KidBright IDE software, developed by researchers from the National Electronics and Computer Technology Center (NECTEC) of the National Science and Technology Development Agency (NSTDA).
  • Page 12 2.1.2 Installing the KidBright IDE soware for macOS Once the download is complete, extract the .zip file. Find the KidBright-darwin- x64 folder. Open it and copy the KidBright to the Application folder. Place the KidBright in the Application folder. Figure 2-2 Copy the KidBright program and paste it in the Application folder. When open the KidBright IDE at first, The security warning window appears because it is not a program downloaded through the App Store as shown in Figure 2-3.
  • Page 13 (1) Open Security & Privacy (2) Click Open Anyway Figure 2-4 Steps to authorize the KidBright IDE program to be launched on macOS. After following the steps in Figure 2-4, open the KidBright IDE program again. A notification window will appear as shown in Figure 2-5 to confirm the program open- ing.
  • Page 14 When the installation is complete, the main program window will appear as shown in Figure 2-6. Change language Edit Menu QR code connect Setup connection Install Plugins Menu Set the real time clock (RTC) Generate code and upload program Save file New file Open file Click to show the command block...
  • Page 15 Figure 2-7 the KidBright32iP board USB driver installation steps. When the driver installation is com- plete, open the Device Manager window and check that in the Ports (COM & LPT) section, a new device named USB Serial Port (COMx) is found, as shown in Figure 2-8. In the example, it is a USB Serial port with...
  • Page 16 2.3 Install the plugin to control the KidBright32iA JR-BOT robot. iPORT is a plugin to configure the operation of the input/output ports of the KidBright32iA board. The download and installation steps are as follows: (1) Go to https://store.kidbright.info/plugin/39/iPORT/ as shown in Figure 2-9.
  • Page 17 (4) Select the downloaded .zip file of iPORT. When selected, the plugin will be installed. (5) Then the KidBright IDE program is closed and reopened. The iPORT plugin command block is in Plugins > iPORT section as shown in Figure 2-11. Figure 2-11 iPORT plugin command block when installed in the KidBright IDE program.
  • Page 19: Testing The Movement Of The Kidbright 32Ia Jr-Bot Robot

    Chapter3 Testing the movement of the KidBright 32iA JR-BOT robot KidBright JR-BOT robot is driven by two 360-degree rotating servo motors. The servo motors used are the KSERVO-360J, which are low-power servo motors that can operate on a power supply from 3V to 6V, allowing them to be driven directly by a microcontroller and shared power supply.
  • Page 20 The control signal from the KidBright32iA board to drive the servo motor on the KidBright32iA JR-BOT board is as follows: • Connect the OUT1/O1 port of KidBright32iA board to drive the left servo motor. • Connect the OUT2/O2 port of KidBright32iA board to drive the right servo motor.
  • Page 21 Activity 3-1 Testing the rotation of the servo motor (1) Place the KidBright32iA JR-BOT robot on the stand or on the box so that the robot’s wheels are off the ground. (2) Connect the KidBright32iA JR-BOT robot to the computer via USB-C cable.
  • Page 22 Activity 3-2 Testing the movement of KidBright32iA JR-BOT robot. (1) Place the KidBright32iA JR-BOT robot on the stand or on the box so that the robot’s wheels are off the ground. (2) Connect the KidBright32iA JR-BOT robot to your computer via a USB-C cable.
  • Page 23 In this activity, we will improve the KidBright32iA JR-BOT to move instantly when the S1 or S2 button is pressed only once and released. (1) Place the KidBright32iA JR-BOT robot on the stand or on the box so that the robot’s wheels are off the floor.
  • Page 24 IDE program has already included a command block for creating functions, which is Function block, organized in the Advance command bar. The basic movement functions of KidBright32iA JR-BOT robot are 5 functions as shown in Figure 3-3, including : Forward : Controls the robot to move forward.
  • Page 25 (3) Once the code is uploaded, disconnect the cable from the computer and place the KidBright32iA JR-BOT on the floor. (4) Turn on the power switch, the robot will wait for the S1 button to start working. Observe the movement of the robot.
  • Page 26 3.4 Collapse function block Collapsing each function command block which originally had many blocks into only one block that lists the function name. It makes the overall code more compact. This ability to collapse blocks is available in KidBright IDE from version 1.5 Collapse Function onwards.
  • Page 27: Kidbright32Ia Jr-Bot With Obstacle Avoiding Mission

    Chapter 4 with KidBright32iA JR-BOT Obstacle Avoiding Mission Another basic capability of the KidBright32iA JR-BOT robot is obstacle detection to determine the robot’s movement. It uses an ultrasonic sensor to measure distance ZX-SONAR1M from obstacle. The sensor module is the module.
  • Page 28 Ultrasonic Module Receiver Transmitter Distance from object Target object Pulse Receiver Signal Pulse to DC DC output voltage voltage Processing section Converter 0 to 3.3V Pulse signal generator 40kHz Ultrasonic wave Figure 4-2 Operation diagram of the ultrasonic sensor distance measurement To obtain the distance in centimeters, calculation is required as follows: Distance (cm) = ADC value ×...
  • Page 29 INEX and Artron shop. The display of numbers will have reduced resolution and size to 4x8 dots as shown in Figure 4-3. Figure 4-3 Numerical display format of iTerminal plugin 4.2.1 Install...
  • Page 30 Figure 4-4 iTerminal plugin download webpage 4.2.2 iTerminal plugin command block Once the plugin is installed, click on Plugins in the left command bar to open iTerminal plugin, click on it. The command block the installed plugins. Search for the menu is appeared.
  • Page 31 4.2.2.1 LED 16x8 show number 4.2.2.2 LED 16x8 show time This block operation is displaying small This block operation is displaying time hours : minutes 4-digit numbers on a 16x8 dots LED values include minutes : seconds display. This command can display on a 16 x 8 dot LED only integers value.
  • Page 32 - If the object is moved away, the measured value will increase. - If the object is moved closer, the measured value will decrease. (4) Continue to develop the work so that the KidBright32iA JR-BOT robot displays the measured values in centimeters unit. The formula is used to calculate...
  • Page 33 15 cm. 8 cm. The KidBright32iP LED display The KidBright32iP LED display shows 15. shows 8. Figure A4-3 Demonstrate the operation of KidBright32iA JR-BOT robot from program A4-2. Read values ​ ​ f rom the sensor and display them in centimeters.
  • Page 34 From the experiment of reading values from the ZX-SONAR1M module and cal- culating the distance, the working results are shown in Table A4-1. However, this value may change slightly depending on the characteristics of the ultrasonic transmitter and receiver, including interference due to wave reflection from the environment if the tested area is not an open area.
  • Page 35 Start the operation by waiting for the S1 button on the KidBright32iA board of the KidBright32iA JR-BOT robot to be pressed. When the S1 button is pressed, the KidBright32iA JR-BOT moves forward and checks if the reading value of the I2 input is less than 500. This value is approximately 15 centimeters.
  • Page 36 ZX-SONAR1M that is connected to I2 pin. (3) Place the robot on the floor, then press the S1 button. Place an object in front of the robot. Observe the operation of the KidBright32iA JR-BOT robot. The robot moves forward straight ahead if it encounters an obstacle, the robot will moves backward and turn left to changing its path to avoid the obstacle as shown in Figure A4-4.
  • Page 37 Figure A4-4 shows the operation of KidBright32iA JR-BOT robot to move and avoid obstacles.
  • Page 38 0.4 seconds will make turning right at an angle of 90 degrees. If user would like to the KidBright32iA JR-BOT robot turn left after detecting the wall, have to edit the program as shown in program A4-5. Shows both the...
  • Page 39 When the robot detects a wall, it turns right for 0.4 seconds and then stops. Program A4-4 : Code in full and collapsed block functions for KidBright32iA JR-BOT robot to check the wall . If found, stop and turn right.
  • Page 40 Program A4-5 : Code in full form and collapsed block functions for KidBright32iA JR-BOT robot to check the wall. If found, robot stops and turn left.
  • Page 41 Part 2: Creating a function From the operation of the KidBright32iA JR-BOT in this activity according to Figure A4-5, it can be seen that when the robot encounters a wall, it will stop and turn left or right. Therefore, to make the program concise, a program must be created to check for obstacles and then turn right or left as in Program A4-6.
  • Page 42 When KidBright32iA JR-BOT robot encounters a wall, it will turn as spec- ified in the program. If the movement is not error, KidBright32iA JR-BOT robot will move to the exit as planned. In real operation, it is possible that the robot may not move straight and the turning angle may not be in accordance with the theory.
  • Page 45: Using The Infrared Reflector With Kidbright32Ia Jr-Bot

    With such features, this sensor board is popularly used to detect floors or lines. It must be mounted at the bottom of the robot chassis. Figure 5-1 shows the mounting location of the ZX-03 sensor boards in the KidBright32iA JR-BOT and technical information...
  • Page 46 Figure 5-1, it can be seen that the suitable installation distance of ZX-03 is between 3 to 10 millimeters from the floor. In KidBright32iA JR-BOT robot, the ZX-03 mini board is connected to the KidBrigh- t32iA control board as follows: - The right ZX-03 is connected to the I3 pin of the KidBright32iA board.
  • Page 47 (1) Open KidBright IDE program with plugin installed, create code according to Program A5-1 and upload it to KidBright32iA JR-BOT robot. Program operation To start the program, S2 button must be pressed to read values from the left ZX-03 (connected with I4 pin) and displayed on the LED 16x8 dots.
  • Page 48 (2) Disconnect the USB-C cable from the computer. (3) Place the KidBright32iA JR-BOT robot on a white surface to read the reflected light values. (3.1) Press S2 button to read the value from the left ZX-03 and record the value.
  • Page 49 Activity 5.2 robot liftout alarm The principle of this activity is that when KidBright32iA JR-BOT robot is placed on any color surface, the lowest value that the detector reads is the value of the light reflected from the black surface, which has a value in the range of 200 to 600.
  • Page 50 (2) Place the KidBright32iA JR-BOT robot on the floor then disconnect the USB-C cable from the computer. (3) Try lifting the KidBright32iA JR-BOT robot from the floor. Observe the operation of the KidBright32iA JR-BOT robot.
  • Page 51: Line Following Robot

    Chapter 6 Line Following Robot One of the must-have learnings for mobile autonomous robots is programming to control the robot to move along a line. This is an example of understanding the simple logical thinking process. Because the robot’s line movement comes from a process that is related and consistent with reason and scientific explanation.
  • Page 52 2. Two rolls of 1-inch black electrical tape. We recommend the 3M brand be- cause it is highly flexible and can be at- tached to curves well. 3. Scissors Making steps are as follows: Stick the electrical tape to PP sheet as shown in Figure A6-1.
  • Page 53 Forever block. Program A6-1 : Code for KidBright32iA JR-BOT to move to find or detect the black lines The operation steps are as follows: (1) Connect the KidBright32iA JR-BOT robot to the computer then open the KidBright IDE program.
  • Page 54 (4) Then press the S1 button on the KidBright32iA board of the robot to start. KidBright32iA JR-BOT will move forward continuously until it encounters a black line. The robot will stop moving and make a sound indicating that the line has been detected as shown in Figure A6-3.
  • Page 55 Figure A6-4 (c). A6.3.2 About the code for controlling the robot The program that controls the KidBright32iA JR-BOT robot to follow a line without intersections is demonstrated in Program A6-2 This example modifies the...
  • Page 56 Program A6-2 : The simple code for KidBright32iA JR-BOT to move along the line Left To turn left, use the function to control the left motor to stop while the right motor rotates in the forward direction. Right To turn right, use the function to control the right motor to stop while the left motor rotates in the forward direction.
  • Page 57 (2) Upload the program to the KidBright32iA JR-BOT robot. Once uploaded, disconnect the USB-C cable. (3) Place the KidBright32iA JR-BOT robot across the black line of the testing field that created in Activity 6-1. (4) Adjust the position of two ZX-03 sensor boards that act as line detectors to spread out from the edge of the black line by about 0.5 cm on each side.
  • Page 58 Activity 6-4 Line following robot with intersections A6.4.1 Concept of the operation The operation of the line tracking robot when it detect the intersection is demonstrated in Figure A6-6. Figure A6-6 Example of robot operation when encountering intersection line on the movement path, the robot will have 4 options to operate.
  • Page 59 A6.4.2 About the coede operation The code to control the KidBright32iA JR-BOT robot to move along a line with an intersection is shown in Program A6-3. The whole picture is similar to Program A6-2. The final addition is the else if statement block.
  • Page 60 USB-C cable connected to the computer. (3) Stick the black tape to add an intersection on the testing field. Place the KidBright32iA JR-BOT robot across the black line of the testing field as shown in Figure A6-7.
  • Page 61 The robot moves across the intersection line KidBright32iA JR-BOT robot starts to moves along the line The robot makes a sound when detects the intersection Figure A6-8 shows the operation of KidBright32iA JR-BOT robot when running the Program A6-3.
  • Page 64 Equipped with wheels and tires for movement and independent wheels for balance. On-board Light and Temperature sensor Mount the Ultrasonic sensor for object and distance sensing Mount the IR reflector for detection surface and line www.inex.co.th...

Table of Contents