Electronics help - using transistor as relay
- 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
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 ?
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 ?
- DeskJockey
- Posts: 5945
- Joined: Thu Apr 12, 2018 8:58 am
Re: Electronics help - using transistor as relay
I've no idea, but I'm interested to know what you're fixing.
---
Driving a Galaxy far far away
Driving a Galaxy far far away
- 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
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:
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
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.
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:
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
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.
Re: Electronics help - using transistor as relay
Not sure, but maybe this? https://www.dummies.com/article/technol ... it-179357/
Left over crest; tightens.
Re: Electronics help - using transistor as relay
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
Cheers,
Ian
Ian
- 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
Already seen that. I am not spending £300+ to turn a light on and offIanF wrote: Mon Aug 14, 2023 9:52 am https://www.scuding.com/Shop/en/ecu-sol ... s-ecu.html
Some cable options lower down
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
Yes, but then you can “enhance” it in other ways..Sundayjumper wrote: Mon Aug 14, 2023 1:19 pmAlready seen that. I am not spending £300+ to turn a light on and offIanF wrote: Mon Aug 14, 2023 9:52 am https://www.scuding.com/Shop/en/ecu-sol ... s-ecu.html
Some cable options lower down
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.
Cheers,
Ian
Ian
Re: Electronics help - using transistor as relay
Steve, earlier today...
- 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
I'm slightly ashamed of myself here, but it had already crossed my mind to put mood lighting in the engine bay
Re: Electronics help - using transistor as relay
I think that would look good actuallySundayjumper wrote: Mon Aug 14, 2023 5:48 pmI'm slightly ashamed of myself here, but it had already crossed my mind to put mood lighting in the engine bay![]()
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...
- integrale_evo
- Posts: 5453
- Joined: Thu Apr 12, 2018 5:58 pm
Re: Electronics help - using transistor as relay
Make it flash and illuminate a big “danger to the manifold” warning as you approach the redline 
Cheers, Harry