Shop OBEX P1 Docs P2 Docs Learn Events
Controlling AC Universal Motor (Blower) with a Propeller — Parallax Forums

Controlling AC Universal Motor (Blower) with a Propeller

I'm trying to figure out a good way of controlling a blower with a Propeller.

blower.jpg

The blower is the one shown above from Home Depot.

Duane Johnson posted some useful information here.

This is figure 6.9 Duane mentioned.

UniversalMotorControl160705a.PNG

The above circuit is supposed to be useful when the universal motor is used to load which can vary. I figure the blower motor should experience a constant load so I think the circuit shown in figure 6.2 from the page 93 of the ON pdf should work fine.

PowerControl160705a.PNG

I don't understand the highlighted symbol. Based on the text of the pdf, I assume it's a symbol for a DIAC.

The guy I'm working with said he has used the circuit below to control blowers.

Diac_Triac_Schematic.png

After reading in the ON Semiconductor pdf a bit, I figure the above circuit is pretty much the same thing as the circuit shown "figure 6.2".

In all these circuits a pot is used to control the speed. How do I replace the pot with a Prop?

Ben on his Applied Science channel used a LDR with a LED to control a drill with an Arduino. I figure I can use the same LDR/LED trick with one of the above circuits but I also wonder if there are other/better solutions.

Duane Johnson mentioned using a SCR (silicon controlled rectifier) but I don't think a SCR would be a good choice for this application since it limits one to half of the full power of the blower.

I looked for TIACs on Digikey and was overwhelmed with all the options. I confess to not understanding the various filter options.

Do any of you have a suggestion of which DIAC/TRIAC combo I should use with this 8 amp blower?

Any suggestions on a better way of controlling this blower with a Prop?

BTW, I'm aware one can use a variac to control something like this.

variac.png

I just don't see an easy way of controlling a variac with a Prop.
400 x 400 - 9K
296 x 223 - 13K
520 x 268 - 21K
176 x 154 - 41K
«13

Comments

  • I found a couple more videos on the topic of using a microcontroller with AC loads.

    This is another TRIAC option.



    Here's a video showing how to use a IGBT transistor to control an AC load.



    I couldn't find the exact transistor "IRG4PC50PbF" at Mouser but Mouser carries this one, which I figure should work.

    It sure seems like this second video is treating the load like a DC load.

    Any suggestions on which option is best for the blower?

  • Q. ...replace a pot with a prop?
    A. Digital potentiometer? Don't know about isolation, though. Some of those circuits look like the pot is tied to AC power.

    I guess you need to control the speed or you would just use a relay.
  • Q. ...replace a pot with a prop?
    A. Digital potentiometer? Don't know about isolation, though. Some of those circuits look like the pot is tied to AC power.

    I guess you need to control the speed or you would just use a relay.

    Yes, I need to be able to control the speed/power to the blower. I figure controlling the power is good enough for this application since the load should remain constant.

    The two videos I posted use optoisolators. Probably both of the two methods shown in the videos should work well, I'm wondering if one method is better than the other.

    I'm hoping for a second opinion on the IGBT part I linked to.

    I'm also hoping for a first opinion on an appropriate TRIAC. The filters Digikeys shows when selecting a TRIAC went right over my head.

  • You could control a Variac with a continuous rotation servo through a gear train.

    Or I KNOW, I KNOW! Get one of erco's robots to do it!

    tc
  • I would use an optoisolated zero-crossing detector to provide AC-line timing info to the Prop. Then use an opto triac driver (e.g. MOC3010) to trigger the triac that drives the blower. The trigger timing will be a delay from the zero-crossings: the longer the delay, the later in the cycle that the triac gets triggered and the less power that gets delivered to the blower.

    -Phil
  • kwinnkwinn Posts: 8,697
    What Phil said. It is about the simplest and safest way to do it. Very reliable as well. It was used on instrument sample conveyors to control the conveyor speed as the sample approached the analysis position.
  • Duane,
    Silicon Chip has had a few articles on AC motor speed controllers that you may wish to look at.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2016-07-06 02:13
    None of those circuits I saw had any EMI suppression in them which is never shown but always required and even if you didn't fit them since it is a one-off you might find all that chopping might cause problems with other devices, and maybe even the neighbors digital TV reception. However while phase control works well with certain loads I'm not sure how that particular blower motor will "like it" in terms of heat etc as you don't want to burn it out trying. I have used phase control before on big big blower motors and I simply used those opto-triacs driving a the main triac although in your case I would just use a suitable SSR which is a triac with a built-in opto. You need to have clean phase information for phase control from a Prop, there is no need for any electronic pot style circuit as it is simply a matter of timing and you just decide at what part of the phase to turn the triac on.

    Now this is the thing, if your Prop is going live then you could drive the triac directly through a transistor and the phase information can come into an I/O via another NPN with its base connected to AC through a couple of large value resistors (for mains ratings). The edges of the phase input are close enough to the zero-cross for you to time into the 1/120 second cycle (60Hz) before you trigger the triac. Once triggered for perhaps a few hundred microseconds you can release the trigger.

    If now you want it isolated because you may connect to it serially then take all the proper precautions in addition to using optos both for drive and for phase info. Personally I would leave it live and connect to it safely via Bluetooth but that's because I use my Tachyon and I can talk to it and reprogram it on the fly which is a lot of fun, even from my phone.
  • You could control a Variac with a continuous rotation servo through a gear train.

    Not that I think you're being serious, but since I knew so little about AC circuits, using a servo to control a Variac was one of the ideas which crossed my mind when I first started thinking about controlling the blower.

    I have a feeling there are more elegant solutions.

  • macrobeak wrote: »
    Duane,
    Silicon Chip has had a few articles on AC motor speed controllers that you may wish to look at.

    I could find a full article on "induction motors" but the "universal motors" article only has the first page available for free. The universal motor control article looks like it would be interesting but the article appears to use a pot for speed control rather than a microcontroller.

    Is there another Silicon Chip article you think would be useful?
  • The universal motor is very inefficient but does run on DC which means you could have a simple switch and a diode to run it on half-wave. Depends upon what you are trying to do I guess but it's something you could try.
  • I would use an optoisolated zero-crossing detector to provide AC-line timing info to the Prop. Then use an opto triac driver (e.g. MOC3010) to trigger the triac that drives the blower. The trigger timing will be a delay from the zero-crossings: the longer the delay, the later in the cycle that the triac gets triggered and the less power that gets delivered to the blower.

    -Phil

    I wouldn't have thought the Prop would have to monitor the zero-crossing. The circuits I've looked at use feedback from the AC line as a sort of automatic zero-cross detector.

    I'm certainly willing to monitor the AC line with the Prop but I'm a bit surprised this is needed. Of course my being surprised isn't very meaningful. I don't know much about AC control.

    The first video in my second post has this schematic at time 9:34.

    TriacControl160706a.PNG

    I'm interpreting the circuit as using feedback from the AC line to detect zero-crossing along with a TRIAC driver driven with a PWM signal from the microcontroller. Would detecting the zero-cross using the Propeller provide better control?

    As I mentioned, I'm not opposed to monitoring the AC line with the Prop, I just didn't think it would be necessary.

    I suppose my other concern with monitoring the zero-cross with the Prop is my lack of knowledge on what part(s) to use. This article has several zero-cross dector circuits but I didn't see any reference to mains voltages in my initial skimming of the article.

    Could a simple LED/phototransistor circuit be used as a zero-cross detector?
    654 x 488 - 163K
  • in your case I would just use a suitable SSR which is a triac with a built-in opto.

    I think I have a couple SSR I could try.
    If now you want it isolated because you may connect to it serially then take all the proper precautions in addition to using optos both for drive and for phase info. Personally I would leave it live and connect to it safely via Bluetooth but that's because I use my Tachyon and I can talk to it and reprogram it on the fly which is a lot of fun, even from my phone.

    I'll probably go the opto isolated route since I want the device to be able to communicate (over USB) with a PC.

    I'll ask my LED/phototransistor question again. Is there any reason why I can't use a large value resistor with two LEDs to signal to a photodiode as a zero-cross detector?

    Thanks for all the input.

  • Monitoring the AC line is necessary only if you want control over the motor's speed. Otherwise, for simple on/off control, the circuit you've shown above will work fine by itself.

    -Phil
  • Monitoring the AC line is necessary only if you want control over the motor's speed. Otherwise, for simple on/off control, the circuit you've shown above will work fine by itself.

    -Phil

    Thanks for clarifying. I incorrectly assumed the last schematic I posted allowed speed control without needing to track the zero cross.

  • You need zero-cross because you need to time when to turn on the triac through a half-cycle so you can vary the phase angle and thereby the speed. The circuit you have shown also shows that somebody didn't really know what they were doing and simply copied and pasted as that diac is a relic from an RC speed control circuit, all it does is allow the RC to charge to a voltage before conducting. Now, why you are talking about a couple of LEDs and a photodiode when an actual optocoupler is easier and better.

    Now please take this as a caution as you are asking lots of basic questions for this type of circuit which means you might not be aware of the different safety aspects of designing and working with mains voltages. I would not even suggest that you contemplate connecting the CPU end of the circuit to your PC via USB, I would hate to not hear you asking any more questions on this forum after an "incident" if you know what I mean!
  • You need zero-cross because you need to time when to turn on the triac through a half-cycle so you can vary the phase angle and thereby the speed. The circuit you have shown also shows that somebody didn't really know what they were doing and simply copied and pasted as that diac is a relic from an RC speed control circuit, all it does is allow the RC to charge to a voltage before conducting.

    In the YouTube video the guy mentions the DIAC isn't really needed but that it's useful when driving an inductive load.
    Now, why you are talking about a couple of LEDs and a photodiode when an actual optocoupler is easier and better.

    Because I have LEDs and photodiodes on hand. I've used optocouplers to control outputs but I don't think I've ever used an optocoupler as an input. Though now as I type this I realize I likely have some optocouplers which are intended to be used with a MIDI interface.
    Now please take this as a caution as you are asking lots of basic questions for this type of circuit which means you might not be aware of the different safety aspects of designing and working with mains voltages. I would not even suggest that you contemplate connecting the CPU end of the circuit to your PC via USB, I would hate to not hear you asking any more questions on this forum after an "incident" if you know what I mean!

    I'm glad to hear you'd like to continue to see questions from myself. I certainly intend to keep asking them.

    I think I understand the dangers of working with mains voltages. I've only done a few projects involving mains voltages in the past and these have been relatively simple relay control projects. I certainly don't intend to create a direct electrical connection between the mains voltage and my PC. I do think as long as the Propeller is only interfaced with the main voltage using optocouplers, the Prop should be safe to use with a PC.

  • I would hate to not hear you asking any more questions on this forum after an "incident" if you know what I mean!

    I would hate to not hear Duane *answering* any more questions on this forum, as well.
  • kwinnkwinn Posts: 8,697
    Duane Degn wrote: »
    You could control a Variac with a continuous rotation servo through a gear train.

    Not that I think you're being serious, but since I knew so little about AC circuits, using a servo to control a Variac was one of the ideas which crossed my mind when I first started thinking about controlling the blower.

    I have a feeling there are more elegant solutions.

    You could always try controlling the speed by cycle count controlling the power to the motor. Use a zero crossing SSR or zero crossing optotriac driving the triac and cycle power on for x full cycles, off for y full cycles.
  • Duane Degn wrote: »
    You could control a Variac with a continuous rotation servo through a gear train.

    Not that I think you're being serious, but since I knew so little about AC circuits, using a servo to control a Variac was one of the ideas which crossed my mind when I first started thinking about controlling the blower.

    I have a feeling there are more elegant solutions.
    Servo controlled Variac should qualify for a Rube Goldberg award at the very least I'd think.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2016-07-07 01:06
    mmowen wrote: »
    Servo controlled Variac should qualify for a Rube Goldberg award at the very least I'd think.

    Especially if we have a complex mechanical arm arrangement (along with a gloved mechanical hand) from the servo to the Variac!
    I know of motor controlled feet long linear "variacs" in large mains regulators, but this would be more like WWII tech vintage I would think!

    @Duane: as long as you observe clearances and possible leakage or spark-over paths (due to transient events etc) as well as general layout and packaging then it should be fine. I also route an air-gap in certain parts of my pcbs as a precaution from those higher voltage spikes that can happen but the air-gap also helps if the board is not coated and accumulates dust and moisture which can form a high resistance path across the barrier. Of course you can add transient protection on the mains side to earth which will help as an anomalous event could do some damage if you happen to have your PC connected at the time. If it all seems like overkill then maybe it is but as long as we keep the "kill" over there, the better.

    EDIT: don't use cheap strip board if you prototype, stick with FRB and universal double-side plated-through matrix board as the FRB is more stable and the PT holes provide mechanical stability so the soldered pads can't pop off the laminate and drift around. Strip board is ugly and you are always cutting tracks which can leave copper strands behind whereas matrix board like this is real easy to work with and much better.



  • I have some LTV-847 optoisolators. I'm hoping to use these to monitor the zero cross of the AC line.

    160-16-DIP_sml.jpg

    I'll cut a slit in the pref board and have the DIP chip straddle the air gap made from the slit. I have some perf board I purchased from Sparkfun (before learning of less expensive options). Here's a link to the SparkFun perf board.

    08619-01.jpg

    I don't think the latest forum software displays the Parallax font correctly so I'm including a screen grab of the schematic.

    Optoisolator190708a.PNG

    I don't have a 2W resistor so my plan is to use eight 1/4W resistors in parallel (with an appropriate resistance).

    As I noted in the schematic, I plan to use 400 Volt 1N004 diodes. I figure the max voltage from the AC line should be 170V.

    I'm hope some of you could let me know if this is a safe approach or not.
    634 x 490 - 21K
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2016-07-09 01:34
    Thanks for sharing. Do you know that you can do away with the bridge rectifier for the opto and simply put a 1N4148 in reverse across the opto LED? That way it will only be operating on half-wave but you still get the zero-cross edges and with the 17k resistor since it is running from a higher voltage you are better off using series rather than parallel as this increases the voltage rating, so try 2k2 x8. However it is also possible to use the reactance of a capacitor in series with one resistor to feed the opto as this is a common technique for sneaking small amounts of power from mains while running cool. (~150nf mains rated + 2k2) NOTE: actually the cap may not be a good idea since it may not be in phase.

    BTW, you must be a glutton for punishment drawing up schematics in Parallax font! Diptrace is free and the schematic editor is easy to use.

    HINT: download LTspice for your schematics and you can simulate the circuit at the same time, observe waveforms and currents etc.
    Here is a circuit that switches very close to the zero cross point.
    Screenshot%20from%202016-07-09%2011%3A47%3A16.png
  • Duane DegnDuane Degn Posts: 10,588
    edited 2016-07-09 02:39
    Thanks for sharing. Do you know that you can do away with the bridge rectifier for the opto and simply put a 1N4148 in reverse across the opto LED?

    Now that you mention it yes, I realize I can do away with the bridge rectifier. I wasn't thinking straight and I was concerned about the backwards voltage across the opto's internal LED. I didn't think about using a diode the way you suggested. I'm glad I asked about this again.
    . . .with the 17k resistor since it is running from a higher voltage you are better off using series rather than parallel as this increases the voltage rating, so try 2k2 x8.

    Okay, I'm hoping you had a slip of the the mind and were thinking of capacitors instead of resistors. Otherwise I'm very confused. I know capacitors in series reduces the capacitance while raising the voltage capacity but I thought with resistors one just worried about how much current was flowing through them?

    I figure I'm shooting for about 10mA through the opto's LED. If I did my math correct the max voltage from 120VAC is 170V. To get 10mA from 170V I figure a 17K resistor should do the job. I figured I was safe ignoring the LED's voltage drop since it's so small compared with the overall voltage.

    10mA at 170V gives a power requirement of 1.7W. I have a bunch of 1/4W resistors and I figure 8 of these in parallel will give me a resistor of 1/8 the resistance at eight times the power rating. Isn't this right? I have a serious misunderstanding about how resistors work if I'm wrong about this. Wouldn't eight 1/4W resistors in series still only be rated for 1/4W?

    A 1N4148 is really okay? If I'm remembering correctly 1N4148 are little tiny signal diodes. They just seem kind of small for line voltages. As I think about this a bit I realize you're probably almost certainly right. Most of the voltage drop will be across the 17K resistor and only a small amount of current will be flowing through the diode. Ignore this paragraph, I figured out you're right.
    BTW, you must be a glutton for punishment drawing up schematics in Parallax font! Diptrace is free and the schematic editor is easy to use.

    I like and use Diptrace. There are other reasons for using the Parallax font. (These reasons aren't very good as I stop to think about them.)
    HINT: download LTspice for your schematics and you can simulate the circuit at the same time, observe waveforms and currents etc.

    Darn it, you're right again. I should do what you suggest. I'm just not anxious to learn a new software interface.

    Is the purpose of the transistor on the Propeller side of the circuit just to invert the signal? I don't think I really care if the optoisolator inverts the signal. I'll just write the Propeller code knowing the input is inverted.

    Thank you very much for taking time of give me your advice.

  • Duane,

    Do not use resistors in parallel on the line-in side. Put appropriate resistors in series for safety reasons.

    -Phil
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2016-07-09 03:06
    The capacitor's reactance means it effectively doesn't dissipate any power and at mains frequencies its "resistance" is large enough to limit the current. Trouble is the current is out of phase with the voltage so you can't use it for phase detection, sorry.

    As for the diode just remember that it is only handling limited current in the negative cycle while the even smaller signal diode, the LED, is handling the current in the positive cycle. So the 1N4148 is probably at least 10 times beefier than the opto LED!. Your calculations for power are based on DC but here we are handling cyclic power and it is only at that peak for a very short time but you could calculate based on 0.707 RMS of that figure I suppose. If your LED resistor is too high as you have calculated then you won't achieve a sensitive turn-on close to the zero-cross point and besides the LED will handle this no problem.

    The output transistor is to buffer the weak pullup on the opto as we want the opto to be sensitive close to the zero cross and this means reducing the opto collector current too, hence the large 220k but the output transistor only needs 0.6V min to switch so you end up with an output that switches close to the zero-cross point.

    LT spice is very easy to use, hit R for a resistor, ctrl R to rotate it, C for cap, F3 for a wire. Use it for an hour and you will be comfortable with it.
    Here's the opto circuit to get you started, just change values to see what happens.
  • kwinnkwinn Posts: 8,697
    edited 2016-07-09 02:51
    Duane Degn wrote: »

    10mA at 170V give a power requirement of 1.7W. I have a bunch of 1/4W resistors and I figure 8 of these in parallel will give me a resistor of 1/8 the resistance at eight times the power rating. Isn't this right?

    And 8 2.2K resistors in series will give you 8 times (17.6K) the resistance and roughly 8 times the voltage rating, which is a better way to go.
  • Thanks guys. I'm glad I asked.
    Your calculations for power are based on DC but here we are handling cyclic power and it is only at that peak for a very short time but you could calculate based on 0.707 RMS of that figure I suppose. If your LED resistor is too high as you have calculated then you won't achieve a sensitive turn-on close to the zero-cross point and besides the LED will handle this no problem.

    Duh, I should have thought of that. Thanks.

    I'm going to think about what you all told me and do a bit more research based on this new information. I'll have some more questions soon.

    Thanks again for all your help.

  • Forehead slap!

    I'm finally getting what you're all telling me about the resistors in series.

    I'll try to come up with a good reason for my sanity slip later. Thanks for your patience.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2016-07-09 05:08
    If I'm reading the optoisolator's datasheet correctly, the LED is intended to be used at 20mA. The "Absolute Maximum Rating" on the input LED is 50mA.

    The LED's forward voltage 1.2V (at 20mA).

    Apparently I don't need to use resistors to limit the current based on the max voltage (170V) but I can use a lower voltage level to calculate the resistors to use reach a target current of 20mA. My earlier resistor value was based on 10mA LED current which I've found works fine for data transmission through the isolator. Based on what has been suggested here, I think I'd be better off shooting for a current through the LED of 20mA.

    120V - 1.2V / 0.02A = 5940 ohm

    Since I'm using 20mA instead of 10mA in my calculations, I need to use a different power rating for the resistors.

    120V * 0.02A = 2.4 Watts (I figure I'm okay to ignore the voltage drop across the diodes in this part of the calculation.)

    If I use 1/4W resistors: 2.4W / 0.25W = 9.6

    I figure I need at least 10 resistors in series.

    Since I want a total of 5940 ohms, wouldn't I want to use ten 594ohm (or there abouts) resistors?


    Is this correct so far?

    Edit: I'm not sure about these resistor power power calculations. I'll check these calculations tomorrow.

    Thanks again for everyone's help.



Sign In or Register to comment.