Design of McLennan chassis motion control system based on RT-Thread+RA6M4

Publisher:李国永Latest update time:2023-08-07 Source: elecfansKeywords:RT-Thread  RA6M4 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

This project designs a trolley chassis motion system with a McIlrod structure. After kinematic analysis of the chassis, the motion information of each McIlrod is calculated.


Then, the 8-way PWM controls the 4-way bridge circuit to drive the 4-wheel motor. Its chassis can achieve omnidirectional movement, that is, longitudinal and lateral movement of the plane and rotation movement in place.


Application Background

In the current development of mobile robots, in addition to robots with bionic structures, mobile robots with McDonnell Douglas structures and mobile robots with universal wheel structures are also used very frequently.


Especially for robots in the consumer field, such as sweeping robots, building disinfection robots and subway inspection robots, the chassis structures in these fields basically adopt the McLennan structure, which is more flexible, more reliable and easier to implement than bionic robots.


Implementing functions

8-way PWM output
Omnidirectional chassis movement

Overall framework

Hardware Framework

The RA development board generates 8 PWM signals, which are provided to the DRV8833 bridge circuit module, which drives each wheat wheel motor.

1.jpg

Software Framework

There are not many threads involved in the software. In addition to the main thread and the serial port interrupt thread used for debugging, there is also the motion mode switching thread.


Use of RT-Thread

In my project, I used RTT as the thread implementation of RTOS

RTT has a HAL layer that is adapted to the board level. In this project, PWM and serial port peripherals are used, both of which use the functions of the HAL layer provided by RTT, which enhances portability.

This project also uses the RTT automatic initialization mechanism, which means that the initialization function does not need to be called in reality, but only needs to be declared in the function definition through macro definition, and it will be executed during the system startup process. INIT_PREV_EXPORT() searches and initializes the pwm device.

INIT_APP_EXPORT() initializes the motion mode thread.


Keywords:RT-Thread  RA6M4 Reference address:Design of McLennan chassis motion control system based on RT-Thread+RA6M4

Previous article:Low-power design of autonomous driving chips
Next article:Introducing an efficient and lightweight model for drivable area and lane segmentation in autonomous vehicles

Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号