Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 29th September 2005, 06:34 PM   (permalink)
Default How to convert a 0-24v sqaure wave in to a 0-5v sqaure wave?

Hi,

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
jet_pack234 is offline  
Old 29th September 2005, 06:39 PM   (permalink)
Default

voltage divider to pot it down
IF not good enough then that signal then to drive the GATE of a FET that is pulled upto 5V
__________________
Nothing is impossible.
Once a problem is realised, the rest is just details


Styx is offline  
Old 30th September 2005, 01:28 AM   (permalink)
Default

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.
ljcox is offline  
Old 30th September 2005, 09:42 AM   (permalink)
Default

All too complicated :lol:

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 http://www.winpicprog.co.uk/pic_tutorial_extras.htm, the very bottom paragraph.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 30th September 2005, 10:46 AM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
All too complicated :lol:

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 http://www.winpicprog.co.uk/pic_tutorial_extras.htm, the very bottom paragraph.
Yes well that far too sensible. Cant be having that. I am going to petition for PIC's to be scrapped on the basis that they do their job
__________________
Nothing is impossible.
Once a problem is realised, the rest is just details


Styx is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 05:43 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker