I have a 24V square wave output from a thermocouple module and need to convert it into a 0-5V sq wave so that I can read it on a pic pin.
What is the best way to do this?
Many thanks
The simplest solution would be a resistor and 4V7 Zener.
The resistor is connected between the 24 signal and the PIC input and the Zener from the PIC input to gnd. Anode to gnd. The resistor would need to be about 10k to limit the current but also to provide enough current to bring the voltage up towards 4V7.
We're talking about a PIC - PIC's are very well designed, sensible devices!. All you need is a single series current limiting resistor from the 24V to the PIC I/O pin - the PIC protection diodes will clip the input to 5V, and the resistor limits the current. It's designed to work in this way!.
As mentioned in my tutorial at , the very bottom paragraph.
We're talking about a PIC - PIC's are very well designed, sensible devices!. All you need is a single series current limiting resistor from the 24V to the PIC I/O pin - the PIC protection diodes will clip the input to 5V, and the resistor. It's designed to work in this way!.
As mentioned in my tutorial at , the very bottom paragraph.