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

AI Thread Summary
To design a motor driver circuit for bidirectional DC motor control with a 0-3.3V input, PWM is essential for speed variation, as direct voltage control is ineffective. The circuit should include a window comparator to determine the motor's direction based on the input voltage: above 1.6V for forward, below for backward, and exactly 1.6V to stop. Using two operational amplifiers can help adjust the voltage potential on either side of the motor for an analog solution. Alternatively, a second microcontroller with an ADC can generate PWM signals to control an H-bridge for more precise control. A triangle wave comparison technique can also be employed to create the necessary PWM signals for the motor driver.
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?
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top