bdebyl / stm32-x27-demo

X27 Stepper Motor demo used for Gauge Clusters, to be used with Double H-Bridge for bipolar motor (or TB6112/equiv. driver)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Simple X27.168 (or equivalent) gauge cluster stepper motor demo. This is ideally to be used with 4 half-bridges, or a driver suited for the bipolar stepper motor.

On startup (reset) the stepper motor should sweep from 0 to 600 steps and back to 0. This allows it to "home" as the X27 does not have enough torque to cause damage to the physicals stops in the molded plastic housing. This overdrives the needle beyond its maximum and correctly sets it back to the minimum as a "homing" procedure should it ever get out of sync.

It's important to ensure the motor gets 12V-DC supply from the driver or half-bridge circuit allowing high-speed movement without missing steps.

Wiring

Pin Motor Controller / H-Bridge
PA13 A1
PA12 B1
PA11 A2
PA10 B2

About

X27 Stepper Motor demo used for Gauge Clusters, to be used with Double H-Bridge for bipolar motor (or TB6112/equiv. driver)

License:MIT License


Languages

Language:C 74.7%Language:Assembly 16.3%Language:Makefile 9.0%