Go Down

Topic: Doubling pwm output voltage. (Read 6918 times) previous topic - next topic

Vancouver Reefer

I understand the pwm output on the arduinos is 0-5V. Is there a way i could make this voltage go from 0-10V?

Would a king of voltage doubler circuit work on the end of the output. Similar to a voltage divider, but a multiplier instead???

VR

estranged

See if this playground article is what you're after:

http://www.arduino.cc/playground/Main/RegulatedPositiveVoltageBooster

Vancouver Reefer

I was looking at keeping things something simple. So would something like this work:


darudude

this voltage doubler would work for something that is on or off for long periods of time, cause it takes some time for the caps to charge. Therefore you will never get a full resolution pwm to work with this circuit.

You are better off working with active components like transistors or op amps? but you need a source of 10+V. Do you have that source available?

Vancouver Reefer

Getting the +10v source is not a problem. Just figuring out a way to control the pwm linearly is the problem!

koyaanisqatsi

You need a transistor driver like the following:



This will give you up to 500mA at 10VDC (minus about .7v drop of the transistor)
What about elevensies? Luncheon? Afternoon tea? Dinner? Supper?

Vancouver Reefer

koyaanisqatsi:

i cant see any diagram and it asks me for a password everytime i open up the page.

VR

koyaanisqatsi

Ugg!  Sorry, I do that all the time.  ::)  Fixed now.
What about elevensies? Luncheon? Afternoon tea? Dinner? Supper?

Vancouver Reefer

im trying to dim a flourescent light driver that has pwm and 0v pin, so how would i attach it to that circuit???

Is there a way to have just the doubled voltage outputted?

ie:



I know that circuit you showed would work for a fan etc, but how would i connect the ballast?

koyaanisqatsi

#9
Apr 22, 2009, 05:08 am Last Edit: Apr 22, 2009, 05:19 am by koyaanisqatsi Reason: 1
In that case, the load resistor in my diagram becomes a pull-up resistor and the connection to your ballast input comes off of the circuit between the pull-up resistor and transistor.

This will invert the PWM signal, so you'll have to account for that in software.  When the PWM signal is high, the transistor will conduct to ground and put a low on the ballast input.  When the PWM is low, the transistor will be off and the pull-up resistor will put a high on the ballast input.

The values of the resistors can be higher in this case too.  You could probably use 10k resistors for both, depending on how the ballast reacts.  You may need to test with different values to find the best setup.

EDIT: I modified and reuploaded the diagram, which I realized is not the best thing to do right after doing it.  I should have put up a new image instead.  Oh well...   :P
What about elevensies? Luncheon? Afternoon tea? Dinner? Supper?

Vancouver Reefer

You mean like this:



Then arduino pwm 0 - 259 will dim from on to off ( 100% - 0% brightness) and vice versa, if im reading you correct?????

koyaanisqatsi

Yep, that's it.  I am a slightly concerned about tying the Arduino ground to the ballast 0V input.  Be sure that's an OK thing to do before doing it.  It should be explained in the ballast documentation.
What about elevensies? Luncheon? Afternoon tea? Dinner? Supper?

Vancouver Reefer

This is the kind of thing im looking at:

http://www.1000bulbs.com/images/PDF/Mark7-0-10V-brochure.pdf

Just scroll down a little to the diagrams and let me know what you think.

VR

koyaanisqatsi

Man, there just isn't very much information on what the "Mark 7 0-10v" signal should look like.  A few docs I found through Google all said something like "supports 0-10v dimming" but none of them spec'd the actual signal.

So I'm not sure what you're going to get when you hit it with a PWM signal.
What about elevensies? Luncheon? Afternoon tea? Dinner? Supper?

Vancouver Reefer

Yeah i know what you mean. I know you can hit it with a POT. looks like more research is involved, but at least now i now how to get the pwm signal to it.

Thanks for all your help.

VR

Go Up