Electronics help - using transistor as relay

Post Reply
User avatar
Sundayjumper
Posts: 8076
Joined: Wed Apr 11, 2018 4:04 pm
Currently Driving: Peugeot 406 replica, jaaaag, beetle, tractor

Electronics help - using transistor as relay

Post by Sundayjumper »

I'm sure this is quite simple, and I'm sure I used to know this stuff, but that was a long time ago, and other options may have become available.

I'm trying to repurpose a Toyota indicator relay. It requires the inputs to be pulled to ground to activate it. I want to activate on presence of +12V. So I need some kind of NOT function.

This is trivial with a relay, and I've already tested it like that to confirm the logic. But the current draw in this case is so miniscule - I measured 20 microamps - that a relay is total overkill. And big. With some kind of solid state solution I can probably squeeze it into the existing enclosure.

So what's the simplest (and I'm expecting this to be cheap!) way to pull to ground on presence of +12V ?

cf18_adjustable_flasher.jpg
cf18_adjustable_flasher.jpg (24.31 KiB) Viewed 840 times
User avatar
DeskJockey
Posts: 5945
Joined: Thu Apr 12, 2018 8:58 am

Re: Electronics help - using transistor as relay

Post by DeskJockey »

I've no idea, but I'm interested to know what you're fixing.
---
Driving a Galaxy far far away
User avatar
Sundayjumper
Posts: 8076
Joined: Wed Apr 11, 2018 4:04 pm
Currently Driving: Peugeot 406 replica, jaaaag, beetle, tractor

Re: Electronics help - using transistor as relay

Post by Sundayjumper »

Nothing weird ! I want LED indicators in the 406 because they're crisper, but if you just chuck in LEDs (I bought THESE) you get "hyperflashing" because the current draw is much lower, and the flasher relay doesn't work properly. You get the same if one of your regular bulbs blows. You can put a resistor in parallel with the LED to being the current draw back up but that's a cludge and completely ruins one of the points of LEDS - that they're more efficient.

There's LED-specific flasher units available but none I could see for this car. And if there were it'd be £stoopid because obviously. However I found that a Toyota unit (diagram above) has identical functionality aside from this earth / 12V difference. So I bought one and a little relay module to try it out. I made this and it works:

IMG_1704.jpeg
IMG_1704.jpeg (107.61 KiB) Viewed 776 times

A fringe benefit that I didn't expect was that this unit also does that three-flash thing if you just blip the stalk. Cool 8-)

The relay module in the middle is the bit I wanted to simplify. Should be easy enough ? It's rated to switch 10A, I only need a few milliamps.
User avatar
JonMad
Posts: 2999
Joined: Wed Apr 11, 2018 9:25 pm
Currently Driving: 2015 Swift; 2012 Yeti

Re: Electronics help - using transistor as relay

Post by JonMad »

Left over crest; tightens.
User avatar
Jobbo
Posts: 12168
Joined: Wed Apr 11, 2018 4:20 pm
Currently Driving: Gentle hands

Re: Electronics help - using transistor as relay

Post by Jobbo »

I think the transistor should do the job on its own, though that's effectively what a NOT gate is I guess. Here's a 'transistor switch' which looks uncannily like the NOT gate in Jon's link: https://learn.sparkfun.com/tutorials/tr ... i-switches
IanF
Posts: 3567
Joined: Wed Apr 11, 2018 3:58 pm
Currently Driving: Ferrari F430 Spider
BMW M4 Comp
Mini Cooper
LR Evoque P300e
Contact:

Re: Electronics help - using transistor as relay

Post by IanF »

Cheers,

Ian
User avatar
Sundayjumper
Posts: 8076
Joined: Wed Apr 11, 2018 4:04 pm
Currently Driving: Peugeot 406 replica, jaaaag, beetle, tractor

Re: Electronics help - using transistor as relay

Post by Sundayjumper »

IanF wrote: Mon Aug 14, 2023 9:52 am https://www.scuding.com/Shop/en/ecu-sol ... s-ecu.html

Some cable options lower down
Already seen that. I am not spending £300+ to turn a light on and off :lol:

Current spend is £11.47 for the flasher module + £3.89 for the relay board. I’m expecting a transistor to be a matter of pennies.
IanF
Posts: 3567
Joined: Wed Apr 11, 2018 3:58 pm
Currently Driving: Ferrari F430 Spider
BMW M4 Comp
Mini Cooper
LR Evoque P300e
Contact:

Re: Electronics help - using transistor as relay

Post by IanF »

Sundayjumper wrote: Mon Aug 14, 2023 1:19 pm
IanF wrote: Mon Aug 14, 2023 9:52 am https://www.scuding.com/Shop/en/ecu-sol ... s-ecu.html

Some cable options lower down
Already seen that. I am not spending £300+ to turn a light on and off :lol:

Current spend is £11.47 for the flasher module + £3.89 for the relay board. I’m expecting a transistor to be a matter of pennies.
Yes, but then you can “enhance” it in other ways..
Cheers,

Ian
User avatar
GG.
Posts: 5586
Joined: Wed Apr 11, 2018 4:16 pm

Re: Electronics help - using transistor as relay

Post by GG. »

Steve, earlier today...

User avatar
Sundayjumper
Posts: 8076
Joined: Wed Apr 11, 2018 4:04 pm
Currently Driving: Peugeot 406 replica, jaaaag, beetle, tractor

Re: Electronics help - using transistor as relay

Post by Sundayjumper »

GG. wrote: Mon Aug 14, 2023 3:19 pm Steve, earlier today...
I'm slightly ashamed of myself here, but it had already crossed my mind to put mood lighting in the engine bay :oops:
User avatar
GG.
Posts: 5586
Joined: Wed Apr 11, 2018 4:16 pm

Re: Electronics help - using transistor as relay

Post by GG. »

Sundayjumper wrote: Mon Aug 14, 2023 5:48 pm
GG. wrote: Mon Aug 14, 2023 3:19 pm Steve, earlier today...
I'm slightly ashamed of myself here, but it had already crossed my mind to put mood lighting in the engine bay :oops:
I think that would look good actually :lol:

I'm sure you could have it on a switch and just on when desired - best make sure you've got a clean engine bay though...
User avatar
integrale_evo
Posts: 5453
Joined: Thu Apr 12, 2018 5:58 pm

Re: Electronics help - using transistor as relay

Post by integrale_evo »

Make it flash and illuminate a big “danger to the manifold” warning as you approach the redline 😎
Cheers, Harry
Post Reply