yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Raspbot V2📖
1.About Raspbot V2
  • 1. First trial
  • 2. Expansion board interface distribution
  • 3. About battery and charging
  • 4. Install servo PTZ
  • 5.Servo Gimbal Installation
  • 6. Important Notes (Read Before Starting)
2.Assembly
  • Installation Video
3.Car basic course
  • 0. Preparation before development
  • 1.Buzzer control
  • 2.Key reading
  • 3.RGB control
  • 4.Servo control (PTZ control)
  • 5.Motor control
  • 6.Printing ultrasonic data
  • 7.Tracking module status printing
  • 8.IR control key value printing
4.Car motion control course
  • 0.Mecanum wheel motion principle
  • 1.Car vertical movement
  • 2.Car diagonal movement
  • 3.Car sideways movement
  • 4.Car rotation movement
  • 5.Car patrol
5.Car advanced courses
  • 1.Infrared patrol car
  • 2.Ultrasonic avoid
  • 3.Ultrasonic follow
  • 4.Infrared tracking+ ultrasonic avoid
  • 5.Restricting
  • 6.Infrared remote control car
6.OpenCV courses
A. Getting Started with OpenCV
  • 1. Introduction to OpenCV
  • 2.OpenCV image reading and display
  • 3. OpenCV image writing
  • 4. OpenCV Image Quality
  • 5.OpenCV pixel operations
B. OpenCV geometric transformation
  • 1. Image scaling
  • 2. Image cutting
  • 3. Image translation
  • 4. Image mirroring
  • 5. Affine Transformation
  • 6. Image Rotation
  • 7. Perspective Transformation
C. OpenCV image processing and text line drawing
  • 1. Grayscale processing
  • 2. Image Binarization
  • 3. Edge Detection
  • 4. Line drawing
  • 5. Rectangle and circle drawing
  • 6. Text and image drawing
D. Image beautification
  • 1. Color Image Histogram
  • 2. Histogram Equalization
  • 3. Image repair
  • 4. Brightness enhancement
  • 5. Smooth and whiten
  • 6. Gaussian mean filtering
  • 7. Median Filter
E. Machine Learning
  • 1. KNN
  • 2. SVM
7.AI vision recognition course
  • 1.Camera driver tutorial
  • 2.Color recognition
  • 3.HSV value test
  • 4.Object Recognition
  • 5.QR code recognition
  • 6.Face recognition
  • 7.License Plate Recognition
  • 8. Human Pose Estimation
  • 9. Target detection
  • 10.yolov5-lite
  • 11. Gesture Recognition
  • 12. Face Detection
  • 13. Face effects
  • 14. 3D Object Recognition
  • 15. Paintbrush
  • 16. Finger control
8.AI vision interaction module
  • 1. Color tracking
  • 2. Color follows
  • 3. QR code recognition to control movement
  • 4. Face tracking
  • 5. Face following
  • 6. Visual tracking
  • 7. Garbage identification
  • 8. Track map Autopilot(purchased separately)
  • 9. Gesture following
9.Voice control basic course(For Superior Kit)new
  • 1.Voice control car movement
  • 2.Voice control RGB light
  • 3.Voice control color recognition
  • 4.Voice control autonomous driving
  • 5.Voice control car tracking
10.AI large model knowledge(For Superior Kit)new
  • 1.AI large model types and principles
  • 2.RAG retrieval enhancement and model training samples
  • 3.Embodied intelligent robot system architecture
  • 4.Embodied intelligent functions core source code
  • 5.Configure AI large model(Required)
11.AI Large Model Development(For Superior Kit & Reference)new
  • 1.Register a model service provider account
  • 2. Configuring API-KEY(Optional)
  • 3. Introduction to Dify
  • 4. Basic Dify Features
  • 5. Deploy the RAG knowledge base
  • 6. AI Large Model Development - chatbot
  • 7. RAG knowledge base + chatbot
  • 8. AI agent workflow
  • 9. Custom wake-up response
  • 10. Core module testing tools
12.AI large basic course(For Superior Kit)new
  • 1.Free conversation
  • 2.Text-to-picture
  • 3.Scene description
  • 4.Video description
  • 5.Intelligent action choreography
  • 6.Dual-model agent application
13.ROS2-Robot chassis control course
  • 1. Robot information release
  • 2. Robot keyboard control
  • 3. URDF Model
14.ROS2-OpenCV course
  • 1.ROS+Opencv application
  • 2. AR Vision
  • 3. Mediapipe fun gameplay
  • 4. Gesture control car movement
  • 5. Gesture control car actions
  • 6. Palm control car movement
  • 7. Palm control servo PTZ
  • 8. Visual tracking
  • 9. AprilTag code recognition
  • 10. AprilTag tag code tracking
  • 11. AprilTag tag code follow
15.Development environment course
  • 1. Introduction to Raspberry Pi 5
  • 2. Image writing and backup
  • 3. Start the Raspberry Pi 5
  • 4. Remote Access
  • 5. Remote file transfer
  • 6. Common Linux commands and use of vim editor
  • 7. Install Raspbot V2 driver library
  • 8. Jupyter Lab environment construction
  • 9. Jupyter Lab plugin installation
  • 10. Basic use of Jupyter Widgets
16.Raspberry Pi basic settings
  • 1.Update and upgrade the operating system
  • 2. Introduction to raspi-config tool
  • 3. config.txt file description
  • 4. Network Configuration
  • 5. Set display resolution and rotation
  • 6. Set screen sleep
  • 7. Get real-time temperature of RPi
  • 8. Play audio and video
  • 9. Use USB Camera
  • 10.Use MIPI camera
17.Docker course
  • 1. Overview and installation
  • 2. Common commands
  • 3. Understand and publish images
  • 4. Docker data processing
  • 5. Enter docker container
18.ROS2 basic course
  • 1. Introduction to ROS2
  • 2.ROS2 install Humble
  • 3. ROS2 development environment
  • 4. ROS2 workspace
  • 5. ROS2 function package
  • 6. ROS2 node
  • 7.ROS2 topic communication
  • 8. ROS2 service communication
  • 9. ROS2 action communication
  • 10. ROS2 custom interface message
  • 11. ROS2 parameter service case
  • 12. ROS2 meta-function package
  • 13. ROS2 distributed communication
  • 14. ROS2 DDS
  • 15. ROS2 time related API
  • 16. ROS2 common command tools
  • 17. ROS2 rviz2 use
  • 18. ROS2 rqt toolbox
  • 19. ROS2 Launch startup file configuration
  • 20. ROS2 recording and playback tool
  • 21. ROS2 URDF model
  • 22. ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
Download
  • APP(iOS/Android)
  • Code
  • System_File
  • Instruction Manual
  • Hardware_Info
  • 3D_Model_File
  • ROS2_Basic_VM
Download ZIP

Welcome to Raspbot V2 repository

当製品の日本語版マニュアル資料は、こちらからご取得ください。

3.Embodied intelligent robot system architecture

Embodied Intelligent Robot System Architecture

1. Course Content

  1. Explain the Big Model Reasoning Architecture of the AI ​​Embodied Intelligent Robot
  2. Explain the basic concepts of the system to lay the foundation for practical application in subsequent courses

2. System Components

系统结构.drawio

3. AI Big Model Reasoning Architecture Diagram

The robot's programming utilizes dual-model reasoning and dynamic feedback i-reasoning, improving its processing capabilities for long, complex tasks and achieving greater system robustness compared to single-model architectures. Several key concepts are discussed: the decision-layer big model, the execution-layer big model, the task cycle, and the conversation history, each of which will be explained below.

yahboom_m3大模型推理架构.drawio

4. Explanation of the Large Model Inference Architecture

4.1 Principles of the Dual-Model Architecture

  • The robot's large model control system is designed based on a text-generated large model and a multimodal large model. The text-generated large model serves as the decision layer, acting as a high-level task planner and decomposing complex and abstract human instructions.
  • The multimodal large model serves as the execution layer, receiving task steps generated by the decision layer and temporary user instructions (typically simple instructions instructing the robot to end a task or rest), monitoring the robot's progress, adjusting its execution in real time, and generating a list of action functions that the robot can interpret and responding to the user.
  • The action function list contains pre-programmed basic action functions that directly output parameters for controlling the robot's motion.

4.2 Advantages of the Dual-Model Inference Architecture

4.2.1 Decoupling Decision Logic and Action Control

  • Large multimodal models lag behind large text-generated models in their ability to understand natural language semantics and perform logical reasoning. They are also prone to modal interference when performing complex tasks. Therefore, the system design decouples decision logic from action control.
  • The large text generation model focuses on semantic understanding and task planning. This is just an example and may not be the current product's functionality. (For example, parsing the sentence "Can you help me get the blue square in room A?" breaks down the task into the following steps: "Record current location → Navigate to room A → Obtain the current robot-view image → Locate the blue square's coordinates → Grab the blue square → Return to the starting position → Drop the blue square.") This avoids the complexity of traditional single models that must simultaneously handle action details during semantic parsing.
  • The large multimodal model is responsible for action generation and environment interaction (for example, acquiring visual images to locate object coordinates and outputting action functions and parameters). This reduces the confusion and large deviations in action logic that can occur in single models due to task complexity.

4.2.2 Reducing Model Training Sample Complexity

When using a single model for inference, the large multimodal model must simultaneously perform "natural language understanding + environmental perception + process decomposition + action function output," which can easily lead to modal interference (misinterpretation due to ambiguous language or overly long instructions). The dual model uses phased processing, allowing the decision layer to focus on language-space mapping and the execution layer to focus on vision. Motion Space Mapping.

4.2.3 Flexible Expansion

The decision-making and execution layer big models can be flexibly combined using a variety of big models on the Alibaba Bailian Big Model Platform (sometimes also called the Tongyi Qianwen Platform). Through customized training samples and RAG knowledge bases, the models can be adapted to tasks in different scenarios, greatly enhancing the generalization capabilities of AI embodied intelligent robots in different scenarios.

4.3 Decision-making Big Model

4.3.1 Function of the Decision-making Big Model

  • The robot's decision-making big model uses the Tongyi Qianwen series of models by default.
  • The decision-making big model is primarily responsible for task planning. It can understand complex human instructions and break them down into specific task steps. This is just an example and does not necessarily reflect the current product functionality. For example, when receiving the command "Can you help me get a bottle of mineral water from the kitchen?" The large language model breaks it down into several tasks, as shown in the figure below.

Each task step corresponds to the minimum action the robot can perform. The execution layer large model then implements the specific robot movement by calling API functions in the robot's action function library.

决策层大模型.drawio

4.3.2 Robot Action Library (Simplified)

The robot action library specifies the minimum actions that all robots can actually perform. The decision-making model selects and arranges appropriate actions from this library when planning task steps.

Basic Action Class

  • Turn Left
  • Turn Right
  • Dance
  • Drift
  • Forward
  • Backward
  • Pan Left
  • Pan Right
  • Change Light Bar Color
  • Play Music
  • Nod
  • Shake Head

Ultrasonic Distance Measurement Class

  • Obtain the current obstacle distance

Image Acquisition Class

  • Obtain a description of the current viewport image
  • Obtain a target in the image for tracking/following

4.4 Execution Layer Model

  • The default execution layer model for the robot uses the Tongyi Qianwen-VL series model. -VL: A model capable of visual analysis.
  • The execution layer model is primarily responsible for generating the action list that controls the robot's movements and responding to the user. As the robot executes the action list, it continuously receives feedback on the robot's action results (success/failure) and visual images. Based on the success or failure of the action, it infers the next action to be performed.
  • The execution layer model acts as a supervisor, continuously monitoring the robot's progress in executing task steps. It uses the feedback from the robot's actions and environmental information to determine the next action to be performed, until the task is successfully completed or terminated prematurely due to special circumstances.

执行层大模型.drawio

4.4.1 Task Cycle

  • In a new task cycle, user commands first pass through the decision layer model and then the execution layer model. If the execution layer model determines that the robot has completed all task steps, it enters a sleep state.
  • For example, when a new task cycle ends, the robot enters a sleep state and needs to be awakened to start a new task cycle. At this point, all states of the robot are reset.

4.4.2 History Context

The robot maintains a conversation history context in its local program. This context includes user commands, task steps generated by the decision-layer model, the action list generated by the execution-layer model, and status information provided by the robot. Each time the robot requests the execution-layer model, it sends the complete conversation history. This allows the execution-layer model to understand the robot's progress in executing tasks. The execution-layer model then uses the conversation history context to infer the next action to be performed. In short, the execution-layer model infers the next action based on the sum of past states.

对话上下文历史.drawio

Under normal circumstances, the execution-layer model determines the progress of task completion based on the conversation history. When the robot determines that all task steps have been completed, it enters a sleep state. This state clears the conversation history and ends the current task cycle. Upon detecting the wake-up word, a new task cycle begins.

During task execution, if a task cannot be executed, the current task cycle will also end.

  • Case 1: The robot fails twice consecutively while executing an action. If an action fails, the execution layer model will instruct the robot to retry at most once. If it fails again, the execution layer model will instruct the robot to prematurely end its task cycle and start a new one.
  • Case 2: The robot encounters an unachievable task

提前结束任务情况.drawio

4.4.3 Robot Action Library

The API functions in the robot action library serve as a bridge between the large model and the real world. These API functions define the minimum actions that the physical robot can perform in the physical world. The API functions operate by controlling the underlying hardware of the physical robot through function interfaces to perform various functions.

动作函数库

All action functions and their corresponding functions are shown in the following table:

Function NameParametersFunction ImplementationCall Instructions
Car_Forward(speed,mytime)speed: represents the speed (fast, medium, or slow), mytime: represents the number of seconds to move forwardhow long to move forward at a certain speedhow long to move forward at a certain speed
Car_left(speed,mytime)speed: represents the speed (fast, medium, or slow), mytime: represents the number of seconds to move forwardhow long to move backward at a certain speedhow long to move backward at a certain speed
Car_right(speed,mytime)speed: represents the speed (fast, medium, or slow), mytime: represents the number of seconds forwardhow long does the right turn go at this speed?how long does the right turn go at this speed?
Car_left_translation(speed,mytime)speed: represents the speed (fast, medium, or slow), mytime: represents the number of seconds forwardhow long does the left turn go at this speed?how long does the left turn go at this speed?
Car_right_translation(speed,mytime)speed: represents the speed (fast, medium, or slow), mytime: represents the number of seconds forwardhow long does the right turn go at this speed?how long does the right turn go at this speed?
Car_servo_nod()NoneExecutes the preset nod gestureNod command
Car_servo_sayno()NoneExecutes the preset head shake gesturehow long does the head shake command
Car_RGB_Control(R,G,B)R: represents red, G: green, B: blue These values ​​range from 0 to 255, with higher values ​​resulting in darker colors.Controls the color of the taillight stripControls the color of the light strip
Close_RGB()NoneTurns off the lightsTurns off the lights command
Car_Music_API(strname,strmusic)strname: The artist's name strmusic: The song titlePlays music online (may not be available due to copyright issues)Plays music command
Get_dis_obstacle()NoneMeasures the distance to an obstacle aheadMeasures the distance to an obstacle
car_avoid_api(fardis,Stopflag)fardis is the stopping distance from the object, in millimeters; Stopflag: Whether to stop after reaching the fardis distance. Stopflag = 0 means no stopping.Execute obstacle avoidanceObstacle avoidance command
Track_Face_Follow()NoneExecute face trackingFace following command
Track_line(colorline)colorline: Track line colorExecute line tracking actionLine tracking command
Track_Food(strname)strname: Object to be trackedExecute object tracking actionObject tracking command
time.sleep(time)time: Rest timeRest waitRest wait command

5. Application of the Voice Model in the System

5.1 Voice Recognition

Since the decision-layer and execution-layer models are text generation and visual multimodal models, respectively, they cannot directly receive user voice information. Therefore, a voice recognition model is required to convert user voice commands into text before passing it to the AI ​​model.

语音转文字.drawio

5.2 Voice Activity Detection (VAD)

VAD (Voice Activity Detection) is a technology that automatically distinguishes speech segments from non-speech segments (such as silence and noise) in speech signals. It locates the start and end points of speech in the audio stream and filters out invalid background sounds.

In subsequent practical courses, when the user wakes up the robot using the wake-up word "Hello Xiaoya," VAD voice activity detection will begin. The system automatically detects the user's speaking duration, saves valid audio segments as WAV audio files, and then converts the audio files into text for the voice recognition model.

5.3 Speech Synthesis

The large model converts user-generated text responses into audio via the speech synthesis model, which is then played back through the hardware speakers.

语音合成drawio

RAG retrieval enhancement and model training samples
Embodied intelligent functions core source code

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文