Author Topic: Motorbike light controller output stage  (Read 1014 times)

0 Members and 1 Guest are viewing this topic.

Offline SysAdTopic starter

  • Newbie
  • Posts: 4
  • Country: it
Motorbike light controller output stage
« on: June 26, 2021, 03:10:52 pm »
Hi everybody,
I'm designing a controller for my motorbike aftermarket led lights, those have position lights (or brake lights) built-in togheter with blikers, and here is not possible to have the position lights and blinkers on at the same time.
My idea is to bypass the blinker relay and take the blinker switch status, control everything with an mcu (ATMEGA328P or PIC16F876A/628A), and to insulate it with optocouplers for I/O and an insulated DC-DC converter (TRACO POWER TDN 1-1211WI); My doubt is about the output stage: I thought to use the 6N137 and MJE5852G in the configuration below but i see that the optocoupler has maximum VCC about 7V, so I think to use the old 4N25 and leave the idea to use PWM and adopt simply ON/OFF. At this point will be better to use P-MOS instead PNP transistor?
1230917-0
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19529
  • Country: gb
  • 0999
Re: Motorbike light controller output stage
« Reply #1 on: June 26, 2021, 05:00:30 pm »
The circuit can be simplified significantly. Ditch the BJTs and use a photovoltaic opto-coupler, such as the APV2111V and a MOSFET to switch the lamps.

 

Offline Andreas

  • Super Contributor
  • ***
  • Posts: 3248
  • Country: de
Re: Motorbike light controller output stage
« Reply #2 on: June 26, 2021, 06:27:02 pm »
At this point will be better to use P-MOS instead PNP transistor?

I would use a high side automotive switch.
Something like a BTS621.
With short cirquit protection.

Why is there a photocoupler?

with best regards

Andreas
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19529
  • Country: gb
  • 0999
Re: Motorbike light controller output stage
« Reply #3 on: June 26, 2021, 09:23:09 pm »
Another simple solution is a relay, which can be driven by a small BJT, or MOSFET. It obviously needs to be rated for at leat 2A, at 12VDC. Note that it's more difficult to break DC, than AC, so don't assume an AC relay will have the same DC rating.
 

Offline SysAdTopic starter

  • Newbie
  • Posts: 4
  • Country: it
Re: Motorbike light controller output stage
« Reply #4 on: June 27, 2021, 04:54:30 am »
Another simple solution is a relay, which can be driven by a small BJT, or MOSFET. It obviously needs to be rated for at leat 2A, at 12VDC. Note that it's more difficult to break DC, than AC, so don't assume an AC relay will have the same DC rating.
I evaluated also relays but the occupied space is bigger than BJT/MOSFET

Why is there a photocoupler?

The optocoupler is there to avoid spike interference to the MCU

Thanks for the replies, I'll check all the components datasheet
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19529
  • Country: gb
  • 0999
Re: Motorbike light controller output stage
« Reply #5 on: June 27, 2021, 11:50:02 am »
Another simple solution is a relay, which can be driven by a small BJT, or MOSFET. It obviously needs to be rated for at leat 2A, at 12VDC. Note that it's more difficult to break DC, than AC, so don't assume an AC relay will have the same DC rating.
I evaluated also relays but the occupied space is bigger than BJT/MOSFET

Use a DC solid state relay, such as the VO14642AT.
http://www.farnell.com/datasheets/2244849.pdf
 

Offline SysAdTopic starter

  • Newbie
  • Posts: 4
  • Country: it
Re: Motorbike light controller output stage
« Reply #6 on: June 28, 2021, 08:21:20 am »
BTS621 is really nice it feature a lot of stuff like the open drain detection and short-circuit detection (really useful to detect open bulb or died led) and with 100m \$\Omega\$ of Ron, I could simply couple the digital pins with HCPL2731.

By the way, VO14642AT is a really simple and small device, with built-in insulation and 250m \$\Omega\$ of Ron

I think I'll use the BTS621 in SMD package, it can drive two loads in one IC and has diagnostic output pin

Another doubt I have is about the ESD protection for the digital inputs, I'm taking in consideration to use TVS diodes to protect the optocouplers, could be useful or completely useless?

Thank you very much for your suggestions


 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19529
  • Country: gb
  • 0999
Re: Motorbike light controller output stage
« Reply #7 on: June 28, 2021, 04:19:05 pm »
BTS621 is really nice it feature a lot of stuff like the open drain detection and short-circuit detection (really useful to detect open bulb or died led) and with 100m \$\Omega\$ of Ron, I could simply couple the digital pins with HCPL2731.

By the way, VO14642AT is a really simple and small device, with built-in insulation and 250m \$\Omega\$ of Ron
The is actually better than that. It has two MOSFETs in its output stage. If they're connected in series, for AC operation, the on resistance is 250mΩ, but if they're connected in parallel, it's a quarter of that.

Quote
I think I'll use the BTS621 in SMD package, it can drive two loads in one IC and has diagnostic output pin
Good choice.

Quote
Another doubt I have is about the ESD protection for the digital inputs, I'm taking in consideration to use TVS diodes to protect the optocouplers, could be useful or completely useless?

Thank you very much for your suggestions
How are the digital inputs connected? Presumably by opto-couplers? If so, a diode in reverse parallel with the opto-coupler's LED is a good idea, to protect it from reverse voltages.
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2393
  • Country: gb
  • Recovering Electrical Engineer
Re: Motorbike light controller output stage
« Reply #8 on: June 28, 2021, 07:19:19 pm »
Yeah, use a high side swich and save yourself from problems. eg https://www.ti.com/power-management/power-switches/high-side-switches/products.html
Avoid metting Joseph Lucas the prince of darkness.
 

Offline SysAdTopic starter

  • Newbie
  • Posts: 4
  • Country: it
Re: Motorbike light controller output stage
« Reply #9 on: June 29, 2021, 09:37:14 pm »
How are the digital inputs connected? Presumably by opto-couplers? If so, a diode in reverse parallel with the opto-coupler's LED is a good idea, to protect it from reverse voltages.

Correct, I think to use the same optocouplers and driving their led directly from the switch (directly connected to the battery) but I'v not idea about the tvs diode rating to consider in this scenario
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf