I would control a relay (JQX-15F) with 3,3V but I don't know any component to do it. Do you know some components to do it? For example analog switch, optocoupler o other? Scheme


Drive the relay coil on the low side instead (i.e. with your switching device from the coil to GND not from the coil to Vcc). A bog-standard 2N3904, a diode, and a resistor will do the job, as follows:


simulate this circuit – Schematic created using CircuitLab

Q1 can be any jellybean NPN small signal BJT, even, and D1 can be whatever rectifier or switching diode you have on hand. R1's value isn't particularly critical -- anything from over say 500 ohms to a couple of kOhms will do.

Of course, though, this assumes that your 3.3V supply isn't isolated from your 12V supply. If it is, you'll need to use an optocoupler like the 4N35 -- wire the collector and emitter of the optocoupler in place of the transistor's collector and emitter, and your I/O to the opto's LED with a 330 to 470 ohm resistor in series.

  • 1
    \$\begingroup\$ +1 Don't be too cavalier with the transistor size- inductive loads are a bit unfriendly to BJTs. A 2N3904/2N4401/BC337 should be fine. I would also keep the base resistor to the very low end of your range so Ic/Ib ~= 20. \$\endgroup\$ Oct 8 '16 at 19:49
  • \$\begingroup\$ Thanks for answer. I will try with transistor and also with optocoupler. Do you think 4N25 is okay? \$\endgroup\$
    – user124980
    Oct 9 '16 at 0:59
  • \$\begingroup\$ Should be alright at least for a reasonably small-ish relay. \$\endgroup\$ Oct 9 '16 at 3:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.