yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
MSPM0 Smart Robot Car📖
1.Quick Start Guide
  • 1. Assembly Videos
  • 2. Quick Start Videos
  • 3. Battery charging
  • 4. Notes
2.Introduction to the MSPM0 Car
  • 1.About MSPM0
  • 2.Development board interface description
3.Development environment setup and usage
  • 1.CCS Theia development
  • 2.MDK Arm development
  • 3.Uniflash burning
  • 4.External crystal oscillator configuration
  • 5.Project Migration
4.MSPM0 basic course
  • 1. LED light control (GPIO)
  • 2. Buzzer Control (GPIO)
  • 3. Button Control (EXTI)
  • 4. Serial Port (UART)
  • 5. Voltage Detection (ADC)
  • 6. Temperature Detection (ADC)
  • 7. Independent Watchdog (WWDG)
  • 8. Window Watchdog (WWDG)
  • 9. Timer (TIM)
  • 10. Breathing LED (PWM)
  • 11. I2C Communication (I2C)
  • 12. External Flash (SPI)
  • 13. Internal Flash (Flash)
  • 14. DMA
  • 15. FreeRTOS
5.Sensor basic course
  • 1.Servo control
  • 2.Ultrasonic servo PTZ basic use
  • 3.Motor PID control
  • 4.OLED display photosensitive value
  • 5.Infrared avoid sensor
  • 6.1 Infrared line tracking sensor-8 channel infrared tracking sensor module
  • 6.2 Infrared line tracking sensor-4 channel infrared tracking sensor module
  • 7.Infrared remote control
  • 8.Ultrasonic ranging
  • 9.RGB light drive
  • 10.MPU6050 raw data acquisition
  • 11.MPU6050 data fusion
  • 12.K210 vision recognition module
  • 13.K230 vision recognition module
6.Smart car course
  • 1.1 Car line tracking-8 channel infrared tracking sensor module
  • 1.2 Car line tracking-4 channel infrared tracking sensor module
  • 2.1 Drawing a circle-8 channel infrared tracking sensor module
  • 2.2 Drawing a circle-4 channel infrared tracking sensor module
  • 3.Ultrasonic following
  • 4.Ultrasonic avoid
  • 5.Ultrasonic avoid(Servo PTZ)
  • 6.Infrared sensor avoid
  • 7.Light following
  • 8.Gyroscope calibration straight-line walk
  • 9.Infrared remote control
  • 10.Autonomous driving car
7.Vision application course
  • 1.K210 autonomous driving
  • 2.K210 color tracking
  • 3.K210 handwritten digit action
  • 4.K210 color response
  • 5.K210 road sign indication action
  • 6.K210 following machine code
  • 7.K210 QR code command
  • 8.K230 vision line tracking
  • 9.K230 color tracking
  • 10.K230 machine code tracking
  • 11.K230 QR code command
  • 12.K230 autonomous avoid
  • 13.K230 license plate tracking
  • 14.K230 face tracking
  • 15.K230 gaze direction tracking
  • 16.K230 palm tracking
  • 17.K230 target tracking
  • 18.K230 human body tracking
  • 19.K230 OCR character recognition
8.Extended application course (Sold separately)
  • 1.Voice interaction module communication
  • 2.Voice interaction control
  • 3.K230 road sign indication action(Voice)
  • 4.K230 color response(Voice)
  • 5.K230 gesture control(Voice)
  • 6.K230 rock-paper-scissors(Voice)
  • 7.8-channel grayscale color line tracking
  • 8.Bluetooth remote control
  • 9.K210 Scenario-based autonomous driving
  • 10.K230 Scenario-based autonomous driving
Download
  • Code
  • SCH
  • 3D Model File
  • MSPM0 Data Sheet
  • Voice firmware
  • Hardware interface manual
Download ZIP

Welcome to MSPM0 Smart Robot Car repository

9.Infrared remote control

Infrared remote control

Infrared remote control1. Software-Hardware2. Brief Principle2.1 Hardware Schematic Diagram2.2 Physical Connection Diagram2.3 Control Principle3. Main Functions4. Experimental Phenomenon

This tutorial is a comprehensive experiment combining multiple peripherals. You can understand individual peripherals before conducting this experiment.

1. Software-Hardware

  • KEIL

  • MSPM0G3507 Development Board

  • Infrared Remote Control

  • Type-C data cable or DAP-Link

    For program download or simulation to the development board

2. Brief Principle

2.1 Hardware Schematic Diagram

upscalemedia-transformed (37)

2.2 Physical Connection Diagram

未命名的设计 (81)

2.3 Control Principle

Control different car states based on key values pressed on the remote control (key values).

Use external interrupt to receive data sent by infrared, and parse this data through function: Pressing different keys on the infrared remote control will receive different data, we control different functions of the car based on this data (Switch statement is used in the program); Different key values correspond to different functions, in addition there are some undefined keys that can be defined by yourself.

  • Program Flowchart

1

  • Infrared Remote Control

image-20231027151422580

Remote Control (Key Value)Function (Customizable)Actual Function in This Tutorial Code
0x00IR_POWERTurn off motors and lights
0x80IR_UPControl car to move forward
0x40IR_LIGHTControl blue RGB light on (press once to turn on, press again to turn off)
0x20IR_LEFTControl car to turn left
0xA0IR_BEEPControl buzzer (press once to turn on, press again to turn off)
0x60IR_RIGHTControl car to turn right
0x10IR_LEFT_SPINControl car to spin left
0x90IR_DOWNControl car to move backward
0x50IR_RIHGT_SPINControl car to spin right
0x30IR_ADDControl car to accelerate
0x70IR_SUBControl car to decelerate
0xB0IR_0Control RGB light rotation
0x08IR_1Control RGB breathing light rotation
0x88IR_2Control red RGB light on
0x48IR_3Control orange RGB light on
0x28IR_4Control yellow RGB light on
0xA8IR_5Control green RGB light on
0x68IR_6Control cyan RGB light on
0x18IR_7Control blue RGB light on
0x98IR_8Control purple RGB light on
0x58IR_9Turn off light
0xFFCLR_CLRDefault value

 

3. Main Functions

Mainly introduces the functional code written by users, for detailed code, you can open the project files we provide and view the source code in the Bsp folder.

Function: IR_Control_Car

Function Prototypevoid IR_Control_Car(void)
Function DescriptionInfrared remote control function
Input ParametersNone
Output ParametersNone

Function: Motor_IR_Control

Function Prototypevoid Motor_IR_Control()
Function DescriptionControl motors
Input ParametersNone
Output ParametersNone

Function: Control_BEEP_IR

Function Prototypevoid Control_BEEP_IR()
Function DescriptionControl buzzer
Input ParametersNone
Output ParametersNone

Function: Control_Green_RGB_IR

Function Prototypevoid Control_Green_RGB_IR()
Function DescriptionControl RGB lights
Input ParametersNone
Output ParametersNone

Function: IR_Control_Car

Function Prototypevoid IR_Control_Car() 
Function DescriptionMain program combining key values and functions 
Input ParametersNone 
Output ParametersNone 

Function: Printf_Irremote

Function Prototypevoid Printf_Irremote()
Function DescriptionUse serial port to print key values
Input ParametersNone
Output ParametersNone

4. Experimental Phenomenon

 

After successfully downloading the program, press the RESET button on the development board and use the infrared remote control to control the car!

xxxxxxxxxx
For program download, refer to [3. Development Environment Setup and Usage: 3.Uniflash Programming]

Phenomenon:

According to different buttons pressed on the remote control, different functions of the car will be activated.

 

Gyroscope calibration straight-line walk
Autonomous driving car

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/中文