Back EMF Problem Stepper Motor / Line Follower Robot

OP #7517889
Rate this post
• ▲ useful
▼ not useful

Hello all,

I have built a line follower robot with stepper motors to drive the wheels. It is controlled with TMC stepper motor drivers from the 3D printing area and a Teensy / Arduino microcontroller. It is powered by an 18 volt drill battery.

As far as everything works wonderfully, however, I have now encountered the following problem: If I move or drive the car by hand when it is switched off, the stepper motors behave like a generator, i.e. various LEDs of the circuit start to light up.

I am therefore concerned that this can damage the controller, drivers or battery due to this reverse current if you move the trolley too fast.

So now the question:

What is the best way to get the coils of the stepper motor disconnected from the rest of the circuit when it is off?

I have now read quite a bit about relays, optocouplers, solid state relays, mosfets etc.

So for me as a hobbyist / electronics layman it is hard to assess what would be the best / easiest solution to the problem.

I would be very grateful for helpful tips.

Moderator (Company: Titel) #7518006
Rate this post
• ▲ useful
▼ not useful

Mister G. wrote:

I am therefore concerned that this can damage the controller

It depends on the controller, but usually it should be able to handle the voltage and the current if its not higher as the usual working range. So at first I would do some simple tests and check wether the supply voltage overrates the battery voltage and the following step down when moving it powerd off.

What is the best way to get the coils of the stepper motor disconnected from the rest of the circuit when it is off?

If you want to get it really disconnected with no concern about voltages and currents you must use a mechanical relay. Becaues an open mechnical contact is the only mean to get absolutely no current back into your circuit.

1
                 decoupling 
2
                 diode
3
  + -------o------>|---o----.
4
           |           |+   |
5
       stepdown       ===   |
6
battery    |           |    |
7
          µC ----------+-> driver ===> motor
8
           |           |    |
9
  - -------o-----------o----'

what would be the best / easiest solution to the problem.

The "easiest way" would be: do nothing. Most of the devices you can buy are like that.

The "easy way" would be to seperate the supplies of the motor driver and the logic with a diode, so that the inducted current cannot find its way to logic. And if the inducted voltage then overrates the motor driver you can add a resistor with additional circuit (like a crowbar) to absorb the energy.

The "hard but absolutely safe way" would be the mechanical relays.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.