Can a 12v base signal be used to switch a v5 device through a transistor

microcontrollertransistors

I see lots of examples of using low voltage (like from a microprocessor) to switch 12v. I want to do the opposite. Is that okay to do, or should I use a relay? What other components will I need?

The project is supply power to an AtTiny85 when a 10-16v (headlight on a motorcycle) turns on. I will be using a LM2937 (or you can recommend another) to provide power the 3.3v source.

Best Answer

Use a buck switching regulator (output 3v3) connected to your headlight wiring. No need for a switch. Don't use a linear regulator for this because it might dissipate too much power and burn (load dependant).

Buck regulators are near enough 90% efficient at transferring power so it will burn very little power. One word of warning is that with any regulator you should rate its input to withstand at least 42V. 42V is a recommended limit for surges in normal automotive environments although a 60V capable regulator will be better and, there are a few. Maybe this TI one: -

enter image description here