3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Trouble out putting a DC current to AC current?

Im looking for a way to use a 9v DC current to regulate an AC current.  I have a set up a diagram of my problem:

I thought of using a relay but i would like the light to be able to dim not just either be on or off, then i thought of a transistor but im not sure if that will work with both ac and dc at the same time.  I could really use some help here.

14 answers
sort by: active | newest | oldest
Feb 7, 2011. 1:42 PMsteveastrouk says:
This is one of those things that if you have to ask the question, you won't understand the answer.

I'm really not sure what the point of that circuit is for what you want to do. why does it have a window comparator in it ? Where's the cicrcuit from ? It will drive a load in 8 steps of brightness for some reason.
Feb 9, 2011. 3:36 AMsteveastrouk says:
This circuit isn't the way to do it, with AC. I'm not sure I see how the anti-log function is generated, if you say its there. The traditional method usually involves using the transfer function of a BJT as a feedback element.


So, here is a main powered formula:

Take your mains sinewave, stick it through a transformer, and generate, say a 6V sine wave.

Stick that through a comparator, and clip the sine wave into a nice square wave.

Stick that into an integrator, and turn the mains-locked square wave into a mains locked sawtooth.

Stick THAT into another comparator, but this time compare it to your audio signal, possible from your previous circuit (just take the signal from that last opamp, before the transistor)

Take THAT and put it into something like a MOC3020 opto-isolated triac driver (I've guessed at the number: I'm warm, but I suspect without research that the 3020 is a ZVC part, you DON'T want ZVC)

Use the output of the 3020 to drive a nice fat triac to drive your AC lights.

Make sure you put adequate snubbing and filters for the AC, phase control is inherently noisy.

And although that all sounds complex, it should fit on a quad op-amp, or two - you don't need a very fast "comparator", so an op-amp will work fine.

Scaling will need to be adjusted by experiment.

Steve
Feb 7, 2011. 1:42 PMJack A Lopez says:
I think I know what you want.  I think the thing  you want is a DC voltage controlled dimmer switch.  For some time I have wanted the same thing.  I have not yet got around to building one.

I'm pretty sure I've never seen anything like it on the shelves at Walmart(tm), and this makes perfect sense because most of the zombies roaming the aisles wouldn't want one, unless somebody told them to want one.  In that case, they'd have trouble keeping them in stock.

The closest thing I ever found to a clue, to a plan, as to how to build such a contrivance, was on page 20 of this document:
http://www.littelfuse.com/data/en/Product_Catalogs/PowerThyristorApplicationNotes.pdf

It shows how to drive the gate on your thyristor using a PIC(tm) microcontroller,and that might not be all that useful to you if you don't know microcontrollers. I don't. Not really. There might be some good stuff on the preceding pages... maybe back to page 15.  There are bunch of circuits on these pages, and maybe some clues here.

Of course as sort of a prerequisite to understanding all that junk, it'll help if you actually know how a lamp dimmer works. Um, here:

http://home.howstuffworks.com/dimmer-switch.htm
http://mysite.du.edu/~etuttle/electron/elect5.htm
Feb 7, 2011. 8:12 AMRe-design says:
Use a relay to turn the light on and off.
Feb 7, 2011. 9:05 AMkelseymh says:
Then buy a dimmer knob. The problem you've posed is incomplete.
Feb 7, 2011. 12:06 PMARJOON says:
well stated as i did.
Feb 7, 2011. 12:39 PMkelseymh says:
Yep :-) I think we may have overlapped -- your answer is dated "9:00 am", mine is "9:05 am".
Feb 7, 2011. 9:54 AMRe-design says:
Power it with d/c then you can use a dimmer circuti. Google "dimmer circuit" to find those.

You "may" be able to find a d/c controlled a/c dimmer but that's going to be harder and if you don't know much about working with 120 a/c it's dangerous.
Feb 7, 2011. 9:00 AMARJOON says:
use a relay like re's said. and add a dimmer to it. why do you want to do it with dc.just install a light dimmer or you want to go to some timing systems?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!