using arduino as rotary switch

I have an analog 5 position rotary switch to control a device. It has one input and 5 outputs (dc+ only). It takes 12V input and give it to one of the outputs based on the position of the rotary switch. I want to do the same with a Arduino board and control the output programmatically (wifi, or bt, doesn't matter). I could use relays for this but i wonder if there is a better way to do it without too much cables. Basically i need a relay-like module with one 12v output and 5 controllable outputs. Do you have any hardware suggestions?

The rotary switch looks like the image

Thanks in advance.

A relay shield is great because it keeps you power circuits completely separated from the Arduino side of things. They are also idea for high current. If you want to go solid state then have a look at mosfet shields.

I'll just bet your switch also opens one circuit before applying 12 volts to the next circuit. You want to be very sure to do the same with what ever you settle on. If doing relays, be sure to allow enough time for the relay that is opened to actually open it's contacts before you close the contacts on the next relay. An Arduino is SO MUCH faster than a relay can operate.

Paul

You could consider a 4 channel opto-isolator: A87 4 Channel Optocoupler Isolation Module High And Low Level Expansion Board For Arduino, for example:
3pcs a87 4 channel optocoupler isolation module high and low level expansion board geekcreit for arduino - products that work with official arduino boards Sale - Banggood.com-arrival notice-arrival notice. For your rotary switch you need a separate 12v powersupply in that case. You will also need resistors to reduce the current through the optocouplers.