Control ports 24V with Arduino

I am working on a prototype project to control 20 PWM/relay ports by reading potentiometers and sensors using an Arduino Mega. The project requires controlling the ports with 24V.

I would like to know what commercial solutions you recommend to be able to control the 24V PWM/relay ports using the Arduino Mega.

I need something that can be easily integrated with the Arduino to reliably and accurately control the ports at 24V. I am open to suggestions of relay driver modules, relay shields, or other components that can meet the needs of my project.

I appreciate any guidance you can provide

Sincerely,

We mostly carry hobby-grade boards/sensors/electronics, but poke around https://www.sparkfun.com/categories/360 to see what all we have

An NPN transistor switch can be used to control a 24V input. The logic is reversed (HIGH on the Arduino output sets LOW on the 24V input), which can be corrected in the Arduino code. See schematic below. Part values are not critical.

For better informed advice, post a link to the 24V device to be controlled.

Capture.PNG