In need of help with a pushbutton project

Hello, I am new to Arduino and I am need of some help. I have 6 relays I want to control with momentary pushbuttons. I want to make it so if say, button 1 is pushed, relay one will stay on until a different button is activated, but as soon as you push another button then the first relay is deactivated and the most recent buttons relay is activated. So at any given time any of the 6 buttons will override the last. Also these relays are designed to activate them you connect the control pin to ground or any 0v reference. I don't know what to call this type of action. Any help or guidance is greatly appreciated even if its just on where to search or what to call it.- Thank you

I'm not sure it matters what you call it, but generally, if only one button or none can be pressed at a time, they're called radio buttons.

Hello
Do you think about the radio button function or is a hidden function included?

thank you. this helps, I will look into it..

Your project sounds quite easy and should not be a problem. Almost any type of Arduino should be suitable. As you are a beginner I would recommend the classic Nano v3.

The type of relay input you mentioned is usually called "active low". It's no more difficult to deal with than the other types.

But if you can say more about the purpose of your project, we may be able to give you some other ideas. Relays may not be the best solution, for example.

Thanks for the recommendation. I have a vintage audio recording console and I have upgraded the monitor section. The old monitor section has multiple source inputs selectable from the control panels latching illuminated pushbuttons, The Pushbuttons control relays that the sources go through. so you can monitor aux inputs to the Console. Its a crude vintage analog style matrix with the pushbuttons because in order to get to source 3 and 4 you have to switch off 1 and 2. and so on. I can change the pushbuttons to momentary. and the LED for the pushbutton illuminates with same ground connection is made as relay.

To get yourself started, think about drawing out a schematic (on paper is ok), then post that here and we can critique it. If you have a drawing package that’s even better.

Schematics are a VERY useful skill both for you and sharing your circuit ideas.

Once we all understand how it’s going to be connected up, it’s a lot easier to plan the software side. As mentioned, this isn’t a hard project, but is a great starting point for a beginner.

DO NOT POST A FRITZY DIAGRAM... none of the old timers will spend more than 5-seconds looking at it!

1 Like

Interesting. I wonder why relays were used at all. Why not have the buttons switch the audio signals?

So you want to drive the existing relays? What voltage and current is required for that? And you want to add more channels and therefore need more relays?

I believe the relays were used for multiple reason. The source signals are balanced left and right audio signals. You can select program main, program 1, 2 and 3, or aux 1, aux 2, aux 3.
The programs are just bussed from the master and subgroups amplifiers and
aux 1,2 and 3 enter through the back panel. Its easier to have them enter in then straight into a relay board at the back of the console, where the program amp also live, instead of running the wires the width of the console. this makes for shorter cables which is less likely to pickup noise and then all you need is 1 wire from the button to control the relay.

I'll work on a schematic and load it soon

Hello
all in all it´s a good example to practice OOP. :nerd_face:

1 Like

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