yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
STM32-BoardCar📖
0. Get started quickly
  • 0.ReadMe
  • 1. Installation Instructions
  • 2. Version configuration
  • 3. Smart car installation video
  • 4. Precautions for use
1. Introduction to STM32 development board
  • 1. Learn about STM32
  • 2. Introduction to STM32 development board
  • 3. Development board pin assignment
  • 4. Introduction to HAL library and LL library
2. Setting up and using the development environment
  • 1. Common development tools
  • 2. STM32CubeMX Install - Use
  • 3. STM32CubeIDE Install - Use
  • 4. Common Driver Installation
  • 5. Program download and simulation
  • 6. Engineering experience and migration
3. Development board basic tutorial
  • 1. RGB searchlight (GPIO)
  • 2. Buzzer control (GPIO)
  • 3. Button control (EXTI)
  • 4. Serial communication (UASRT)
  • 5. Voltage detection (ADC)
  • 6. Internal temperature sensor(ADC)
  • 7. Independent watchdog(IWDG)
  • 8. Window watchdog(WWDG)
  • 9. Basic timer (TIM6)
  • 10. Universal Timer (TIM3)
  • 11. Advanced timers (TIM1)
  • 12. I2C Communication (IIC)
  • 13. Off-chip Flash (SPI)
  • 14. On-chip Flash (Flash)
  • 15. DMA:USART
  • 16. DMA:SPI
  • 17. DMA:I2C
  • 18. USB communication
  • 19. USB analog U disk
  • 20. FreeRTOS
4. Car expansion tutorial
  • 1. Servo control
  • 2. Basic use of ultrasonic steering gear gimbal
  • 3. Motor control
  • 4. OLED display light sensitivity value
  • 5. Infrared sensor
  • 6. Four-way tracking module
  • 7. Infrared remote control
  • 8. Ultrasonic ranging
  • 9. PS2 controller test
  • 10.K230 Vision Module
  • 11.AI voice interaction integration module
5. Robot car tutorials
  • 1. Car line patrol
  • 2. Ultrasonic follow
  • 3. Ultrasonic obstacle avoidance
  • 4. Ultrasonic obstacle avoidance (servo gimbal version)
  • 5. Infrared sensor obstacle avoidance
  • 6. Infrared remote control
  • 7. PS2 handle remote control
  • 8.K230 face tracking on PTZ
  • 9.K230 color tracking
  • 10.K230 Color Line Patrol
  • 11.K230 QR code command
  • 12.K230 machine code tracking
  • 13.K230 road sign indication action (voice)
  • 14.K230 color response (voice)
  • 15.K230 gesture control (voice)
  • 16.K230 Rock-Paper-Scissors Game (Voice)
6. Operation video
  • 1-How to install STM32CubeIDE software
  • 2-How to create Demo project
  • 3-How to download code into STM32 robot car
  • 4-How to open and compile a code file for STM32
  • 5-About IR control and Charge battery
Download
  • Code
  • SCH
  • Software File
  • STM32 Chip DataSheet
  • Installation manual
Download ZIP

Welcome to STM32-BoardCar repository

6. Infrared remote control

Infrared Remote Control_Experimental Phenomenon

Infrared remote control

Infrared remote control1. Software-Hardware2. Brief principle1. Hardware schematic diagram2.Physical connection diagram3. Control principle3. Main functions4. Experimental Phenomenon

This tutorial is a comprehensive experiment combining multiple peripherals. You can first understand a single peripheral before performing this experiment.

1. Software-Hardware

  • STM32F103CubeIDE

  • STM32 Robot Development Board

    Buzzer, RGB, LED, IR Receiver (HS0038B): Onboard

    310 motor*4: external

  • Type-C data cable or ST-Link

    Download programs or simulate the development board

2. Brief principle

1. Hardware schematic diagram

Since there are many modules involved, here we mainly introduce the infrared receiver (HS0038B)

image-20231027114521990

2.Physical connection diagram

image-20231027114825021

  • Motor Wiring

image-20231101193540299

xxxxxxxxxx
For battery pack assembly, please see [5. Smart Car Experiment: Car Line Patrol]

3. Control principle

Control different states (key values) of different cars according to the key values of the remote control.

xxxxxxxxxx
Use an external interrupt to receive the data sent by the infrared, and parse this data through the function:
Pressing different key values 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, and there are also some undefined keys that can be defined by yourself.
  • Program flow chart

1

  • Infrared remote control

image-20231027151422580

Remote control (key value)Function (customizable)Actual function of this tutorial code
0x00IR_POWERTurn off all peripherals
0x80IR_UPControl the car to move forward for 3s
0x40IR_LIGHTControl RGB lights (press once to turn on, press again to turn off)
0x20IR_LEFTControl the car to turn left for 3 seconds
0xA0IR_BEEPControl the buzzer (press once to turn on, press again to turn off)
0x60IR_RIGHTControl the car to turn right for 3 seconds
0x10IR_LEFT_SPINControl the car to turn left for 3s
0x90IR_DOWNControl the car to move backward for 3s
0x50IR_RIHGT_SPINControl the car to turn right for 3 seconds
0x30IR_ADDControl car acceleration
0x70IR_SUBControl the car to slow down
0xB0IR_0Control the car to stop
0x08IR_1Control LED1 (press once to turn on, press again to turn off)
0x88IR_2Control LED2 (press once to turn on, press again to turn off)
0x48IR_3Undefined
0x28IR_4Undefined
0xA8IR_5Undefined
0x68IR_6Undefined
0x18IR_7Undefined
0x98IR_8Undefined
0x58IR_9Undefined
0xFFCLR_CLR 

3. Main functions

xxxxxxxxxx
The functions introduced before will not be introduced again!

Function: Irrmote_car

Function prototypevoid Irrmote_car(void)
Function descriptionInfrared remote control car
Input parametersNone
Return valueNone

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, please refer to [2. Development environment construction and use: program download and simulation]

Phenomenon:

Pressing different buttons according to the buttons on the remote control will activate different functions of the car.

For experimental phenomena, you can see [Infrared Remote Control_Experimental Phenomenon.mp4]
Infrared sensor obstacle avoidance
PS2 handle remote control

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