Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Microstepping

Status
Not open for further replies.

Enigma

New Member
I am buliding a line following robot and I am using stepper motors. I was wondering if anyone could please let me know how I would implement microstepping using C programming (like what parameters I would need). I am using a Mitsubshi microcontroller (M16C/62) and I am not using a driver chip.

Thanks!!

Enigma
 
Microstepping is accomplished by driving a sinusoidal current waveform to the stepper motor windings.

Assuming you are using two stepper motors (one for each wheel), you would need 4 channels (2 per motor) of PWM outputs if you intend to control the phase currents of the two motors. If the microcontroller has A/D inputs, you can utilize them after some amplification to sense the magnitude of the phase currents and have full closed loop control of the currents.

I'm not familiar with your microcontroller, but it takes a lot of the controller's computing power to regulate the current even for just one motor. An easy solution is to use a dedicated microstep driver for each motor to off-load this task.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top