How to Design a Motor Driver Circuit for Bidirectional DC Motor Control?

Click For Summary

Discussion Overview

The discussion revolves around designing a motor driver circuit for bidirectional control of DC motors using a variable input voltage of 0v-3.3v. Participants explore various approaches, including analog solutions and PWM control, to achieve the desired motor behavior based on the input voltage levels.

Discussion Character

  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant suggests using PWM to control motor speed, arguing that voltage variation alone is ineffective.
  • Another participant mentions a professor's recommendation to use a window comparator and op-amps for an analog solution to control the motor direction and speed.
  • A participant notes the importance of their section working independently for a group project involving a line-following robot, indicating a need for simulation of inputs and outputs.
  • Some participants discuss the possibility of using a second microcontroller with an ADC to generate PWM signals and control an H-bridge.
  • One participant challenges the professor's understanding of driving DC motors, suggesting an alternative method involving a triangle wave comparison to generate PWM signals.
  • A suggestion is made to create a block diagram for the proposed circuit to clarify the design approach.

Areas of Agreement / Disagreement

Participants express differing views on the best approach to design the motor driver circuit, with some advocating for PWM control while others explore analog methods. No consensus is reached on a single solution.

Contextual Notes

Participants mention various components and techniques, such as window comparators, op-amps, and PWM generation methods, but the discussion does not resolve the effectiveness or feasibility of these approaches.

tkulchaw
Messages
3
Reaction score
0
Hey, I'm looking for some ideas how to design a motor driver for a pair of DC motors. They have a input variable voltage of 0v-3.3v. When the input voltage is half (about 1.6v) the motor should stop, but if it is any greater than 1.6v it will go forward, below 1.6 it will go backward. 0v should go backward at full speed, and 3.3v should go forward at full speed. I don't know why, but I am having a real brain fart this morning and am looking for any general ideas, or what blocks i would need to do this (all i have so far is a voltage follower buffer from the power inputs)

The micro would be varying the voltage to control the direction and speed, but would I need to use comparators to do this? I found an H bridge motor driver circuit, but it looks like that is controlled by PWM http://www.societyofrobots.com/schematics_h-bridgedes.shtml

Any input is appreciated"[URL
 
Last edited by a moderator:
Engineering news on Phys.org
tkulchaw said:
Hey, I'm looking for some ideas how to design a motor driver for a pair of DC motors. They have a input variable voltage of 0v-3.3v. When the input voltage is half (about 1.6v) the motor should stop, but if it is any greater than 1.6v it will go forward, below 1.6 it will go backward. 0v should go backward at full speed, and 3.3v should go forward at full speed. I don't know why, but I am having a real brain fart this morning and am looking for any general ideas, or what blocks i would need to do this (all i have so far is a voltage follower buffer from the power inputs)

The micro would be varying the voltage to control the direction and speed, but would I need to use comparators to do this? I found an H bridge motor driver circuit, but it looks like that is controlled by PWM http://www.societyofrobots.com/schematics_h-bridgedes.shtml

Any input is appreciated"[URL
[/URL]

Yes, you need to use PWM to vary the speed of the motor. Voltage variation is generally ineffective, and is not used. So just have your uC digitize the variable input voltage, and use that to control the PWM polarity and duty cycle.
 
Last edited by a moderator:
i spoke to one of my professors today concerning it, he said that we were meant to try to use a window comparator, and then two op amps to vary the voltage potential on the two sides of the motor (a completely analog solution).

It is a group project that we are making a line following robot, and the different group members have to output and take specified inputs. The specified input I get is a 0-3.3Vdc input. The important part is that my section of the project works stand alone, so that I can simulate inputs and show that my outputs are correct.

I was told that most people get a 2nd micro, and use an ADC to make their own PWM output, and direction bit to control an H bridge, which is most likely what I will fall back on... if i have trouble with the window comparator. Google here I come.
 
tkulchaw said:
i spoke to one of my professors today concerning it, he said that we were meant to try to use a window comparator, and then two op amps to vary the voltage potential on the two sides of the motor (a completely analog solution).

It is a group project that we are making a line following robot, and the different group members have to output and take specified inputs. The specified input I get is a 0-3.3Vdc input. The important part is that my section of the project works stand alone, so that I can simulate inputs and show that my outputs are correct.

I was told that most people get a 2nd micro, and use an ADC to make their own PWM output, and direction bit to control an H bridge, which is most likely what I will fall back on... if i have trouble with the window comparator. Google here I come.

Sounds like your prof isn't familiar with how to drive DC motors... :rolleyes: or else he is thinking of something that I'm not understanding.

If you would prefer to generate the PWM signals in a more analog fashion, you can use a technique that is used in switching power supply designs often. You can compare a triangle wave against the DC voltage level to give you a varying PWM signal that varies with the DC voltage.

Draw a triangle wave, and then draw some horizontal lines through the tri wave. You can see that the higher the horizontal (DC) voltage is on the tri, the less time the tri is above it. If you square up the comparison of the tri wave and the DC voltage, you can see what kind of PWM waveforms you will get out of the copmarison.

So now you can think of what kind of other circuitry you can add to the output of the tri vs DC comparator circuit, in order to generate the correct polarity PWM signal to your H-bridge motor drive circuit. At least your prof is right that you will need some window comparators... One for high input DC, one for low input DC, and one for the middle window area where you want the motor off...

Can you post a block diagram of such a circuit?
 

Similar threads

Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
21
Views
3K
Replies
12
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
2
Views
2K