Chapter 0 Software Installation and Assembly
If you haven’t downloaded the sources for the robot ant, you can download them via the link below: https://github.com/Freenove/Freenove_Robot_Ant_Kit
01 Installation of CH340
We upload code to the control board through CH340. Therefore, we need to install the driver for CH340 first.
Windows
Check whether CH340 has been installed to your computer.
Connect the control board with a Type-C cable.
Back to the computer homepage, right-click on “This PC” and select “Manage”.
Click “Device Manage” on the pop-up window. If CH340 has been installed to your computer, you can see “USB-SERIAL CH340 (COMx)”.
Note
Only when the control board has connected with computer will “USB-SERIAL CH340 (COMx)” show up.
If you have installed CH340, you can skip to next step.
If you haven’t, please install it as follows.
Install CH340 Driver
Click http://www.wch-ic.com/search?q=CH340&t=downloads to go to the downloading website of CH340. Choose a proper CH340 driver based on your operating system.
If you don’t feel like downloading CH340 driver from the official website, you can also open the folder “Freenove_Robot_Ant_Kit/CH340”. We’ve prepared it for you in advance.
Open the folder “Freenove_Robot_Ant_Kit/CH340/Windows/”.
Double click to open “CH341SER.EXE”.
Click “INSTALL” and wait for the installation to finish.
When the following interface appears, it means the installation is successful. You can close it.
Connect the control board and computer with a type-C cable, when clicking “Device Manager” again, you will see “USB-SERIAL CH340 (COMx)” under “Ports (COM & LPT)”. Click here to skip to next step.
So far, CH340 has been installed. You can close all windows.
Mac
Click http://www.wch-ic.com/search?q=CH340&t=downloads to go to the downloading website of CH340. Choose a proper CH340 driver based on your operating system.
If you don’t feel like downloading CH340 driver from the official website, you can also open the folder “Freenove_Robot_Ant_Kit/CH340”. We’ve prepared it for you in advance.
Open “Freenove_Ant_Kit/CH340/MAC/”.
Click on Continue.
Click on Install.
Wait for the installation to finish.
Restart your computer.
If you fail to install CH340 follwing the steps above, please refer to ReadMe.pdf.
02 Installation of Arduino IDE
Arduino Software (IDE) is used to write and upload the code for Arduino Board.
First, install Arduino Software (IDE): visit https://www.arduino.cc/en/software/
Select and download corresponding installer based on your operating system. If you are a Windows user, please select the “Windows” to download and install the driver correctly.
After the downloading completes, run the installer. For Windows users, there may pop up an installation dialog box of driver during the installation process. When it is popped up, please allow the installation.
After installation is completed, an shortcut will be generated in the desktop.
Run it. The interface of the software is as follows:
Programs written with Arduino IDE are called sketches. These sketches are written in a text editor and are saved with the file extension.ino. The editor has features for cutting/pasting and for searching/replacing text. The console displays text output by the Arduino IDE, including complete error messages and other information. The bottom right-hand corner of the window displays the configured board and serial port. The toolbar buttons allow you to verify and upload programs, open the serial monitor, and access the serial plotter.
|
Verify Checks your code for errors compiling it. |
|
Upload Compiles your code and uploads it to the configured board. |
|
Debug Troubleshoot code errors and monitor program running status. |
|
Serial Plotter Real-time plotting of serial port data charts. |
|
Serial Monitor Used for debugging and communication between devices and computers. |
03 Installation of Libraries
In this tutorial, we use serveral libraries: Servo, UltrasonicSensor, Freenove_VK16K33_Lib and Freenove_WS2812_RGBLED_Controller respectively. Before running the sketches we provide, please make sure all the libraries have been installed. Otherewise, they may fail to run.
Open Arduino IDE, click on Sketch on Menus, select Include Library and then click on Manage Libraries….
On the pop-up window, input Servo and press Enter. Select the Servo library as marked below and click to install.
After Servo library installs successfully, go on to input the name of the next library, that is, UltrasonicSensor and then install it.
After finishing installation, install the next library Freenove_WS3212B_RGBLED_Controller in the same way.
There is also another way to install libraries.
Click on Sketch on Menus, select Include Library, and then click on Add .ZIP Libraries….
On the pop-up window, select the source pakage Freenove_Robot_Ant_Kit/Library/Freenove_VK16K33_Lib.zip and click on Open.
04 Control board
DC005: Powered by 2 18650 batteries. Supports 7-12V power supply.
Power button: Uses digital chip circuits to control the power’s ON and OFF. It’s more durable than traditional switches.
Reset button: Reset the control board.
Passive buzzer: Controlled by D5 pin on ArduiNo.
Servo: Controlled by D2, D3 and D4 on Arduino with D2 connecting to Servo1, D3 connecting to Servo2 and D4 connecting to Servo3.
ISP connector: Uses ISP to download programmer to download code.
Ultrasonic connector: If you use ultrasonic module for the ant’s head, please connect it to this port. Connect D8 of the Arduino to Trig pin of ultrasonic module and D7 to Echo.
USB port: Connect computer and control board with a type-C cable to download programs.
Indicators: Used to indicates whether the board is powered and the status of the serial port.
Bluetooth connector: Plug the Bluetooth module HC-05 to this port. Note: The Bluetooth module should orient to the control board.
LED matrix connector: If you use LED matrix for the ant’s head, please connect it to this port.
RGB LED module: the IIC port to connect to RGB LED module.
The pinout of the control board is as below:
Pins |
Functions |
Introduction |
|---|---|---|
0 |
Uart-RX |
Bluetooth module. Please remove it when uploading code. |
1 |
Uart-TX |
|
2 |
Servo1 |
Servo motors |
3 |
Servo2 |
|
4 |
Servo3 |
|
5 |
Buzzer |
Buzzer |
6 |
Extension IO |
|
7 |
Ultrasonic-Echo |
Ultrasonic module |
8 |
Ultrasonic-Trig |
|
9 |
Infrared receiving pin |
Infrared module |
10 |
Extension IO |
|
11 |
ISP/Extension IO |
|
12 |
ISP/Extension IO |
|
13 |
ISP/Extension IO |
|
A0 |
Battery Voltage Pin |
Detect voltage of batteries(1/4) |
A1 |
AREF Pin |
Detect voltage of AREF pin |
A2 |
5V Voltage Pin |
Detect 5V voltage(1/4) |
A3 |
3.3V Voltage Pin |
Detect 3.3V Voltage(1/4) |
A4 |
IIC-SDA |
WS2812 RGB LED module/LED Matrix (Expression module) |
A5 |
IIC-SCL |
05 Component List
Before assembly, please compare the list with the kit you receive to make sure that no item is missed or damaged. Should this happens, please send emails to us: support@freenove.com, we will offer solution.
Acrylic parts
|
|||
Servo *3
|
Expression Module *1
|
||
8-digit RGB LED Module *1
|
I2C RGB LED Control Module *1
|
||
Ultrasonic Module *1
|
Bluetooth Module *1
|
||
Infrared Remote Controller *1
|
Battery Holder *1
|
||
Control board *1
|
|||
4P F-F Jumper Wires 20cm *3
|
|||
3P F-F Jumper Wires 20cm *1
|
|||
Tidy Cable 15cm *1
|
Type-C USB Cable *1
|
Metal cross sleeve *1 |
|
Machinery Parts
|
|||
Cross Screwdriver (3mm) *1
|
Cross Screwdriver (2mm) *1
|
PVC rubber sheath *8
|
|
Required but NOT Contained Parts 2 x 3.7V 18650 lithium rechargeable batteries with continuous discharge current >3A. Please refer to AboutBattery.pdf to purchase the batteries.
|
|||
06 Assembly
Set Servo Gear to 90°
Before installing the legs, please set the servos to 90°. Only after doing this can you assemble the robot ant correctly.
Step 1: Connect the control board and computer with a type-C cable.
Step 2: Open the file 00.Servo_90.ino in Freenove_Robot_Ant_Kit\Sketches\00.Servo_90.
Step 3: Click on Tools and then select “Arduino Uno” for Board and port COMx for port. In our computer, the port is COM3.
Note:
Generally, COM1 is not the port of development board, so please do NOT choose it.
The x of COMx varifies among different computers. If you cannot find your port, please check whether CH340 has been installed or whether the board has connected to PC.
Step 4: Click to download Code (Upload Using Programmer).
Step 5. Plug the power cord from the battery holder into control board.
Step 6. Connect 3 servos to the control board and press the power button.
Step 7: When you see the power indicator on the board light up, and all the 3 servos rotate to a specific position and remain still, it means you have set the servos to the middle position. At this point, you can assemble the legs.
If the servos have been at that position, you won’t observe anything.
Assembly of Legs
Use 4 M4*14 screws and 4 M4 nuts to fix a servo to No.6 acylic part.
|
Fix 3 servos to No.1 acrylic part. (8 M4*14 screws, 8 M4 nuts, 2 M3*12 screws and 2 M3 nuts)
On the left is the plan view of the acrylic part. On the right is its perspective view. |
Use 4 tappping screws to fix the disc servo arms to two No.4 acrylic parts. Note: Tapping screws, disc servo arms and servos are packed in the servo package, please don’t use wrong ones. It is a bit strenuous to make the disc servo arm fix tightly, which is normal.
|
Use 2 tapping screws to fix the disc servo arms to No.3 acrylic part. Note: Tapping screws, disc servo arms and servos are packed in the servo package, please don’t use wrong ones. It is a bit strenuous to make the disc servo arm fix tightly, which is normal.
|
Use 4 M3*12 screws and 4 M3 nuts to fix 4 No.5 acrylic parts to 2 No.4 acrylic parts.
|
Use 3 servo arm screw to fix 3 servos to No.3 acrylic part and 2 No.4 acrylic parts respectively. Note: servo arm screws are packed with the servos. Don’t use wrong ones.
|
When finish assembly, from the top view, it looks as below:
|
Assembly of Battery Holder
Use 4 M3*10 screws and 4 M3 nuts to fix the 18650 battery holder to the back of No.1 acrylic part.
The left is the bottom view and the right is the top view |
Assemby of the Control board
Use 4 M3*8 screws to fix 4 M3*10 brass standoffs to No.1 acrylic part. (Top view)
|
Use 4 M3*8 screws to fix the control board to the brass standoffs.
|
Pay attention to the orientation of the control board. (Top view)
|
Assembly of the WS2812 LED Module
Use 8 M3*10 screws and 8 M3 nuts to fix the LED module and LED control module to No.2 acrylic parts.
Bottom view:
Top view:
Perspective: |
Wirng of RGB LED module to its control module
|
Assembly of the Body
Use 4 M3*8 screws to fix 4 M3*40 brass standoff to No.1 acrylic part. (Top view)
|
Use 4 M3*8 screws to fix No.2 acrylic part to the standoffs. (Top view) Pay attention to the orientation of No.2 acrylic parts.
|
Wirng of the LED control module to control board
|
Assembly of the Head
Use 4 M1.4*5 tapping screws to fix the ultrasonic module to No.7 acylic part.
|
Use 4 M1.4*5 tapping screws to fix the expression module to No.8 acrylic part.
|
Use a M3*12 screw and a M3 nut to fix No.7 or No.8 acrylic part to No.1 acrylic part.
|
Wiring of ultrasonic module to control board
|
Wiring of the expression module to control board.
|
07 Test
1, Connect the control board and computer with a type-C cable.
2, Open 10.Multifunctional_Ant.ino in Freenove_Robot_Ant_Kit\Sketches\10.Multifunctional_Ant. Click to download the code to control board.
3, When the code is downloaded successfully, you can unplug the cable.
Note
Remember to remove Bluetooth module every time when you upload code; Otherwise the uploading will fail.
4, Plug in the Bluetooth module. Please pay attention to the orientation of the Bluetooth module.
5, Turn ON the power. When you hear a beep from buzzer, it means that the robot ant is ready. You can control it through the phone APP.
App download address: https://github.com/Freenove/Freenove_app_for_Android
You can also control the robot with Infrared remote controller.















































