Hi,
I'm repairing a machine that has a faulty PLC expansion board in it. The board in question takes 12 x 5v logic inputs to turn on/off 12 x 24v relays.
The board is in bad shape (spilled acid on it) so I thought I could use an arduino uno instead. I can make my own relay driver 'shield' with a couple of 2803 ICs, I'm ok with the electronics side but don't know any programming. Would the arduino be suitable to control 12 relays? Does it have that many GPIO pins? If so could someone link me to a good GPIO programming tutorial or script that I can take and tweak? It's just on/off for 12 relays depending on its corresponding logic input (0v-5v).
Thanks, this looks like handy code, though I'm still wondering if the arduino uno can manage 12 separate inputs and 12 separate outputs.. It looks like there are less than 24GPIO pins on it.
I'm still wondering if the arduino uno can manage 12 separate inputs and 12 separate outputs.. It looks like there are less than 24GPIO pins on it.
Which Arduino are you looking at ?
The Uno has 20 input/output pins whereas the Mega has 70.
I ordered a uno and a 16x2 LCD for uni holidays to try and make a speedo and tacho for my motorbike- so I was going to use that and claim the money back from work. I'll double check how many valves there are, I think up to 4 aren't used, that being the case I may be able to use the uno then.