Logic signal converter notes

Active today
Viewed 7 times

My new Guardline Security Alarm can send a 12 volt output signal to an accessory device. I would like to send that signal to my Rashberry pi and have it send an email to my iphone. I bought a SMAKN Dc/dc converter to step down the 12v to 3.3v Can I just direct wire them together? Any help would be appreciated. Don’t want to blow up a $100 alarm. Thanks.

 New contributor
  • Hi @Larry Bowman, Welcome and nice to meet you. Ah, let me see. (1) The Smakn DC/DC 12V to 3V/3A is to step down power supply output voltage, NOT to convert 12V logic signal to 3V3 logic signal. So it inappropriate if not ALL WRONG to use the Smakn power supply voltage converter. Reference: (1) SMAKN DC/DC [Power Supply Output Voltage] Converter 12v Step Down to 3V/3A Power Supply Module amazon.com/SMAKN%C2%AE-Converter-Power-Supply-Module/dp/…. – tlfong01 27 mins ago
  • (2) Using two resistors in series as a voltage divider to step down 12V signal to 3V3 and input to Rpi GPIO is DANGEROUS and NOT recommended, because of the “Latch Up” problem. The GPIO circuit and/or whole Rpi might fry sooner or later, if not immediately. You might like to read the sotry of the DHT11 guy who unluckily fried his Rpi. “DHT11 sensor and the wrong voltage may have fried my RPi3”: raspberrypi.stackexchange.com/questions/96560/… (Note – Explanation of latching up is at the end of my answer.) – tlfong01 17 mins ago
  • (3) The EE guys usually use CD4049/50 which is designed to to step down 5/12/15/18V logic signal to 3v3 (3) CD4049UBC/CD4050BC Hex Inverting Buffer/Hex Non-Inverting Buffer (Vdd = 3V3, Vin = 18V max) – FairChild 1999 futurlec.com/4000Series/CD4050.shtml. – tlfong01 14 mins ago
  • (4) CD4049/50 is expensive and wasteful if you don’t need 6 channels. So lazy hackers needing to step down only one or two signal use 2N2222 to do the 12V to 3V3 logical level conversion. The config is something like this: (a) Vcc = 3V3, (b) pull down resistor one end to Vcc, the other end to 2N2222 colector, also to RpiGPIO, (c) 12V signal through biasing resistor to Base of 2N2222. Reference: 2N2222/MMBT2222 – Fairchild 2004: jameco.com/Jameco/Products/ProdDS/787536.pdf – tlfong01 5 mins ago
  • For solutions (3) and (4) above, there is NO GUARANTEE no nothing won’t melt down or blow up. Actually this forum is not for discussing electronics circuit design. So I would suggest to move this question to EE StackExchange and see what those engineers out there think about it. – tlfong01 just now   Edit

If you know the voltage (is it always 12V or is it sometimes 14V) you could have used a pair of suitable resistors as a voltage divider.

As long a your DC converter or whatever circuit you end up using constrains the voltage at the Pi to 3V3 or less you will be fine.

In any case I don’t see how you could damage your alarm by tapping its 12V output (unless you chose to be deliberately inept).

  • inept is not far from the mark….I appreciate the quick response. Not sure which pin on my raspberry but I should be able to figure it out. thanks again. – Larry Bowman 51 mins ago
  • You can use any GPIO connected to the expansion header. See pinout.xyz – joan 49 mins ago

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: