Need help with motor control circuit
Obnepec
Posts: 20
Hello all,
I am trying to get a basic stamp project working to control the speed of a DC motor. Ultimately I need to control the speed of this motor: FAL3F05LH which is rated at 5vDC .57A.
From the Process Control book page 168 I set up the schematic as shown just without the ADC part of the circuit. I then tested it using the board of education board and the supplied fan which is rated at 12vDC .11A. I was able to get my program working very nicely and control the speed of the fan. This was using a 9vDC 1.6A. I initially started working on this with a 9vDC 300mA supply and the
So looking into this circuit a bit closer I see that the 2N3904 is only rated for 200mA continuous current. So I pulled this out and replaced it with a MPS2222 which is rated for 600mA continuous.
Secondly it has a voltage divider on the non-inverting input such that you double the voltage in vs out. So I pulled the voltage divider out and put a wire between the fan + connection and the inverting input (pin 6). So that as my pwm value goes from 0-5vDC the fan voltage goes from 0-5vDC.
So I tried this circuit and the MPS2222 gets very hot very fast. I called and talked to Parallax technical support and the advice was that maybe there was still something wrong with my power supply. So this morning I bought a brand new switching 12vDC power supply rated up to 2A. Still have the problem with the MPS2222 getting hot. I even tried putting 2 of the MPS2222's in parallel and they both got hot.
One thing I did notice from looking at the 2 fans is that the fan that came with the process control kit reads 1.2MOhm across the fan. The final fan only reads 314KOhm. So maybe I need to add more resistance in series with the fan?
Please let me know if you can see what I am doing wrong with this circuit so that I can run the final fan.
I am trying to get a basic stamp project working to control the speed of a DC motor. Ultimately I need to control the speed of this motor: FAL3F05LH which is rated at 5vDC .57A.
From the Process Control book page 168 I set up the schematic as shown just without the ADC part of the circuit. I then tested it using the board of education board and the supplied fan which is rated at 12vDC .11A. I was able to get my program working very nicely and control the speed of the fan. This was using a 9vDC 1.6A. I initially started working on this with a 9vDC 300mA supply and the
So looking into this circuit a bit closer I see that the 2N3904 is only rated for 200mA continuous current. So I pulled this out and replaced it with a MPS2222 which is rated for 600mA continuous.
Secondly it has a voltage divider on the non-inverting input such that you double the voltage in vs out. So I pulled the voltage divider out and put a wire between the fan + connection and the inverting input (pin 6). So that as my pwm value goes from 0-5vDC the fan voltage goes from 0-5vDC.
So I tried this circuit and the MPS2222 gets very hot very fast. I called and talked to Parallax technical support and the advice was that maybe there was still something wrong with my power supply. So this morning I bought a brand new switching 12vDC power supply rated up to 2A. Still have the problem with the MPS2222 getting hot. I even tried putting 2 of the MPS2222's in parallel and they both got hot.
One thing I did notice from looking at the 2 fans is that the fan that came with the process control kit reads 1.2MOhm across the fan. The final fan only reads 314KOhm. So maybe I need to add more resistance in series with the fan?
Please let me know if you can see what I am doing wrong with this circuit so that I can run the final fan.
Comments
I think the Process Control book circuit should work with the MPS2222. If the transistor is getting that hot that fast, it must not be switching on (saturating) completely. I would very very carefully check your wiring. Those resistance values are not reasonable for brush motors. Maybe you have brushless motors and I don't really have any experience with them and those values may be normal. Hopefully someone with more experience in this vein can chime in.
Thank you for replying. Well, for the FAL motor I just called their tech support and yes that is a brushless motor. I don't know what the motor they sent me with the process control kit (the 12vdc .11A listed above) but I am guessing that its a brushless motor as well. However, one thing I just noticed is that with both of these motors if I set my probes where red goes to motor red and black goes to motor black I get one resistance reading but if I switch the polarity of my meter to motor leads I get a different resistance reading. With the smaller motor that came with the process control kit I get 1.2MOhm and 389KOhm and for the larger motor I get 314K and 620K. I don't have alot of experience with motors so I don't know what this could mean.
However, considering the resistance from the smaller to the bigger motor is half I could see where this could cause over current in the transistor, just not sure how to fix that.
Any ideas would be greatly welcome!
When a switching transistor is turned on and off completely (ideally), there's no power wasted (or heat produced) in the transistor. In non-ideal transistors, there's a little bit of on resistance, thus a modest amount of heat produced. Obviously, in your case, the MPS2222 is not switching completely (saturating), so it gets really hot. Make sure you're not trying to apply a filtered PWM output to the MPS2222. The Stamp's output should be a digital signal which would be true if you've wired it up the way the tutorial shows.
Yes, I am pretty sure I did check the pin order when I put it in but I will double check. I have put parts in reversed before but I thought I had checked this. However, would it work at all in that configuration?
Mike, actually I think what you brought up could be the problem. Its been awhile since my last circuits class but isn't the signal thats finally getting to the transistor a filtered signal? The RC network at the beginning is definately going to be a low pass filter (ie converting the pulse train into a charge on the capacitor and therefore a more or less stable voltage) and then the op amp, while initially used as a voltage multiplier won't it somewhat smooth the signal? I wonder what would happen if I A) try taking the op amp out and then try taking out the RC network. What would happen if I just put the output of the BS to the transistor? I believe that would convert it from an analog signal getting to the transistor from the BS to more towards the transistor being turned on and off rapidly. However, as I said its been awhile since my last circuits class. What do you guys think?
Assuming your motor draws on the order of 400mA to 500mA, at 2.5V across the motor, the transistor has to dissipate (5 - 2.5)*0.5 Watts = 1.25W. That's well beyond the capabilities of the MPS2222. You need some kind of power transistor with a heatsink.
Try something like a TIP31 that you can get from RadioShack.
Look at the Nuts and Volts Column #6 for examples of how to use an external driver with the Stamps. You do need a base resistor or you may damage the Stamp.
Took me awhile to download the 10 meg file ( I am in the woods on dialup ) to see what schematic you were talking about I agree with Mike do a direct PWM - skip the op-amp. I use power fets and opto-isolators with PWM in an H bridge for Robots.. Fan should be a piece of cake for you...
Dave
Dave, I did take a look at the column 6. What sub-category did you find the info in? I am planning on reading through all of these when I get time but want to find that schematic.
Mike and Dave, whats the best way to find the value for the base resistor I need to use?
A Stamp I/O pin can supply about 20mA at roughly 5V. The base to emitter diode of the transistor drops about 0.7V. That leaves 4.3V. At 20mA, you need a 220 Ohm resistor (R = Voltage / Current). This assumes that you're using the common-emitter switch circuit shown on the last page of the Nuts and Volts Column I mentioned.
For the transistor to switch on completely, it needs a current gain of at least 30 (0.57A / 0.02A). At this current level, the TIP31 should be fine for that.
Actually I was not able to find the schematic you are talking about. I opened up column 6 you referenced above and downloaded all the columns and searched them for transistor, pwm etc and wasn't able to find anything. Exactly which subset are you talking about inside column 6?
Ok, I will give it a go with a 220Ohm resistor between the BS and the base and once I find the schematic you are talking about I will try that out and see how it works.
Dave
Still no luck finding the transistor circuit diagram you referenced in any of the sub columns in column 6. Can you please provide a better description of where this is located so I can make sure I match your circuit for testing tomorrow morning?
First off thank you both for all your help. I have the circuit running now at about half duty cycle and the blower (.57A) is blowing and the transistor with heatsink is not heating up at all to the touch!!
Now, as a true engineer, since its working how can I improve it? The motion of the blower is still a bit choppy as its getting the pulse train. Would putting a capacitor across the fan help to smooth this out?
Again, thank you very much for your help. Mike, once I get this project working would I put it in the projects section? What is the protocol for that?