Need for a 0v to 24v output from arduino

Just like how the PWM output works at the digital pins for 0V to 5V, I need a variable output from 0V to 24V. The application does not require high currents, the currents drawn will be within 2A. I need to be able to increase the voltage with steps of 0.5 volts as well. I don't know what DAC or circuit to use to get this. I tried doing this with NPN MOSFET/transistor(TIP31C) but the voltage range is not from 0V to 24V its barely even changes. I want the configuration to be able to supply 0V to 24V across two terminals.

Thanks in advance to all those who help me.

Using a logic level N channel MOSFET transistor things will turn out much better.

1 Like

Could you suggest a MOSFET and if possible a rough circuit diagram?

Thanks!

Google is your friend ….

Look here

Hey, thanks for this! But I need to be able to go to any voltage between 0 and 24v. not just switching. I need to be able to vary the voltage from 0v to 24 using Arduino. Does that make it any clearer, or am I confusing you? xP

What you want to do is very clear.
I guess no one has come up with a simple solution just yet

2A is a pretty high current! That's going to make things difficult.

Does the type of arduino you want to use have a DAC?

One idea could be to use a DC-DC converter with variable output voltage. These often have a potentiometer to adjust the output voltage. If you could remove that pot, perhaps a digital pot could be used to replace it? It all depends on the voltage across that pot and the current flowing through it. Most digital pots are only low voltage.

There are a few problems with this .

If you want a true linear output 0-24v @2A the control element may have to dissipate upto 48watts .
You need to google linear variable power supplies to look for a suitable design , then think about how you with operate it from an Arduino
( you can get low power linear output by using a low pass filter on a PWM output ).

Why not have a switch mode 0-24v supply ? What are you driving with it ?

Just a bunch of relays. It probably won't even take 1A. Okay here is what I have to do I have a bunch of 24v relays right? I need to test them by ramping up the voltage from 0 to 24v and see at what voltage the relay turns on and at what voltage it turns off. I'm not sure what kind of circuit to use or anything of that sort. I'm a complete noob :") But all I know is how to code the Arduino, a little bit. And I have an Arduino UNO.

Can't you test that manually, with a variable 30volt lab supply.
Leo..

I can but I need it for mass testing so it's faster if I get this Arduino setup working. I also need to create a report which I can put in the code itself.

Motor driven pot on your power supply and measure the voltage and contact state .

Build a rig and do several at a time , not sure why you would want to do this anyway ; relay specs carry these factors .

How will you identify and record the individual relays , you’ll need a keyboard , monitor , scanner .
Looking more like a PC project with a database and something like National instruments. Hardware .

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.