CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

switch on 2.1v and 2.5v

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Nick
Guest







switch on 2.1v and 2.5v
PostPosted: Sun Dec 26, 2004 12:49 pm     Reply with quote

I am trying to make a switch on 2.1 volts and anther switch to turn on at 2.5 volts without using the PIC. The wire will have between 2v and 4v and I would like the switch to supply +5v for true and 0v for false. Does anyone have any pointers?


analog line
(2v-4v)________________---Switch----(+5v or 0v)

Nick
Charlie U



Joined: 09 Sep 2003
Posts: 183
Location: Somewhere under water in the Great Lakes

View user's profile Send private message

PostPosted: Sun Dec 26, 2004 1:14 pm     Reply with quote

I am not certain what you are trying to do, but it sounds like you could use an analog switch such as a TI CD74HC4066. Take a look at this link and see if it is what you are looking for.

http://focus.ti.com/docs/prod/folders/print/cd74hc4066.html

Or are you trying to create 0 and 5V from the analog line? In that case, you could use a comparator such as an LM393. Look at the data sheet and some of the app notes. You may want to add a bit of hysterisis to give some noise rejection.

http://www.national.com/pf/LM/LM393.html
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: switch on 2.1v and 2.5v
PostPosted: Mon Jan 03, 2005 9:14 am     Reply with quote

Nick wrote:
I am trying to make a switch on 2.1 volts and anther switch to turn on at 2.5 volts without using the PIC. The wire will have between 2v and 4v and I would like the switch to supply +5v for true and 0v for false. Does anyone have any pointers?


analog line
(2v-4v)________________---Switch----(+5v or 0v)

Nick


Sounds like you want a comparator circuit. You can do this with OP amps and voltage dividers. Some PIC's have comparitors built in.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group