Switch 24V with the Arduino

Hello,

I haven't been working with the Arduino MEGA 2560 for very long and unfortunately can't get any further at the moment.
I have to switch 24V four times with the Arduino. Alternatively I could imagine to amplify the voltage of the digital output with an op-amp.

I've already found a motor shield that fits my needs, but it only has two channels (VMA03: MOTOR & POWER SHIELD FOR ARDUINO® – Velleman – Wholesaler and developer of electronics) . For amplification I thought of a MOSFET IRL540.
Does one of these possibilities make sense?

Thanks for your help :slight_smile:

Yes it makes sense but you have not said what current you will be switching and what is the nature of the load. Is it a motor?

The current is max. 500mA
And the task is to control a Power Switch Relay UMS00025.20T.

Just with a transistor? But because the UMS00025.20T (which is NOT a relay) needs positive voltages you might can get away with simple pull ups on the line. But if they really need 6mA that will need big resistors.

Alternatively you can use optocouplers as high side drivers.

But why on earth didn't you get the UMS00025.20T05???

Is it better to use only a transistor or an optocouplers? Do I have to pay attention to something special when making my selection?

Unfortunately, the UMS00025.20T has already been used for other tasks, so it's already there and I don't want to buy a new one.

Opto would be the simplest solution I think. Besides getting the right device for the job that is :wink:

Kimso:
Unfortunately, the UMS00025.20T has already been used for other tasks, so it's already there and I don't want to buy a new one.

So you are saying that you had a recipe that called for eggs, you only had egg noodles so you used them instead?

Grumpy_Mike:
So you are saying that you had a recipe that called for eggs, you only had egg noodles so you used them instead?

The problem is the price of an USMS00025... I've only asked for a cheaper solution.

Kimso:
The problem is the price of an USMS00025... I've only asked for a cheaper solution.

A MOSFET that can switch a 24v load with a <5v signal is under US$1. It's cheap.

You haven't really explained what you are doing and why. We don't have a schematic, we don't have a lot of information. As a result, I don't think you are getting the answers you likely envisioned.

You can make a two stage amplifier using transistors if you need to use BJTs.

Thing is, he needs a high side driver. Yes, can be done with transistors as well. But as he only needs max 6mA I think an opto is an easy and cheap solution.