check in
Ongoing

XMoto STM32

STDXMoto STM32

tag

2.0k
0
0
0
Mode:Full

License

CC-BY-NC 3.0

Creation time:2020-12-04 16:50:29Update time:2022-01-22 14:13:07

Description

But let's compare a stepper motor with my solution.

This is a normal stepper motor, which is used in many projects like 3D printers and the like.

We have a step angle of 1.8 degrees, a holding force of about 3.7 kg on one centimeter. That basically means the stepper motor can hold 3.7 kg, with a one centimeter lever. At this maximum load, the motor needs 1.5Amps on each phase. The motor weighs 255 grams.

-----

Now the second motor comes into the round ... a gear motor with extended shaft from Pololu. We have here the "HighPower" version with 1.6A maximum current and a gear ratio of 380 to 1. This one manages an impressive 5kg holding power on the centimeter and weighs just 10 grams. Well, with the additional technology and housing, we might get to 20 grams.

You can see what I'm getting at, this much smaller motor creates more holding power and uses less power. But that's not all, it also controls the position of the motor and has a servo function that constantly corrects the position of the motor automatically.

Of course, we still have to make a few changes to the technology before this motor understands step as well as direction signals ... so let's unscrew the little guy and take a closer look at the technology behind it.

First we take off the cover, as you can see, I soldered 2 small PCBs in a stacking process to the contacts of the motor. Now I want to introduce them to you. For this I have not yet soldered PCB's here on the table.

-----

The first PCB is soldered directly to the motor and is called "XMoto Driver". In the middle there is a hole for the through shaft, on this shaft there is a magnetic disk with 3 embedded magnets each ... this generate 12 steps per revolution with 2 hall sensors.

The Hall sensors are mounted in a 90 degree angle on the driver and send their signals to the second PCB, which I will introduce in a moment.

Of course we still need a DC motor driver, I chose the DRV8837 for this. This one comes in a tiny 2mm package and is able to control the motor's direction and speed via PWM signals. It is also capable of stopping the motor and holding the load.

-----

All well and good, but now how do we turn a DC motor into a stepper motor? This is done by the second board, which is connected to the driver via the large contacts with plus and minus as well as a plug-in socket strip and is called XMOTO STM.

As the name already suggests, a microcontroller is installed here, which takes over the task of a stepper motor driver. At one input it listens to the step impulses, at the other one to the direction signals (STEP and DIR) and moves the motor via the motor driver accordingly. It constantly compares whether the motor is in the correct position, if not, the position is actively controlled. So it is a servo function that always corrects the position of the motor.

The signals between the boards are transmitted via a 1mm pin header, this includes the signals of the sensors and the PWM signals, with which the motor is controlled.

Since the motor needs 6V, but our microprocessor needs 3.3V, I added a very efficient stepdown converter.

Additionally a LED to see if the motor is under power and for diagnostic messages.

------

The whole thing in a housing and ready is our DC stepper motor. So let's test if this really works.

As a simple example I installed the mother of all MotionControl software called "GRBL" on an "Arduino Nano" as delivered.

If you look at the pinout of the software, you can tap the step signals for the X-axis at PIN D2 and direction signals at pin D5. Then connect 5V to plus and ground to minus and control the motor via serial console.

-----

So, that should be it for now. In my next video I will talk about programming, configuration and other things.

If you are interested in this topic, please subscribe or give me a thumbs up.

To not miss anything, just activate the bell below this video.

I wish you a Merry Christmas and a Happy New Year
Your Frank

Design Drawing

schematic diagram
PCB

BOM

IDNameDesignatorFootprintQuantity
119-213/Y2C-CQ2R2L/3T(CY)LED1LED0603-R-RD1
2300R4R04021
3STM32L432KBU6U2UFQFPN-32_L5.0-W5.0-P0.50-BL-EP1
4Micro_JSTJP21X06-1.25MM_JST1
5TESTPOINT-SMDNRT,TX1,RX1,SWI,SWCSMD_TESTPOINT5

Attachments

OrderFile nameDownload times
No data
Clone
Add to Album
0
0
Share
Report

Project Members

Comment

All Comments(1)
Sort by time|Sort by popularity
Followers0|Likes0
Related projects
Empty

Bottom Navigation