Electronics > Projects, Designs, and Technical Stuff
Logic level from comparator to raspi gpio
(1/1)
PhelarNord:
Hi!

Im doing a simple voltage monitor with a lm393. I´m going to use a raspbarry pi´s gpio´s to register the state of the comparator outputs but need some advice to translate the output from the comparator to
3.3v. Can i manage this with just a voltage divider or do i have to use something more solid.

Cheers
Ian.M:
The LM393 has an open collector output.  Simply use a 10K pullup resistor from its output to Pi +3.3V, and it will be logic level compatible. 

N.B. LM393 Gnd must connect to Pi Gnd. You can power its Vcc pin from Pi +5V.
PhelarNord:
Thanks!

I´ll do this in the design :-+
Navigation
Message Index
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod