electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
  host / artist show at your time
today> Twyndyllyngs live tonight! Chez Mosc
 Forum index » DIY Hardware and Software
How do I connect a light dimmer circuit to a DC motor?
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
dfgsdfg



Joined: Jan 01, 2009
Posts: 19
Location: el dorado hills, ca

PostPosted: Wed Aug 26, 2009 6:22 pm    Post subject: How do I connect a light dimmer circuit to a DC motor? Reply with quote  Mark this post and the followings unread

I found a light dimmer switch with a slide potentiometer on it.... and I want to use it to control the speed of a dc motor... all the circuit has is 2 wires... 1 from the ground of the transistor and the other on the switch... now how do i connect the power plus the motor? I tried connecting 1 wire of the circuit to one leg of the motor, then the other leg of the motor to the power, then the power to the other circuit wire.. if that makes any sense... basically like you would attach a switch to a potentiometer...

i really suck at electronics, can anyone help?
Back to top
View user's profile Send private message
EdisonRex
Site Admin


Joined: Mar 07, 2007
Posts: 4579
Location: London, UK
Audio files: 172

PostPosted: Thu Aug 27, 2009 12:24 am    Post subject: Reply with quote  Mark this post and the followings unread

Unless you like smoke and fire with your light show, don't try it that way.

First of all, a light dimmer is an AC device, and high voltage as well. Those slide dimmers work by clipping parts off of the AC sine wave, but the voltage stays at line voltage. Not being sure what DC voltage your motor wants, or how big it is, I am still quite sure that a DC motor will not spin in any direction under 60 (or 50) cycle AC. It'll make a real loud buzz, before smoke starts coming out of it.

What you need to control a DC motor is, unsurprisingly, a DC motor control. Depending on the size of the DC motor, you can either buy an RC motor speed control or build a fairly simple one. I think the LM298 motor driver does a good job too and is pretty cheap. Determining the size of a DC motor usually involves reading the label on the side of the motor, although not all DC motors have nameplates. Size/diameter of the shaft sometimes helps. Pictures help too.

Hope this helps (and saves your motor).

_________________
Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.


Home,My Studio,and another view
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Thu Aug 27, 2009 7:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, a proper DC motor control circuit (basically a controllable current source) is the best way to accurately and repeatably control a DC motor.

However, I think that for a noncritical application you might be able to get away with using an AC lamp dimmer - but I think there would be crappy properties. In the process, you would also abuse a transformer.

So take the lamp dimmer output and run it through a transformer (such as a 12 volt transformer) that has rectifier diodes and a big filter cap at the output. The output then becomes DC assuming the cap is big enough. Our hypothetical DC power supply would probably have a range of 0 to 15 or so volts.

Basically, this is a very crappy variable DC supply. Did I mention it is crappy? Part of the crappiness will manifest in the transformer getting warm. If it's big enough (enough amperes) then it won't get as hot and might be tolerable. The transformer may also buzz depending on the dimmer setting and the construction of the transformer.

Choosing a transformer will largely be guesswork.

It's a crappy idea, but it might work.

_________________
FPGA, dsPIC and Fatman Synth Stuff

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
corruptio optimi pessima
Back to top
View user's profile Send private message Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24437
Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320

PostPosted: Fri Aug 28, 2009 11:33 am    Post subject: Reply with quote  Mark this post and the followings unread

ScottG wrote:
Well, a proper DC motor control circuit (basically a controllable current source) is the best way to accurately and repeatably control a DC motor.


Pulse Width Modulation works well.

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Fri Aug 28, 2009 12:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yeah, I've heard of pulses being used with constant DC for model trains. The power supply pulses when the train goes slow (creep) because a low constant voltage won't provide sufficient energy to start it from a dead stop. As the train speeds up, the voltage is more of a constant voltage with pulses on top of the DC level. Each pulse goes from wherever the DC level happens to be to the rail.

Bottom line is that there are several good ways to control a DC motor, my point was that using an AC dimmer as I described would be a variable DC supply that could drive a DC motor, but the method is crappy for more than one reason.

_________________
FPGA, dsPIC and Fatman Synth Stuff

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
corruptio optimi pessima
Back to top
View user's profile Send private message Visit poster's website
EdisonRex
Site Admin


Joined: Mar 07, 2007
Posts: 4579
Location: London, UK
Audio files: 172

PostPosted: Mon Aug 31, 2009 6:26 am    Post subject: Reply with quote  Mark this post and the followings unread

ScottG wrote:
Yeah, I've heard of pulses being used with constant DC for model trains. The power supply pulses when the train goes slow (creep) because a low constant voltage won't provide sufficient energy to start it from a dead stop. As the train speeds up, the voltage is more of a constant voltage with pulses on top of the DC level. Each pulse goes from wherever the DC level happens to be to the rail.

Bottom line is that there are several good ways to control a DC motor, my point was that using an AC dimmer as I described would be a variable DC supply that could drive a DC motor, but the method is crappy for more than one reason.


PWM is really the way to control DC motors. The RC (Radio Control) speed controllers I use in the fighting robots output PWM, and the heavies use big (750W) DC motors. European clothes washers (Bosch, etc) use PWM to vary the speed of the motor. The controllers for these are FET based and are pretty beefy (120A). Smaller motors can use smaller controllers, obviously.

A line level light dimmer doesn't actually use PWM though. In a way, you could say that it is PWM since the triac is changing the threshold at which the output will pass current. So your sine wave starts having steep sides to it. And there's still the negative voltage component which would have to be rectified somewhere, but would then give you half of the "pulses". And the "pulse" isn't square topped, it's the unchopped part of the sine wave.

Now with non-sinusoidal waves come harmonics, which have extra energy associated with them. Power transformers, unlike smaller audio transformers, don't always like all that extra harmonic content, which would turn into heat. Plus you'd get some back EMF to the triac, which probably isn't going to like that.

Which is another consideration, back EMF of the DC motor. Without some kind of rectification after the transformer (full wave rectification) the transformer would get back EMF every time the motor starts, stops, or reverses (uncommanded, as this design can only go in one direction). Back EMF isn't good for the transformer either, although it's not the only evil, but that can translate back through the primary to the triac in the dimmer and do bad things there. At low initial voltages it can be absorbed by overdesigning the spec of the triac, but 99.9% of household light dimmers are not overdesigned. An H-bridge motor controller gets around these problems.

The energy levels of line voltage should be respected. 6-36V is rarely lethal, at any current level. 115 and 230 volts AC are quite frequently lethal.

_________________
Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.


Home,My Studio,and another view
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use