Opto relay issues

hass

10 mW
Joined
Oct 5, 2020
Messages
20
Hi guys
I'm trying to wire some brake lights to my e scooter.
Its a 48v.
I've converted the voltage to 12v with a dc to dc
So after spending several days researching reading trying and wiring,I'm stuck
I've read and used the method on here a few posts below but still no good.
I purchased a 12v opto relay but found it was 103
I then purchased a 5v opto relay with 222.
I even unsoldered the 103 resistor and fitted 222.
So as it stands
I have working brake lights but it dont cut out the throttle when brake is applied.
I have 5v from the control box going in the IN and 0V from the jumper terminal when plugged in.
Soon as brake is applied the relay clicks in lights light up but throttle does not stop and the voltage coming out the IN is 2v not going completely to ground.
Is it wrong relays?
Or do I need something else?
Is there another method to this?
 
It is usually the job of the motor controller to cut the throttle signal when the e-brake is triggered. If you can provide a schematic of how you have your relay wired; that may help pinpoint the issue.
 
Hi
I've used this set up
 

Attachments

  • 20201006_164428.jpg
    20201006_164428.jpg
    104.6 KB · Views: 755
Hi I'm not sure what you mean.
I've got a black wire Gnd coming out of my controller going up to my brake lever which are magnetic operated switch (2wire) which comes back down to a white wire going back to the controller which is 5v.
From my understanding when lever is pulled it sends 0v to the 5v wire.
I've wired it exactly the same as in my last post.
The issue is it switchs over from 5v to 2v not 0v
Brake lights work but it dont cut out the motor because its 2v not 0v
 
I've got these relays
Ones 103 resistor 12v
And ones 222 resistor 5v
 

Attachments

  • 20201006_202104.jpg
    20201006_202104.jpg
    186.5 KB · Views: 719
  • 20201006_202120.jpg
    20201006_202120.jpg
    92.8 KB · Views: 719
I've also just ordered this relay which is coming from china
 

Attachments

  • 20201006_202133.jpg
    20201006_202133.jpg
    48.6 KB · Views: 717
hass said:
Hi I'm not sure what you mean.
I've got a black wire Gnd coming out of my controller going up to my brake lever which are magnetic operated switch (2wire) which comes back down to a white wire going back to the controller which is 5v.
From my understanding when lever is pulled it sends 0v to the 5v wire.
I've wired it exactly the same as in my last post.
The issue is it switchs over from 5v to 2v not 0v
Brake lights work but it dont cut out the motor because its 2v not 0v

I don't see a white wire in your diagram. Where does the blue go to?
 
Why do you think you need an optoisolator? Are they really two independent grounds? Because if they're not, all you really need is a switch (a relay, a FET, a bipolar transistor.)
 
E-HP said:
hass said:
Hi I'm not sure what you mean.
I've got a black wire Gnd coming out of my controller going up to my brake lever which are magnetic operated switch (2wire) which comes back down to a white wire going back to the controller which is 5v.
From my understanding when lever is pulled it sends 0v to the 5v wire.
I've wired it exactly the same as in my last post.
The issue is it switchs over from 5v to 2v not 0v
Brake lights work but it dont cut out the motor because its 2v not 0v

I don't see a white wire in your diagram. Where does the blue go to?
Hi
This is nit my diagram
I dont know how to do my own one.
I've used this off of this site
Its exactly the same as my set up.
The blue wire is the 5v which comes out of the controller for the motor cut off
 
JackFlorey said:
Why do you think you need an optoisolator? Are they really two independent grounds? Because if they're not, all you really need is a switch (a relay, a FET, a bipolar transistor.)
I'm really not sure
I found on this site how to wire brake lights with e brake
 
hass said:
I found on this site how to wire brake lights with e brake
OK so try this:

1) get a low current 5V relay. Connect its coil between the 5 volt supply and the brake input. When you push the brake lever, the relay will see a 5V difference, and will close.

2) Use the relay output to drive the brake light. Specifically, wire it into one side of the connection between 12V and the brake light.

A relay like this should work:
https://www.digikey.com/en/products/detail/omron-electronics-inc-emc-div/G6DN-1A-DC5/5864613

You can also use a bipolar transistor or a FET but that's a little more involved.
 
JackFlorey said:
hass said:
I found on this site how to wire brake lights with e brake
OK so try this:

1) get a low current 5V relay. Connect its coil between the 5 volt supply and the brake input. When you push the brake lever, the relay will see a 5V difference, and will close.

2) Use the relay output to drive the brake light. Specifically, wire it into one side of the connection between 12V and the brake light.

A relay like this should work:
https://www.digikey.com/en/products/detail/omron-electronics-inc-emc-div/G6DN-1A-DC5/5864613

You can also use a bipolar transistor or a FET but that's a little more involved.
Hi great

Would this work?
 

Attachments

  • 20201006_230524.jpg
    20201006_230524.jpg
    105.7 KB · Views: 655
also as I'm not technical
Could you do a wiring diagram on what wire goes where.
Or just pin numbers if you can
 
hass said:
also as I'm not technical
Could you do a wiring diagram on what wire goes where.
Or just pin numbers if you can

Ignore this
I've just realised what a spst relay does
 
Hi
I've tried the relays that I posted up and still no good.
It shuts off the ebrake but don't light up the leds.
Its not locking the relay (no click)
Could it be wrong relays again?
 
Here is the spec on the relay
 

Attachments

  • 20201009_215948.jpg
    20201009_215948.jpg
    77.8 KB · Views: 454
hass said:
I have 5v from the control box going in the IN and 0V from the jumper terminal when plugged in.
Soon as brake is applied the relay clicks in lights light up but throttle does not stop and the voltage coming out the IN is 2v not going completely to ground.
Is it wrong relays?

Where again are you seeing the 2V, because based on the diagram, '"IN" should always remain at 5V.
 
E-HP said:
hass said:
I have 5v from the control box going in the IN and 0V from the jumper terminal when plugged in.
Soon as brake is applied the relay clicks in lights light up but throttle does not stop and the voltage coming out the IN is 2v not going completely to ground.
Is it wrong relays?

Where again are you seeing the 2V, because based on the diagram, '"IN" should always remain at 5V.

When using the opto relay
 
I've ordered the relay from the link above.
I'm wondering if the relay i ordered originally is wrong.
Maybe something to do with the voltages.
 
hass said:
E-HP said:
hass said:
I have 5v from the control box going in the IN and 0V from the jumper terminal when plugged in.
Soon as brake is applied the relay clicks in lights light up but throttle does not stop and the voltage coming out the IN is 2v not going completely to ground.
Is it wrong relays?

Where again are you seeing the 2V, because based on the diagram, '"IN" should always remain at 5V.

When using the opto relay

measured between what two points? You have two grounds. seems like you're just working trial and error. not sure why you are buying so many relays rather than diagnosing the issue.

by the time you're done, you could have just bought a second pair of brake switches to dedicate to your lights and be done with it.
 
E-HP said:
hass said:
E-HP said:
hass said:
I have 5v from the control box going in the IN and 0V from the jumper terminal when plugged in.
Soon as brake is applied the relay clicks in lights light up but throttle does not stop and the voltage coming out the IN is 2v not going completely to ground.
Is it wrong relays?

Where again are you seeing the 2V, because based on the diagram, '"IN" should always remain at 5V.

When using the opto relay

measured between what two points? You have two grounds. seems like you're just working trial and error. not sure why you are buying so many relays rather than diagnosing the issue.

by the time you're done, you could have just bought a second pair of brake switches to dedicate to your lights and be done with it.
I don't have to grounds I don't think.
One end coming out of my controller is 5v and the other end is ground 0v
From my understanding is the 5v become 0v when brake lever is applied.
I'm not sure what the issue is to diagnose.
I'm not technical when it comes down to electronics.
Reason for buying so many different types of relays is to get brake lights working.
I've researched and ended up with opto relays and spst relays.
 
The spst relay from the link above didn't work unfortunately.
Same issue its cutting the ebrake but not energising the relay to light the lights up.
 
hass said:
I don't have to grounds I don't think.
One end coming out of my controller is 5v and the other end is ground 0v
From my understanding is the 5v become 0v when brake lever is applied.
I'm not sure what the issue is to diagnose.
I'm not technical when it comes down to electronics.
Reason for buying so many different types of relays is to get brake lights working.
I've researched and ended up with opto relays and spst relays.

OK, sounds like you know what you're doing and will get it figured out eventually. :thumb: Make sure you update the thread once you get a solution in place.
 
Back
Top