ACEBOTT Education Solution Series Programming Manual

Smart factory education kit level 1
For more information, please visit acebott.com
Hide thumbs Also See for Education Solution Series:

Advertisement

Quick Links

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Education Solution Series and is the answer not in the manual?

Questions and answers

Summary of Contents for ACEBOTT Education Solution Series

  • Page 3: Table Of Contents

    Contents Chapter 1 Smart Factory ..................... 1 Section 1 Overview of Smart Factories ................2 Section 2 Brain of Smart Factory ...................12 Chapter 2 Workers of the Smart Factory ................. 29 Section 1 Robotic Arm "Worker" ..................30 Section 2 Joint Motion of Robotic Arm ................38 Section 3 Speed Control of Robotic Arm ...............
  • Page 5: Chapter 1 Smart Factory

    Smart Factory Chapter 1 Smart Factory As technology advances rapidly, society's production methods are undergoing a profound transformation. The operation of factories is gradually shifting from traditional manual labor to a new era of intelligence. The rise of smart factories has significantly enhanced production efficiency and product quality, leading the manufacturing industry into a new chapter.
  • Page 6: Section 1 Overview Of Smart Factories

    Smart Factory Section 1 Overview of Smart Factories Understand the functions and roles of a factory.  Understand the concept of a smart factory.  Understand the key technologies of smart factories.  Understand the development history of smart factories. ...
  • Page 7 Smart Factory Factories, as symbols of modern industrial civilization, use efficient and precise production processes to enable the large-scale and high-efficiency manufacturing of goods. This not only increases the output of products but also ensures their quality in detail. The production of goods in factories generally follows the following processes: Product Design: Design the product's functions, appearance, and structure based on market demand.
  • Page 8 Smart Factory completed manually, often leading to issues such as low efficiency, inconsistent product quality, and high costs. As technology continues to advance, more and more factories have undergone automation and intelligent upgrades, significantly improving production efficiency and product quality. So, what exactly is a smart factory? A smart factory refers to a modernized factory that uses advanced technologies and automation systems to connect various stages of the manufacturing...
  • Page 9 Smart Factory 3. Resource Savings: Through intelligent production and management, energy and material resources can be significantly reduced, lowering production costs and environmental impact, and achieving green production. A smart factory is more than just simple automation; it integrates a variety of cutting-edge technologies such as robotics, the Internet of Things (IoT), big data, artificial intelligence (AI), and cloud computing to create an intelligent, interconnected production environment.
  • Page 10 Smart Factory 1. Robotics: Robots are crucial automation equipment in smart factories, responsible for handling complex tasks. They can autonomously complete repetitive, high-precision tasks such as welding, assembly, and material handling. Additionally, they can work collaboratively with human workers, enhancing production flexibility and efficiency.
  • Page 11 Smart Factory 3. Artificial Intelligence (AI): AI technologies, such as image recognition and machine learning, play a critical role in smart factories. They significantly enhance production efficiency, product quality, and resource utilization. Through predictive maintenance, intelligent scheduling, quality control, supply chain optimization, energy management, and smart robotics, AI enables the automation, intelligence, and optimization of the production process.
  • Page 12 Smart Factory The development of smart factories is closely linked to the advancement of science and technology. Its history can be traced back to various stages of the Industrial Revolution, with each stage injecting new energy and possibilities into its evolution. The First Industrial Revolution (Late 18th Century - Mid-19th Century): The First Industrial Revolution began in the United Kingdom.
  • Page 13 Smart Factory The Third Industrial Revolution (Mid-20th Century - Late 20th Century): The Third Industrial Revolution was centered around the rapid development electronic computers, integrated circuits, and information technology. This revolutionary progress not only marked the beginning of the automation era but also ushered in the wave of the information age.
  • Page 14 Smart Factory The development of smart factories reflects the history of humanity’s continuous exploration and innovation in manufacturing. From the transitions of mechanization and electrification to digitalization and intelligence, smart factories have evolved, bringing about profound changes in production methods and efficiency, and becoming a new milestone in the manufacturing industry.
  • Page 15 Smart Factory What does your ideal smart factory look like? Please describe your ideal smart factory below, listing the technologies it uses and how these technologies help the factory achieve efficient production. Additionally, please draw a simple diagram of your smart factory below, labeling the key components.
  • Page 16: Section 2 Brain Of Smart Factory

    Smart Factory Section 2 Brain of Smart Factory Understand the functions of the ESP32 controller board.  Learn how to use the ESP32 controller board.  Learn how to install the ACECode.  Write your first ACECode program.  Learn how to upload a program to the ESP32. ...
  • Page 17 Internet of Things (IoT) applications, embedded system development, and project implementations. Below is the schematic diagram of the ACEBOTT-ESP32 controller board: Power input: It can be connected with 7.2V-15V power supply to...
  • Page 18 Step 1: Download the ACECode installation program from the official web site. Log in to the official website of ACECode: https://www.acebott.com/p ages/software, enter the software download interface, select the ACECode software version for Windows system, and click Download ACECode to...
  • Page 19 ACECode software. Please make sure that the software version you use meets the requirements; 3. If you need to update the ACECode software version, you can go to the ACEBOTT official website: https://www.acebott.com/pages/software to download the latest ACECode software version.
  • Page 20 Smart Factory Step 2: Double-click the downloaded installer and follow the instructions to install ACECode. Here we take the installation under Windows system as an example for demonstration. 1.After the download is complete, the installation package file will appear as shown in the figure.
  • Page 21 Smart Factory 4.The installation is complete. 5.Find the shortcut of ACECode on the desktop and double-click to open ACECode.
  • Page 22 Smart Factory Step 3:Install the serial driver (skip it if installed) 1.Open ACECode, click on the serial port connection button, and in the pop-up options, select "One-click to install serial driver." After clicking, it will sequentially install the serial port drivers required for the two controller boards supported by ACECode, ESP8266 and ESP32.
  • Page 23 Smart Factory 3.After clicking "I accept this agreement" click "Next" again. 4.Click "Finish", the first driver installation is complete.
  • Page 24 Smart Factory 5.Next, a pop-up window for the installation of the second driver will appear; click "Install." 6.After the installation is completed, a message indicating that the installation was successful will be displayed.
  • Page 25 Smart Factory Step 4: Connect ACECode and ESP32 controller board 1.In the ACECode controller board list, select the ESP32 controller board. The software selects ESP32 by default. 2.Find the serial communication connection button in the ACECode interface. The connection status of the serial communication will be displayed on the button.
  • Page 26 Smart Factory information of the connected port. 4.Currently, ACECode supports two development modes: online mode and upload mode. The online mode supports online debugging, which can debug the program in real time, which is convenient and fast; the upload mode is to upload the written program to the ESP32 (or other controller board) controller board.
  • Page 27 Smart Factory Smart Factory Lab Program debugging and uploading Project Description Experience the debugging and uploading of the program to make the built-in LED light on the ESP32 complete the on-off effect. Hardware Scheme 1. Hardware List Picture Name Quantity ESP32 Board Type-C Data Cable...
  • Page 28 Smart Factory Programming 1. Program Flowchart...
  • Page 29 Smart Factory 2.Online Mode (1)Write the following code in online mode to make the built-in LED light on ESP32 flash. Note:1.The LED light is integrated on the ESP32 controller board and connected to I/O port 2. The effect of this instruction can make the LED light flash for 1 second on and 1 second off.
  • Page 30 Smart Factory 3.Upload Mode (1)After debugging is completed, switch to "upload mode" and change the program startup command to "start the program". In "upload mode", you need to use this command to start the program. (2)At this point, you can see that in ACECode's "Upload Mode", the corresponding C language code and Python code will be generated synchronously to meet the different needs of users.
  • Page 31 Smart Factory (3)Click the "Upload" button to upload the program. When the upload progress reaches 100%, it is successful. After the upload is successful, the program can be run on the ESP32 controller board without the computer, that is, you can unplug the data cable and let the program run independently on the ESP32 (connect the ESP32 to an external power supply).
  • Page 32 Smart Factory 4.Instruction Parsing :This command is located in the "Events" instruction module within the "Upload Mode." It serves as the initiation command for the entire program, and you can write the program below it. :This instruction is located in the "Robots" instruction module.
  • Page 33: Chapter 2 Workers Of The Smart Factory

    Smart Factory Chapter 2 Workers of the Smart Factory In traditional factories, manual labor has long been dominant, but this approach often comes with various production issues. With the rise of smart factories, robots have gradually begun to replace human workers, significantly improving production efficiency and quality.
  • Page 34: Section 1 Robotic Arm "Worker

    Smart Factory Section 1 Robotic Arm "Worker" Understand the concept of a robotic arm.  Understand the structure of a robotic arm.  Understand the applications of robotic arms.  Build your own robotic arm.  In the development of smart factories, the presence of human workers is gradually fading, replaced by highly efficient and precise robots and automated equipment.
  • Page 35 Smart Factory modern productivity tools, robotic arms are undoubtedly the most common form. So, let's dive in and explore how robotic arms work. A robotic arm is an automated device that mimics the movements of a human arm and can perform various operational tasks. It typically consists of the following parts: 1.
  • Page 36 Smart Factory Robotic arms come in many structural types, and based on different structures and motion spaces, they can be classified into Cartesian, cylindrical, spherical, SCARA, and anthropomorphic (articulated) types. Here, we mainly introduce the anthropomorphic robotic arm. The geometric configuration of an anthropomorphic robotic arm is achieved through three rotating joints.
  • Page 37 Smart Factory Robotic arms are widely used in modern industry and daily life. Here are some of the main application areas: 1. Manufacturing: Robotic arms can perform high-precision welding tasks, ensuring consistent welding quality reducing errors caused by manual operations. They can also be used for assembly tasks, assembling complex components to improve production efficiency.
  • Page 38 Smart Factory play a crucial role in rehabilitation centers. For patients with motor function impairments due to illness or injury, robotic arm-assisted rehabilitation systems can help them with their rehabilitation exercises. 3. Food Service: Robotic arms can take on various tasks in the kitchen, such cooking plating, significantly...
  • Page 39 Smart Factory robotic arms can be used for precise planting and fertilizing, enhancing the level of automation in agricultural production. The RobotArm used in this tutorial is a four-degree-of-freedom (4-DOF) robotic arm, with four servos driving the base, shoulder, elbow, and end-effector (hand gripper) joints.
  • Page 40 Smart Factory Smart Factory Lab Build Your Robotic Arm Project Description Follow the assembly steps in the building document to construct your own robotic arm. Hardware Scheme 1.Hardware List Picture Name Quantity ESP32 Board ESP32 Expansion Board MG90S Servo Type-C Data Cable...
  • Page 41 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 1 of the assembly document, titled "01 Build Your Robotic Arm." 3.Hardware Wiring...
  • Page 42: Section 2 Joint Motion Of Robotic Arm

    Smart Factory Section 2 Joint Motion of Robotic Arm Understand the working principle of a servo.  Master the control methods of a servo.  Understand the concept of variable.  Learn how to use variable.  Master the usage of the if statement. ...
  • Page 43 Smart Factory a robotic arm means controlling the movement of the motors on the arm. Depending on different functional requirements, the types of motors on a robotic arm may vary. In this tutorial, the motors driving the robotic arm are servos.
  • Page 44 Smart Factory 4. Control Circuit: The control circuit is the core part of the servo, responsible for receiving control signals and driving the motor. The control circuit typically includes a pulse-width modulation (PWM) receiver and a feedback control system. By comparing the signal from the position sensor with the target position signal, the control circuit generates an error signal and adjusts the motor's rotation direction and speed based on this error.
  • Page 45 Smart Factory and brown. The orange wire connects to the I/O pin of the ESP32, the red wire connects to 5V, and the brown wire connects to GND. There is a precise correlation between the joint movements of the robotic arm and the control of the servos, ensuring that each joint's movement is closely linked to its corresponding driving servo.
  • Page 46 Smart Factory A variable is a container in computer programming that can store data, and this data can change at any time. In ACECode programming, the usage of variables is as follows: (1) Select the variable instruction module and click on "Make a variable." At this point, the following prompt will appear, and you can name the variable according to its actual use.
  • Page 47 Smart Factory Additionally, in "online mode," you can display the current value of variables to facilitate debugging. Data Type: When creating variables, it is necessary to declare the data type that the variable will store. In the ACECode programming environment, basic data types include integer (integer), float(float), character (char), and string (string), etc.
  • Page 48 Smart Factory Variable Name: The variable name represents the meaning of the data stored in the variable and its location in memory. The variable name allows you to access and use these data in subsequent parts of the program. Variable Value: This refers to the data stored in a variable. The value of a variable can be updated and modified at any time to meet the needs of program execution.
  • Page 49 Smart Factory (2) The ‘if...else...’ statement instruction: The ‘if...else...’ statement is used for two opposing conditional scenarios. When the condition is true, execute the code block contained under ‘then’; otherwise, execute the code block contained under ‘else’. (3) If there are multiple conditions to be evaluated, multiple ‘if...else...’ statements can be combined and used together.
  • Page 50 Smart Factory Smart Factory Lab Joint Motion of Robotic Arm Project Description Input a command from the keyboard to control the movement of the robotic arm's joints to the corresponding position. Hardware Scheme 1.Hardware List Picture Name Quantity ESP32 Board ESP32 Expansion Board MG90S Servo...
  • Page 51 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 2 of the assembly document, titled "02 Joint Motion of Robotic Arm." 3.Hardware Wiring...
  • Page 52 Smart Factory Programming 1. Program Flowchart...
  • Page 53 Smart Factory 2. Coding...
  • Page 54 Smart Factory...
  • Page 55 Smart Factory 3. Instruction Parsing : This instruction is in the "Robots" command module. It controls the servo motor's shaft to rotate to a specified angle position. The drop-down box allows you to select the corresponding pin, and the input box is for the target value to which the servo motor should rotate.
  • Page 56: Section 3 Speed Control Of Robotic Arm

    Smart Factory Section 3 Speed Control of Robotic Arm Understand the factors affecting servo motor speed.  Understand the concept of iteration.  Master the use of “repeat until…”.  Master the methods for controlling the speed of the robotic arm. ...
  • Page 57 Smart Factory The motion process of a servo involves rotating the servo shaft from an initial angle to a target angle. To slow down this motion, we can divide it into multiple steps and execute them progressively. The number of steps depends on the step size setting;...
  • Page 58 Smart Factory interval increases, the rotation speed of the servo decreases correspondingly, while a shorter time interval results in a faster rotation speed. 0° 1° 89° 90° 2° delay = 10ms 10ms 10ms 10ms Original Angle Target Angle The process of servo stepwise movement is essentially an iterative process. Each step involves rotating by a fixed step size from the previous step, and this process is repeated until the servo reaches the target angle.
  • Page 59 Smart Factory command used to repeatedly execute a block of code. Its basic usage is as follows: Hexagonal input box: The condition expression input box checks the value of the expression in the box before each loop iteration. If the value is false, the loop continues to execute the code contained within the command.
  • Page 60 Smart Factory Smart Factory Lab Control Speed of Robotic Arm Project Description Control the rotation speed of the robotic arm to make its movement smoother and more fluid. Hardware Scheme 1.Hardware List Picture Name Quantity ESP32 Board ESP32 Expansion Board MG90S Servo Type-C Data Cable...
  • Page 61 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 3 of the assembly document, titled "03 Control Speed of Robotic Arm." 3.Hardware Wiring...
  • Page 62 Smart Factory Programming 1. Program Flowchart...
  • Page 63 Smart Factory 2. Coding...
  • Page 64 Smart Factory...
  • Page 65 Smart Factory...
  • Page 66 Smart Factory...
  • Page 67 Smart Factory...
  • Page 68: Section 4 Smart Handling

    Smart Factory Section 4 Smart Handling Master the method of using a robotic arm to handle objects.  Understand the concept of function.  Master the usage of functions.  What can a robotic arm do in smart factory? In a factory, robotic arms can perform various tasks to enhance production efficiency, precision, and safety.
  • Page 69 Smart Factory Welding: In automotive and metal processing industries, robotic arms can perform welding tasks, ensuring the quality and consistency of weld points. Handling: Robotic arms can move heavy or hazardous items, reducing the labor intensity and risk for workers. This is widely used in warehousing and logistics.
  • Page 70 Smart Factory In ACECode, you can encapsulate a block of code that can perform a specific task and can be reused into a block, and then call the code encapsulated within it by using a My Block in the main program. This can improve the readability of the program and the efficiency of programming.
  • Page 71 Smart Factory After creating a block, a "Define chassisCmd" block will appear in the programming area, where you can write the code contained in the my block. If you need to use its parameters, you can drag the parameters down from the block definition to use them.
  • Page 72 Smart Factory Smart Factory Lab Smart Handling Project Description Control the robotic arm to automatically transport an object from point A to point B. Hardware Scheme 1.Hardware List Picture Name Quantity ESP32 Board ESP32 Expansion Board MG90S Servo Type-C Data Cable...
  • Page 73 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 4 of the assembly document, titled "04 Smart Handling." 3.Hardware Wiring...
  • Page 74 Smart Factory Programming 1. Program Flowchart...
  • Page 75 Smart Factory 2. Coding...
  • Page 76 Smart Factory...
  • Page 77 Smart Factory...
  • Page 78: Section 5 Robotic Arm Coordinate Control

    Smart Factory Section 5 Robotic Arm Coordinate Control Understand the concept of the Cartesian coordinate system.  Familiarize the methods for representing the end-effector's spatial  coordinates of a robotic arm. Understand the concepts of forward and inverse kinematics.  Master the use of spatial coordinates to control the motion of the robotic ...
  • Page 79 Smart Factory The Cartesian coordinate system is a mathematical system used to describe the position of points in two-dimensional or three-dimensional space. It consists of perpendicular coordinate axes through which the position of each point can be defined. 1. Two-Dimensional Cartesian Coordinate System The two-dimensional Cartesian coordinate system is composed of two perpendicular axes: the X-axis (horizontal axis) and the Y-axis (vertical axis).
  • Page 80 Smart Factory 2. Three-Dimensional Cartesian Coordinate System The three-dimensional Cartesian coordinate system consists of three perpendicular axes: the X-axis, Y-axis, and Z-axis. The Z-axis is perpendicular to the plane formed by the X-axis and Y-axis, representing the height in space. The point where all three axes intersect is called the origin, denoted as O.
  • Page 81 Smart Factory In the coordinate system above, the position of the robotic arm's end effector in the actual space is represented by (x, y, z), with distance units in centimeters. How does the robotic arm reach the corresponding spatial coordinate position? Since the movement of the robotic arm's end effector is achieved by controlling the rotation angles of the joint servos, to make the robotic arm reach a specific point in the Cartesian coordinate system, it is necessary to determine the...
  • Page 82 Smart Factory Forward Kinematics Algorithm: Given the angles of each joint servo, this algorithm calculates the position and orientation of the robotic arm's end effector in the Cartesian coordinate system. Inverse Kinematics Algorithm: Given the coordinates of the robotic arm in the Cartesian coordinate system, this algorithm calculates the corresponding angles for each joint servo.
  • Page 83 Smart Factory Smart Factory Lab Coordinate Control Robotic Arm Project Description Control the robotic arm to automatically transport an object from point A to point B using spatial coordinates. To make controlling the robotic arm's movement using spatial coordinates more intuitive and convenient, this course will provide a coordinate map as a spatial reference.
  • Page 84 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 5 of the assembly document, titled "05 Coordinate Control Robotic Arm." 3.Hardware Wiring...
  • Page 85 Smart Factory Programming 1. Program Flowchart...
  • Page 86 Smart Factory 2. Coding...
  • Page 87 Smart Factory 3. Instruction Parsing : Due to the structure of the robotic arm and the precision of the motors, there will be positional errors during the movement of the robotic arm. This command is used to adjust the angle error of the base, thereby making the spatial coordinate values more accurate.
  • Page 88 Smart Factory : This command is used to move the end of the robotic arm to a specified coordinate position in space, where x is the X-axis coordinate value, y is the Y-axis coordinate value, and z is the Z-axis coordinate value.
  • Page 89: Section 6 Robotic Arm Palletizing

    Smart Factory Section 6 Robotic Arm Palletizing Understand the role of palletizing.  Comprehend the algorithm for robotic arm palletizing.  Learn to implement intelligent palletizing with a robotic arm through  programming. In a factory, to optimize the storage and transportation efficiency of goods, they are often carefully...
  • Page 90 Smart Factory time-consuming, labor-intensive, and limited in efficiency. However, in smart factories, palletizing can now be automated by advanced robotic arms, significantly improving work efficiency and accuracy. The basic principle of robotic palletizing is to programmatically control the robotic arm's movements to transport items from one location to a designated position and stack them according to a predetermined order and layering.
  • Page 91 Smart Factory 2. Grasp: The end effector (such as a gripper) grabs the item, ensuring it is secure. 3. Transport: The robotic arm moves the grabbed item to the designated palletizing position. 4. Place: The robotic arm places the item according to the predetermined stacking order and layers.
  • Page 92 Smart Factory Smart Factory Lab Robotic Arm Palletizing Project Description Program the robotic arm to accurately move the object from position A to position B and perform vertical stacking to ensure that the objects are securely arranged together. Hardware Scheme 1.Hardware List Picture Name...
  • Page 93 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 6 of the assembly document, titled "06 Robotic Arm palletizing." 3.Hardware Wiring...
  • Page 94 Smart Factory Programming 1. Program Flowchart...
  • Page 95 Smart Factory 2. Coding...
  • Page 96 Smart Factory...
  • Page 97: Section 7 Remote Control Of Robotic Arm

    Smart Factory Section 7 Remote Control of Robotic Arm Understand the working principle of the joystick module.  Master the use of the joystick module.  Understand the concept of I2C.  Implement robotic arm control through the joystick.  complex, dynamic, uncertain...
  • Page 98 Smart Factory decisions and adjustments based on the current conditions, thereby avoiding operational mistakes caused by environmental changes or unexpected situations. There are various ways to implement remote control of a robotic arm. In this lesson, we will use a joystick module to achieve remote control of the robotic arm.
  • Page 99 Smart Factory high-level signal. Joystick Module - Pin Analyse SW: The button signal output, connects to the I/O pin of the controller board. Y: Y-axis signal output pin,connects to the I/O pin of the controller board. X: X-axis signal output pin,connects to the I/O pin of the controller board.
  • Page 100 Smart Factory When using the IIC interface, you need to connect four wires: VCC, GND, SDA, and SCL. Among these, SDA and SCL occupy GPIO pins and can be connected to any corresponding IIC interface pins on the controller. SCL is the clock line that controls the timing, while SDA is the data line for transmitting data.
  • Page 101 Smart Factory Smart Factory Lab Remote Control Of the Robotic Arm Project Description Create a remote controller using a joystick module, and use the controller to operate the movement of the robotic arm. Hardware Scheme 1.Hardware List Picture Name Quantity ESP32 Board ESP32 Expansion Board MG90S Servo...
  • Page 102 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 7 of the assembly document, titled "07 Remote Control of Robotic Arm." 3.Hardware Wiring...
  • Page 103 Smart Factory Programming 1. Program Flowchart...
  • Page 104 Smart Factory 2. Coding...
  • Page 105 Smart Factory...
  • Page 106 Smart Factory...
  • Page 107 Smart Factory...
  • Page 108 Smart Factory...
  • Page 109 Smart Factory 3. Instruction Parsing :This command is in the "Robots" instruction module, and it can obtain the value of the joystick module connected to the 12-bit ADC module.
  • Page 110: Chapter 3 Smart Assembly Line

    Smart Factory Chapter 3 Smart Assembly Line In factories, assembly lines are indispensable. They break down the entire production process into multiple steps, each managed by specialized workers. This reduces waiting times and unnecessary movement during production, thus enhancing efficiency. Within the assembly line operations, the conveyor system is the core equipment, capable of handling tasks such as material transport, product sorting, and quality inspection.
  • Page 111: Section 1 Conveyor

    Smart Factory Section 1 Conveyor Understand what an assembly line is.  Understand the function of conveyor.  Comprehend the structure and basic principles of conveyor belts.  Understand the principles of DC motors.  Learn how to use DC motors to drive conveyor belts. ...
  • Page 112 Smart Factory production. The main characteristics of an assembly line are its high degree of automation and efficiency, enabling large-scale production. On an assembly line, products are primarily transported using a conveyor system. The conveyor moves products from one stage of production to the next, facilitating an automated and continuous production process.
  • Page 113 Smart Factory 2. Transmission System: Typically consists of rollers. As the rollers rotate, the friction between them and the conveyor belt causes the conveyor belt to move in a cycle on a fixed track. 3. Drive Device: Generally composed of a motor, reduction gear, and coupling. ...
  • Page 114 Smart Factory A DC reduction motor is a motor device that combines a DC motor with a reduction gear. It increases the motor's torque by reducing its speed, thus allowing the motor to handle larger loads. It is widely used in industrial automation, robotics, household appliances, and other fields.
  • Page 115 Smart Factory motor. Therefore, a DC motor driver module is needed to facilitate the normal operation of the motor. A DC motor driver module is a circuit board specifically designed to control DC motors. It converts low-power control signals from microcontrollers (such as ESP32, Arduino, etc.) into high voltage and high current signals capable of driving DC motors.
  • Page 116 Smart Factory Smart Factory Lab Conveyor Control Project Description Follow the assembly steps in the building document to construct a conveyor belt and control it to start moving. Hardware Scheme 1.Hardware List Picture Name Quantity ESP32 Board ESP32 Expansion Board TT DC Motor DC Motor Driver Module Type-C Data Cable...
  • Page 117 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 8 of the assembly document, titled "08 Conveyor Control." 3.Hardware Wiring...
  • Page 118 Smart Factory Programming 1. Program Flowchart...
  • Page 119 Smart Factory 2. Coding...
  • Page 120 Smart Factory 3. Instruction Parsing : This command is within the "Robots" instruction module. It is used to set the motor's on and off state, and the corresponding pin must be selected from the dropdown box in the command.
  • Page 121: Section 2 Speed Control Of Conveyor

    Smart Factory Section 2 Speed Control of Conveyor Understand the concept of PWM (Pulse Width Modulation) signals.  Learn how to output a PWM signal.  Learn how to control the speed of a conveyor belt.  In factory assembly line operations, we often need to adjust the speed of the conveyor belt because different stages of the production line require varying...
  • Page 122 Smart Factory conveyor belt allows us to quickly respond to new demands, thus preventing production line stalls or backlog of items. So, how do we control the speed of the conveyor belt? Adjusting the speed of the conveyor belt essentially involves controlling the speed of a DC motor.
  • Page 123 Smart Factory voltage duration to the total cycle time. The duty cycle can vary from 0% (signal always at low level) to 100% (signal always at high level). By changing the duty cycle, the average voltage of the output signal can be controlled. In ACECode programming, instruction can be used to output a PWM signal to a TT motor, where the first two dropdown...
  • Page 124 Smart Factory Smart Factory Lab Speed Control of Conveyor Project Description Control the speed of the conveyor belt using keyboard keys, and divide the conveyor belt speed into three levels. Hardware Scheme 1.Hardware List Picture Name Quantity ESP32 Board ESP32 Expansion Board TT DC Motor DC Motor Driver Module Type-C Data Cable...
  • Page 125 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 9 of the assembly document, titled "09 Speed Control of Conveyor." 3.Hardware Wiring...
  • Page 126 Smart Factory Programming 1. Program Flowchart...
  • Page 127 Smart Factory 2. Coding...
  • Page 128: Section 3 Smart Conveyor

    Smart Factory Section 3 Smart Conveyor Understand infrared obstacle avoidance sensor.  Master the use of infrared obstacle avoidance sensor.  Build a smart conveyor using infrared obstacle avoidance sensor.  Our previously designed conveyor belt continues to operate even when there are no items on it, leading to several major issues: 1.
  • Page 129 Smart Factory 2. Equipment Wear: The mechanical components of the conveyor belt, including the motor, rollers, and belt, endure friction and stress during operation. Continuous operation without items can lead to excessive wear, thereby shortening the lifespan of the equipment. 3.
  • Page 130 Smart Factory reflected back by the surface of the object. The infrared receiver then captures the reflected light and converts the light signal into an electrical signal for output. The infrared obstacle avoidance sensor used in this lesson has a detection range of about 10cm.
  • Page 131 Smart Factory Smart Factory Lab Smart Conveyor Project Description Build a smart conveyor belt that automatically operates when there are objects on it and automatically stops when there are no objects. Hardware Scheme 1.Hardware List Picture Name Quantity ESP32 Board ESP32 Expansion Board TT DC Motor DC Motor Driver Module...
  • Page 132 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 10 of the assembly document, titled "10 Smart Conveyor". 3.Hardware Wiring...
  • Page 133 Smart Factory Programming 1. Program Flowchart...
  • Page 134 Smart Factory 2. Coding...
  • Page 135 Smart Factory 3. Instruction Parsing : This command is in the "Robots" instruction module. You can set the pin connected to the infrared obstacle avoidance sensor in the dropdown box. This command can detect whether the sensor has detected an obstacle. It returns True when an obstacle is detected, and False otherwise.
  • Page 136: Section 4 Smart Sorting

    Smart Factory Section 4 Smart Sorting Understand the role of smart sorting systems in assembly lines.  Learn the principles of color sensor.  Master the use of color sensor.  Learn how to build a smart sorting system.  In smart assembly lines, automatic product sorting plays a crucial role, significantly enhancing...
  • Page 137 Smart Factory assists in product quality inspection and sorting, ensuring that defective products are effectively filtered out. How are different types of products categorized? Smart sorting systems continuously monitor products passing on the assembly line using sensors, cameras, or other detection devices. These systems can identify various product characteristics, such as size, shape, color, weight, barcodes, and QR codes.
  • Page 138 Smart Factory is equipped with an I2C interface, which allows the measured data to be transmitted to the controller via I2C communication. The TCS3472 features a built-in infrared blocking filter to reduce the interference of infrared light on measurements, thereby enhancing measurement accuracy. This sensor also has an integrated LED light source, which can be controlled by a switch to provide illumination for color measurement, further improving accuracy.
  • Page 139 Smart Factory Smart Factory Lab Smart Sorting Project Description Use a conveyor belt to transport objects and sort them into different areas based on their color. Hardware Scheme 1.Hardware List Picture Name Quantity ESP32 Board ESP32 Expansion Board TT DC Motor DC Motor Driver Module Infrared Obstacle Avoidance Sensor...
  • Page 140 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 11 of the assembly document, titled "11 Smart Sorting". 3.Hardware Wiring...
  • Page 141 Smart Factory Programming 1. Program Flowchart...
  • Page 142 Smart Factory 2. Coding...
  • Page 143 Smart Factory 3. Instruction Parsing : This command is within the "Robots" instruction module. It can obtain the color and brightness values detected by the color sensor, and you can select different parameters by clicking on the dropdown box.
  • Page 144: Chapter 4 Smart Warehouse

    Smart Factory Chapter 4 Smart Warehouse The warehouse system is an indispensable part of a factory. It not only connects the production line, ensuring the timely supply of raw materials and components, but also directly faces the market. It needs to quickly respond to changes in customer orders and fluctuations in market demand to adjust product inventory.
  • Page 145: Section 1 Smart Storage

    Smart Factory Section 1 Smart Storage Understand the process of smart storage  Learn the principles of RFID technology.  Master the use of RFID module.  Build a smart warehousing system and implement smart storage.  warehousing operation smart warehousing refers to the process of receiving materials, semi-finished, or finished products from external sources and storing them safely...
  • Page 146 Smart Factory recognition to achieve efficient inventory management. Here is the basic process for smart warehousing: 1. Goods Receipt: Before goods arrive at the warehouse, the system already receives incoming stock information from suppliers or production lines, including details like the type, quantity, and batch of materials. Automated equipment is then used to transport the goods to the warehouse's receiving area.
  • Page 147 Smart Factory RFID, short for Radio-Frequency Identification, is an automatic identification technology that utilizes wireless radio signals to identify targets and retrieve relevant data. Its basic principle involves using electromagnetic fields and radio frequency communication to wirelessly transmit information stored in RFID tags to RFID readers, enabling tracking, identification, and management of target objects.
  • Page 148 Smart Factory RFID readers/writers is a device used to read and write data from RFID tags. It can send radio frequency signals and receive data returned by RFID tags, and interact with RFID tags through radio frequency communication. Readers typically include components such as antennas, RF modules, processors, etc., which can recognize RFID tags, read and write data.
  • Page 149 Smart Factory Smart Factory Lab Smart Storage Project Description The process of realizing intelligent warehousing involves using a conveyor belt for the transportation of items. The items are classified using an RFID module. When the items reach the receiving area, the robotic arm automatically grabs the items and places them on the corresponding location on the shelf.Use a conveyor belt to transport objects and sort them into different areas based on their color.
  • Page 150 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 12 of the assembly document, titled "12 Smart Storage". 3.Hardware Wiring...
  • Page 151 Smart Factory Programming 1. Program Flowchart...
  • Page 152 Smart Factory 2.Coding1-Get the tag ID on the block Tips The tag ID of each color block is not exactly the same, and there may be different.You can confirm the tag ID of each color block through this step, and record the ID displayed by the serial port monitor for the next project program.For example,I get the red tag ID: 4cbfe 21e1590;...
  • Page 153 Smart Factory 2. Coding2-Porject Coding...
  • Page 154 Smart Factory...
  • Page 155 Smart Factory...
  • Page 156 Smart Factory 3. Instruction Parsing : This command is within the "Robots" instruction module. It can obtain the RFID tag information read by the RFID sensor. If an RFID tag is read, it will return the UID of that tag. If no RFID tag is read, it will return a null value.
  • Page 157: Section 2 Smart Outbound Logistics

    Smart Factory Section 2 Smart Outbound Logistics Understand the process of outbound logistics in smart warehousing.  Learn the principles of a 4-digit keypad.  Master the use of a 4-digit keypad.  Smart warehousing outbound operations involve retrieving materials, semi-finished products, or finished products from storage locations and transporting them to production lines, shipping areas, or other specified...
  • Page 158 Smart Factory materials management. Here are the main steps in the outbound operations of smart warehousing: 1. Receiving Outbound Instructions: When shipments, production, or inventory transfers are needed, the system receives an outbound request. These requests may come from production plans, customer orders, or inventory scheduling needs within the warehouse management system.
  • Page 159 Smart Factory The 4-button module is an input device with four independent keys. When different keys are pressed by the user, the resistance values within the circuit change, leading to a change in the corresponding voltage output. Since this module outputs an analog signal, its signal pin must be connected to the analog input port of the controller.
  • Page 160 Smart Factory Smart Factory Lab Smart Outbound Logistics Project Description mplement the intelligent outbound process for smart warehousing. By pressing keys of different colors, the robotic arm picks up corresponding objects from the shelves and transports them to the shipping area. Hardware Scheme 1.Hardware List Picture...
  • Page 161 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 13 of the assembly document, titled "13 Smart Outbound Logistics". 3.Hardware Wiring...
  • Page 162 Smart Factory Programming 1. Program Flowchart...
  • Page 163 Smart Factory 2. Coding...
  • Page 164 Smart Factory...
  • Page 165 Smart Factory...
  • Page 166 Smart Factory 3. Instruction Parsing : This command is within the "Robots" instruction module. It allows you to determine whether a button on the 4-Button Module has been pressed, and you can select different buttons by clicking on the dropdown box.
  • Page 167: Section 3 Smart Warehousing Integrated System

    Smart Factory Section 3 Smart Warehousing Integrated System Understand the process of the Smart Warehousing Integrated System.  Learn the principles of the LCD1602 display.  Master the use of the LCD1602 display.  Build a smart warehousing system that integrates smart storage, smart ...
  • Page 168 Smart Factory enhance storage efficiency and accuracy. However, beyond implementing these basic functionalities, a smart warehousing system also needs the capability to monitor goods information in real-time. By monitoring goods information in real-time, the smart warehousing system can promptly access the latest status of inventory, ensuring the accuracy and timeliness of inventory data.
  • Page 169 Smart Factory The LCD1602 liquid crystal display is a dot matrix liquid crystal display module specifically designed to show letters, numbers, symbols, and more. It features two lines, each capable of displaying 16 characters. Each character is formed by a 5x7 dot matrix and can display standard ASCII characters and some other built-in characters, with space for eight custom characters.
  • Page 170 Smart Factory Smart Factory Lab Smart Warehousing Integrated System Project Description Build smart warehousing system that integrates smart outbound logistics, smart storage logistics, and inventory monitoring functions. Hardware Scheme 1.Hardware List Picture Name Quantity ESP32 Board ESP32 Expansion Board TT DC Motor DC Motor Driver Module Infrared Obstacle...
  • Page 171 Smart Factory 2.Hardware Structure For detailed assembly steps, refer to Section 14 of the assembly document, titled "14 Smart Warehousing Integrated System". 3.Hardware Wiring...
  • Page 172 Smart Factory Programming 1. Program Flowchart...
  • Page 173 Smart Factory 2. Coding...
  • Page 174 Smart Factory...
  • Page 175 Smart Factory...
  • Page 176 Smart Factory...
  • Page 177 Smart Factory...
  • Page 178 Smart Factory...
  • Page 179 Smart Factory 3. Instruction Parsing : This command is within the "Robots - LCD Module" instruction module. It can be used to clear the LCD module's buffer, effectively clearing the screen. : This command is in the "Robots - LCD Module"...
  • Page 180 Scan the QR codes to Follow Us for troubleshooting & the latest news. We have a very large community that is very helpful for troubleshooting and we also have a support team at the ready to answer any questions. ACEBOTT FB Group QR Code YouTube QR Code...
  • Page 182 Smart Factory...

This manual is also suitable for:

Qe031

Table of Contents