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 27th September 2004, 11:26 PM   (permalink)
Default Best / simplest way to limit voltage

Hi,
I want to limit the input voltage to a project, the input will be connected directly to a pin on a PIC, I would like to have as wide a voltage range as resonably possible, is there a simple way to do this like a zener or IC or something?

Thanks
Scarr is offline  
Old 27th September 2004, 11:52 PM   (permalink)
Default

try a voltage divider or use a regulator like a LM317 or LM340
__________________
Reality is an illusion.
absolution is offline  
Old 28th September 2004, 01:28 AM   (permalink)
Default

What do you mean, do you have a high voltage signal wich you need to input into a digital input on a pic?

Just put a resistor in series with it (10K or 100K). The pic's internal clamp diodes will limit the voltage.
Exo is offline  
Old 28th September 2004, 09:33 AM   (permalink)
Default I mean...

I want this pin to be a general purpose input so the user can attach say 12v or 24v etc. to it and I would see this as a digital '1' in my code without damaging the PIC.

Thanks
Scarr is offline  
Old 28th September 2004, 09:58 AM   (permalink)
Default Re: I mean...

Quote:
Originally Posted by Scarr
I want this pin to be a general purpose input so the user can attach say 12v or 24v etc. to it and I would see this as a digital '1' in my code without damaging the PIC.
Like Exo says, a simple series resistor is all that's required, the input protection in the PIC (see the datasheet) will clip the input at 0V and 5V.

A 100K would work fine, and allow much higher voltages than the 24V you are using.

If you check the MicroChip datasheets they use the same method (with a higher value resistor) to feed mains into a PIC pin - to detect zero crossing.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 10:20 AM.


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

eXTReMe Tracker