I am trying to build a circuit whereby the arduino board controls the voltage that is coming from a battery to a load, cant use PWM to imitate a change of voltage and the 5v output from the arduino is too low, i am operating in a range of about 5-20 volts.
I am trying to build a circuit whereby the arduino board controls the voltage that is coming from a battery to a load, cant use PWM to imitate a change of voltage and the 5v output from the arduino is too low, i am operating in a range of about 5-20 volts.
FAULT !
INSUFFICIENT DATA !
STATE OBJECTIVE (Project Objective, ie: what are you trying to do, NOT what you are telling us but what
EXACTLY is your reason for your question ?
cant use PWM to imitate a change of voltage
What does THIS mean ? What are you trying to imitate ? What change in voltage ?
Why do you think you can't use PWM ? Do you know what an RC LP FILTER is ?
5v output from the arduino is too low, i am operating in a range of about 5-20 volts.
Operating WHAT ?
What does this mean ? Voltage of/for WHAT ?
Start over.
Project Objective:
Hi, my name Joe Blow. I am trying to control a [blank] with an arduino (fill in blank).
I want to [blank, blank] (explain what you are trying to do.
Apologies for the lack of data! I am building a miniture heat gun with adjustable temperature output (think of a soldering gun with the ability to change the temperature), so far I've planned to do this by using the arduino to control the voltage coming from an old laptop adaptor which I am using to power the circuit. I was thinking of using a potential divider circuit with a digital pot but this will waste a lot of energy?
You've stated the voltage you're looking to control is 19 volts. Okay, fine. But what is the current? Milliamperes? Amps? Kilo amps?
The typical laptop supplies are anywhere from 65 to 100 watts. At 19 volts, that's 3.4 to 5.2 amps. Is that enough for your heater? Do you know it's wattage? If so, at what rated voltage?
Since most digital pots are good for a few milliamps, I think you need to take that of the list of possible solutions.
Now a question for you. If you said your heater is 19 watts at 19 volts, it will consume 1 amp. If I apply 50% voltage, 9.5 volts, I'll have a heater that dissipates 9.5 watts, right? Yes, of course it will.
Now, what would happen if I applied 19 volts but I turned the voltage on for 1 second and off for 1 second in a continuous fashion? What would the effective wattage be with that 50% duty cycle pulse applied to my heater?
If you're not the OP, please allow him to respond, please ?
The reason I said i couldent use PWM was that the voltage the arduino supplies is lower than the power source and I did not want to fry it.
I was experimenting with transistors acting as a switch to rapidly switch the circuit on and off, but that wasent with PWM. If i hook up a transistor to the PWM output to control the current through the circuit with the load, would the shape of the voltage be similar to that of the pwm signal from the arduino?
I have a diagram but its hand drawn and not with me, ill post a picture of it in the morning
Yep, you nailed it. The power (watts) directly relate to the duty cycle of the pwm waveform. 25% on time = 25% power from your heater. 50% on time = 50% power and so on, it is linear.
You connect the output of the Arduino pwm output to an n-channel logic level MOSFET, like this one. check the product listing for a tutorial on how to connect your Arduino and load to the MOSFET.
So, once you know your heater load, calculate the amps and then the dissipation in the MOSFET which would be 0.035 * i^2. The .035 is the on resistance of the MOSFET, i is your heater current squared. More than a watt or so will most likely require a heat sink. The usage time will is a factor as well, the shorter the on time, the lower the temperature rise.
avr_fred:
...n-channel logic level MOSFET, like this one. c...
I am amazed that I can pump 60v and 30 amps through that little MOSFET. That's more power than a hair dryer. How does that little thing not burst into flames or melt?
I am amazed that I can pump 60v and 30 amps through that little MOSFET. That's more power than a hair dryer. How does that little thing not burst into flames or melt?
I am amazed that I can pump 60v and 30 amps through that little MOSFET. That's more power than a hair dryer. How does that little thing not burst into flames or melt?
@OP,
Did you or did you not try running 30A at 60V through that mosfet ? (I suspect not).
FYI, I was working in a lab one day and a 2N3906 transistor (TO-92 CASE) blew up and the shrapnel banked off the two furthest walls and then skidded to a stop on the floor near where I was working.
The piece sounded like a BB when it hit the wall and there was a cone shaped crater in the face of the transistor.
This is why safety glasses are recommended when working with exposed electronics.
If someone had been sitting right in front of that PCB when it happened and the piece hit their eye, I suspect it would have been embedded in their eyeball.