STM32 make a car What do I need to learn?

Today's share comes from a question I answered almost in ac:

I think this question is very interesting, pull phone lines are professional, are learning STM32, are interested in the car, let me communicate this old dog to talk about their own views -

The following text start ~

Stm32 make a car, that is difficult is difficult, that simple and simple ha ha ha ~

Four-wheeled vehicle

The simplest is to make the car four wheels of this, was born a balance, do not think too much, is doing!

This photo was taken in my freshman year when, for the first time to see the car, the kind of ecstatic, you know!

Now the question!

We have to take the wheel motor control, simplicity, the DC motor, but the motor is a large current signal, mcu is a small signal, which involves a small current to control high current, do not you go over to the electrical mode, the amplifier mastery learning ? ? ? It does not take you triode circuit, so why bother? Direct like to use the existing motor driver chip, such as the commonly used l298n, if you think the use of the chip cool enough, there is the difficulty, you can directly buy l298n of tb module, you said this is difficult, discouraging treatment is recommended ~

Well, the wheel + + DC motor drive module has, the next start with mcu programming control.

mcu only need gpio pin high or low, to the motor drive module, the motor starts forward or reverse, and led as a simple point.

Meanwhile four motors forward, the car is not on the way forward, reverse correspondence back, then the question is, how turn? ? ?

It should be mentioned a method, differential steering , is specifically: the motor is transferred two left, two right reversing the motor vehicle corresponding to the right. Similarly, the left two motor reversal, the right forward, turn left correspond to the car.

Well, a car made out, simple.

Then enjoy your imagination to play it ~

  • Add a Bluetooth module, do an app, it is a Bluetooth smart car
  • Add 2.4g modules, with a handle, which is the wireless remote control car
  • Add wifi module, it is wisdom wifi car
  • Plus + PTZ cameras, it is the intelligent image transmission car
  • Plus infrared tracking module, which is tracking the car.
  • Plus ultrasonic module, which is the automatic obstacle avoidance car
  • Add sensors, which detect the car is wisdom
  • Four wheels replace the blade, into the water, it is no boat
  • Four wheels replace the blades, thrown into the sky, it is unmanned aerial vehicles

Can not add are added together, do not is to practice techniques to make your big brother is with the entrepreneurial self-developed products, was put on the pinnacle of life, marry white Formica just around the corner.


This photo was taken when I was a sophomore, the top Smart car into a boat, powered bad ......

Having four-wheel vehicles, two-wheelers come to talk about ~

Wheelers

In fact, two-wheelers and four-wheel cars, but the wagon was born balance, only need to control the motor on the line, two-wheelers was born tummy, come to make it stand up, here we should pull out the classics the automatic control theory classic - pid , specific time to learn to say it, all the operations of two-wheelers, are built to let him keep the balance on the basis of , a lot of programming is naturally difficult.

Above are direct play on stm32 bare metal, if interested, you can learn about rtos real-time operating system that allows multi-tasking cpu, more fun ~

In addition, there are still common Mecanum wheel, all-terrain can run, playability stronger, a little disappointed that I have not played, have the opportunity to try, said so much, choose a do it ha ha ~

Receive more exciting articles and resources push, welcome to subscribe to my micro-channel public number: "mculover666」 .

Published 208 original articles · won praise 559 · views 240 000 +

Guess you like

Origin blog.csdn.net/Mculover666/article/details/104324439