Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Will 5v to the ground... EE help with RGB Topfire... see post #22  (Read 4775 times)

0 Members and 1 Guest are viewing this topic.

Bender

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1919
  • Last login:November 28, 2016, 08:12:21 pm
    • Happ to Tron Conversion tutorial
I know it's an odd question but.. I need to share the common from a RGB LED with a button, and the LED common caries the 5v from the LEDWiz
Will that 5v to the ground loop hurt micro switches or an encoder?

sorry in advance for lack of basic electrical knowledge

Edit: ok I've been thining about this a bit more(which is probably a bad thing) so if the switches' NO(normally open) connection doesn't connect back to the LEDWiz then the 5v won't be transmitted, is that right?
« Last Edit: January 21, 2011, 03:38:47 pm by Bender »

matsadona

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 760
  • Last login:October 28, 2023, 06:00:12 am
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #1 on: January 19, 2011, 05:33:20 am »
I'm not sure I follow you on this one, nor do I understand what you are trying to accomplish.
Could you please draw a basic scheme of you idea and explain what your goal is?
Then there are plenty of people besides me around here with a wast knowledge in electric circuits that will help you do it right.
Building, collecting and playing arcade machines :)

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #2 on: January 19, 2011, 03:39:12 pm »
To echo matsadona,
draw us a pic!

ChadTower

  • Chief Kicker - Nobody's perfect, including me. Fantastic body.
  • Trade Count: (+12)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38212
  • Last login:July 30, 2025, 03:29:53 pm
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #3 on: January 19, 2011, 04:01:34 pm »

Well it's safe to say 5v isn't going to hurt a microswitch any.  The rest of it probably won't hurt the encoder but might produce some awfully odd results.

Use a separate ground if they are separate circuits.

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 25, 2025, 03:09:16 pm
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #4 on: January 19, 2011, 05:25:22 pm »
I'm still trying to see any reason for routing a LED through a encoder ground. Are you trying to save wire, or is there a functional reason? (i.e. Trying to get the led to flash when the button is pushed)

I also agree with Chad's assesment, those microswitches can easily take a 5v direct current, and it probably wouldn't damage the encoder, but I don't think you would get the results you want since you are grounding one circuit out on another circuit. I would just recommend avoiding the whole thing.

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #5 on: January 19, 2011, 06:43:04 pm »
Bender
Are you trying to light and LED by grounding it via the same switch that sends the signal to your encoder.  There was a thread on this and several circuits.  I think that the simplest was just using the same ground thru the switch.  Sorry cannot find it right now but if I remember correctly it worked and Andy even said that it would not hurt the inputs of the ipac.


NickG

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 586
  • Last login:September 26, 2022, 05:25:23 am
  • Dig.
    • My Projects Page
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #6 on: January 19, 2011, 09:36:15 pm »
this is a pretty good way
http://shoryuken.com/content/light-up-activation-button-mod-tutorial-61/
if you only have a couple of button activated lights you can do this with some diodes, but hex inverters are better for more, and easier to work with on stripboard.

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #7 on: January 19, 2011, 10:20:52 pm »
Found the link for a simple hookup to light LED buttons.

LED buttons light when pressed

Bender

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1919
  • Last login:November 28, 2016, 08:12:21 pm
    • Happ to Tron Conversion tutorial
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #8 on: January 19, 2011, 11:05:47 pm »


ok I should have posted this earlier
I'm not trying to get the light to blink when pressed (but if that is the only solution that is ok)
I'm trying to make a topfire RGB light-up joystick
I am using a 4pole 3.5mm jack and plug in the bottom of the shaft to allow for the shaft to spin and as Stubs suggested in another thread
I'm using the shaft itself as a 5th pole, but I need 6 poles 4 for the RGB and 2 for the button, so I though I could share the common, but that turns out not to be so easy
The Diagram I have above does not work
If I detach the common from the mini pac the lights work, but the button doesn't
If I detach the common from the LEDwiz the button works, but obviously no lights
Is there any way to do this with 5 poles?

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #9 on: January 20, 2011, 10:27:43 am »
Your problem looks to be that you are try to put both 5V and GND thru the shaft.   If you changed the LED to a common cathode it could share a ground but then the LED wiz would not work unless the output circuit could be changed to to handle common cathode.  Maybe an inverter circuit?

Bender

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1919
  • Last login:November 28, 2016, 08:12:21 pm
    • Happ to Tron Conversion tutorial
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #10 on: January 20, 2011, 05:59:56 pm »
If you changed the LED to a common cathode

how would one do that?

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: Will 5v to the ground loop hurt micro switches or an encoder?
« Reply #11 on: January 20, 2011, 06:29:35 pm »
If you changed the LED to a common cathode

how would one do that?

They sell common cathode led's, but like BobA said, you run into the problem with the LED Wiz then. 

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #12 on: January 20, 2011, 06:39:05 pm »
What might be the easiest is run 5 volts up your orange wire and then when you press the button it would send 5V down your black wire which would then go to a 5v relay or a transistor to close the circuit for button 1.

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #13 on: January 20, 2011, 06:45:22 pm »
Here's an altered pic.  After thinking about it though, a relay might not be responsive enough, probably better to use a transistor.
« Last Edit: January 20, 2011, 06:47:25 pm by Popcorrin »

Bender

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1919
  • Last login:November 28, 2016, 08:12:21 pm
    • Happ to Tron Conversion tutorial
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #14 on: January 20, 2011, 06:57:46 pm »
if I used a 5v transistor how would I wire it, it's got 3 contacts right?
Please explain as you would I child... a slow dim-witted child




I think this is the right diagram for a transistor switch
how would I wire the B,C,E to my setup?

ok I think my black wire goes to C, E to the ground and B to the encoder button 1?
do I need a resistor between B and the encoder? am I even close?
« Last Edit: January 20, 2011, 07:21:48 pm by Bender »

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #15 on: January 20, 2011, 07:37:45 pm »
I think using an opto-isolator to replace the relay in popcorrin's circuit would be by far the easiest and cheapest way to do this.

Edit:
Does the led wiz have a ground on it? If so the led of the opto isolator needs to connect to it. (pic posted)
« Last Edit: January 20, 2011, 07:54:24 pm by DaOld Man »

Bender

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1919
  • Last login:November 28, 2016, 08:12:21 pm
    • Happ to Tron Conversion tutorial
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #16 on: January 20, 2011, 07:51:44 pm »
Transistor no good? I already got one of those :-\

Yes the LEDWiz does have a ground

more quick and dirty please >:D

seriously more quick and dirty pics (nice already done)

What size resistor?
what kind of opto-isolator?
« Last Edit: January 20, 2011, 07:58:04 pm by Bender »

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #17 on: January 20, 2011, 07:57:43 pm »
This might work
« Last Edit: January 20, 2011, 08:02:22 pm by DaOld Man »

Bender

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1919
  • Last login:November 28, 2016, 08:12:21 pm
    • Happ to Tron Conversion tutorial
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #18 on: January 20, 2011, 07:59:36 pm »
sorry to be so dim, could you label the BCE on the transistor
Can't thank you guys enough :applaud: :applaud:

oh yeah, and what size resistor
« Last Edit: January 20, 2011, 08:01:07 pm by Bender »

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #19 on: January 20, 2011, 08:06:28 pm »
Im not real sure about resistor size, maybe 1000 ohms?
Before you do this, make sure that both devices, led wiz and minipac, have the same power supply ground feeding them.
Both supply grounds need to be negative. And there should be no voltage between them.
If you are feeding both from a 5 vdc power in your computer, you should be ok.
I just dont want to see you fry something expensive.

I still think opto isloator would be the best way to go with this.
Both circuits would be isolated from each other.

Also:
With the transistor, you may have to add another higher value resistor from base to emitter to prevent mis-fires.
This "bias" resistor would pull the base to ground, to keep it turned off until the + 5v is applied via the pushbutton.
« Last Edit: January 20, 2011, 08:11:34 pm by DaOld Man »

Bender

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1919
  • Last login:November 28, 2016, 08:12:21 pm
    • Happ to Tron Conversion tutorial
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #20 on: January 20, 2011, 08:16:22 pm »
OK lets go the opto-isolator route

what kind, and what size resistor would I need for that circuit

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #21 on: January 20, 2011, 08:30:50 pm »
Well I would use a til119 opto isolator, just because I happen to have a few extras.
The resistor for this baby (at 5 volts) would be around 300 ohms.
The led of the til119 is good for 20 ma easy, so, E/I=R or 5/0.020 = 250 ohms, but  250 to 330 will work just fine.

Edit:
 I forgot to  account for led voltage drop, which is around 2 volts, so formula for resistor would be 5-2/0.020 = 150,
so better make it a max 200 ohm resistor.
« Last Edit: January 20, 2011, 08:40:40 pm by DaOld Man »

Bender

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1919
  • Last login:November 28, 2016, 08:12:21 pm
    • Happ to Tron Conversion tutorial
Re: Will 5v to the ground... EE help with RGB Topfire... see post #8
« Reply #22 on: January 21, 2011, 03:38:19 pm »


After I saw a picture of something similar I messed around and came up with this and it works, How come? :dizzy:
Am I going to fry anything?

EDIT: OK... not so fast seems like I fried the Red LED, oh well worked for a few minutes :-\
« Last Edit: January 21, 2011, 04:35:45 pm by Bender »

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Will 5v to the ground... EE help with RGB Topfire... see post #22
« Reply #23 on: January 21, 2011, 04:38:53 pm »
I dont know, I dont see how it is working, unless the two devices have isolated grounds. maybe??
I mean, I see how the mini pac is getting its button fired, but whats going to happen when the ledwiz turns on the red wire going to the led and the button is pressed at same time?
But if it works, what can I say?

Bender

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1919
  • Last login:November 28, 2016, 08:12:21 pm
    • Happ to Tron Conversion tutorial
Re: Will 5v to the ground... EE help with RGB Topfire... see post #22
« Reply #24 on: January 21, 2011, 04:53:12 pm »
well it doesn't work, I fried the red LED the one the button was hooked to, coincidence I think not

opto-isolator to the rescue...

I need to learn some patience :-[
« Last Edit: January 21, 2011, 05:05:50 pm by Bender »

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Will 5v to the ground... EE help with RGB Topfire... see post #22
« Reply #25 on: January 21, 2011, 05:25:48 pm »
Dang the bad luck. Opto is on the way.

Skullreaper2000

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:May 29, 2012, 09:45:49 am
Re: Will 5v to the ground... EE help with RGB Topfire... see post #22
« Reply #26 on: January 21, 2011, 06:04:08 pm »
I may not be an expert at this but should it not be something like this


Bender

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1919
  • Last login:November 28, 2016, 08:12:21 pm
    • Happ to Tron Conversion tutorial
Re: Will 5v to the ground... EE help with RGB Topfire... see post #22
« Reply #27 on: January 21, 2011, 10:48:21 pm »
I may not be an expert at this but should it not be something like this



Skullreaper thanks for the info!

This seems to work
anybody see anything unsafe about this set up?

EDIT:Not quite, I didn't notice a faint red glow in my initial test it seems that the red LED is picking up he current from the mini pac button line so the red LED is on faintly all the time

Alright I'm not messing with this anymore
DaOld Man gave me a perfectly good and safe solution(as well as the parts!, thanks man) I'm going with that.
Bender out!
« Last Edit: January 21, 2011, 11:25:05 pm by Bender »