Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Analog Line Level Preamplifiers , Passive Pre-amps, Crossovers, etc.

Help with one button relay input switching
Help with one button relay input switching
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 9th January 2018, 01:25 PM   #1
satx is offline satx  United States
diyAudio Member
 
Join Date: May 2012
Location: San Antonio, Texas
Default Help with one button relay input switching

I'm pretty new to electronics, but I've been building speakers with the help of you good people for years

I'm wondering if anyone can provide a little assistance here. I am trying to control input switching using relays and a single momentary push button. I've bought a relay input board off ebay that's pretty good. And I also have now purchased two flip flop modules that I can't get to work. The first was a negative trigger and the second a positive trigger.

These are what I have:

Positive trigger module-

3-10V 3-Way Flip-Flop Interlock Switch Circuit Module 1800mA for LED Relay Motor | eBay

Relay board-

Audio Signal Switching Selector Relay Board Signal Amplifier Switching Board | eBay

I fried the negative trigger out of frustration because the board takes 10v or so to trigger the relays. And it looks like I might need multiple switches to use the positive trigger mod., but I can't even get that to work.

There will be three inputs total. This is a four channel preamp to use with my active speakers and it also has two stereo inputs to work with my passive speakers. So it has one four channel input and two two channel inputs. I've already gotten all this worked out.

It does work with the included rotary switch, but I only want one knob on the face if possible.

Sorry for the long post, but any help would be appreciated. Thanks!
  Reply With Quote
Old 9th January 2018, 06:48 PM   #2
russc is offline russc  England
diyAudio Member
 
Join Date: Mar 2011
Location: W Yorkshire
The link you gave shows exactly the schematic.
Using 3 pushbuttons to control 3 relays.
If you want a single pushbutton to cycle through the 3 relays then you need a microprocessor.
Use an Arduino Nano and a ULN2003 chip to drive the relays.
Cost you peanuts and the programming is easy.
  Reply With Quote
Old 9th January 2018, 07:00 PM   #3
Mooly is offline Mooly  United Kingdom
diyAudio Moderator
 
Mooly's Avatar
 
Join Date: Sep 2007
Help with one button relay input switching
I'm pretty sure this can be done with a 4017 CMOS decade counter chip with the master reset pin tied to the 'last' output pin you want to use (so Q3).

In fact typing just that into Bing brings up the circuit
My 1st project - To cycle through 7 LEDs with push button | Electronics Forum (Circuits, Projects and Microcontrollers)
  Reply With Quote
Old 9th January 2018, 07:05 PM   #4
satx is offline satx  United States
diyAudio Member
 
Join Date: May 2012
Location: San Antonio, Texas
I see that thanks. I didn't seem to get that before I ordered it for some reason.
But even with three swirltches it doesn't work.
It seems to me based on the diagram that the relays would always be powered. So what switches? Q1,2and3? I can't figure out what those pins are for. One is always ground and the other two have about 2v on them.

Are you talking about something like figure 3?
Project 163

Would the arduino be the switching logic?

Thanks
  Reply With Quote
Old 9th January 2018, 07:34 PM   #5
satx is offline satx  United States
diyAudio Member
 
Join Date: May 2012
Location: San Antonio, Texas
Quote:
Originally Posted by Mooly View Post
I'm pretty sure this can be done with a 4017 CMOS decade counter chip with the master reset pin tied to the 'last' output pin you want to use (so Q3).

In fact typing just that into Bing brings up the circuit
My 1st project - To cycle through 7 LEDs with push button | Electronics Forum (Circuits, Projects and Microcontrollers)
Thanks for that. Sounds perfect. Do you know if it's latching? They didn't seem to know.
Also what socket would I use for the 4017? I'm totally new to using chips in projects.
Thanks
  Reply With Quote
Old 9th January 2018, 07:43 PM   #6
satx is offline satx  United States
diyAudio Member
 
Join Date: May 2012
Location: San Antonio, Texas
It looks like the 4017 input voltage is 2-6v. Would it normally output the same? I need 10-15v to operate the relays.
  Reply With Quote
Old 9th January 2018, 08:16 PM   #7
satx is offline satx  United States
diyAudio Member
 
Join Date: May 2012
Location: San Antonio, Texas
Ok I figured out the socket on my own. Sorry for the dumb question
Can you recommend one for non pcb mounting though?
  Reply With Quote
Old 10th January 2018, 07:27 AM   #8
Mooly is offline Mooly  United Kingdom
diyAudio Moderator
 
Mooly's Avatar
 
Join Date: Sep 2007
Help with one button relay input switching
The 4017 will operate on 3 to 15 volts and the output will be similar to the supply but it would not drive most relays directly. For that you need a simple transistor interface. The relay would be active when the appropriate output goes high.

You would want the 16 pin DIP version and a 16 pin DIP socket. Not sure what you mean by non pcb mounting tbh
Attached Images
File Type: png Untitled.png (9.4 KB, 345 views)
  Reply With Quote
Old 10th January 2018, 11:27 AM   #9
satx is offline satx  United States
diyAudio Member
 
Join Date: May 2012
Location: San Antonio, Texas
Quote:
Originally Posted by Mooly View Post
The 4017 will operate on 3 to 15 volts and the output will be similar to the supply but it would not drive most relays directly. For that you need a simple transistor interface. The relay would be active when the appropriate output goes high.

You would want the 16 pin DIP version and a 16 pin DIP socket. Not sure what you mean by non pcb mounting tbh
Thanks

Why won't it drive the relays directly? Is it because they are not latching? Or not enough current?

Not sure if it helps, but the board already has diodes for each relay plus a few other through hole parts- take a look at the link in the first post.

A 12v signal will currently drive the relays with no additional parts needed.

I honestly don't know what I mean by non pcb mounting either I'm just looking for the easiest way to deal with an IC without using a PCB. I already have discreet parts and modules all over the place.
  Reply With Quote
Old 10th January 2018, 11:35 AM   #10
Mooly is offline Mooly  United Kingdom
diyAudio Moderator
 
Mooly's Avatar
 
Join Date: Sep 2007
Help with one button relay input switching
Not enough current. They are logic level outputs that are not intended to directly drive loads consuming a lot of current (which would be just the same as any uP come to that). If you tried to run them directly then they would just pull the voltage on the output pin right down.

I saw the diodes across the relay coils, that is why I didn't include any on my little scribble

One transistor per relay is the simplest drive option.

You could easily make something like this using stripboard.
  Reply With Quote

Reply


Help with one button relay input switchingHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling a latching relay with a single button? curupa Parts 3 27th October 2012 06:18 AM
Question regarding Max. Switching rate push button for Class-D amp + accessories eladmi Class D 3 24th October 2012 12:08 AM
Switching loudspeaker with relay quietdragon Solid State 8 3rd November 2011 04:46 AM
need dpdt switching relay help subaruzero Parts 1 27th September 2006 07:27 PM
Relay switching circuit please jnewbold Solid State 10 3rd March 2005 06:39 AM


New To Site? Need Help?

All times are GMT. The time now is 07:49 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki