How can I get a PIC to switch 2.5V DC to my Opamp pin?


Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Mar 2009
    Posts
    653

    Default How can I get a PIC to switch 2.5V DC to my Opamp's +ve pin?

    So I found this little circuit that works well for my needs - the circuit takes one small analogue signal into an opamp & when a SPST switch is flicked, the opamp output changes from non-inverting to inverting.



    I've changed the circuit to illustrate my needs - it normally switches a ground to the non inverting pin - that's fine if you're using dual rail/supply opamp circuits - but all my circuit is single rail & therefore my opamp pins input pins aren't biased at ground potential ..........my circuit uses a single rail of 5V - therefore all my opamps are biased at VCC/2 .... 2.5V.

    So therefore rather than switch a ground to the non inverting pin (which would have been easy to do with a PIC!) ...I'm faced with having to switch 2.5V - so I'm looking for a way to get the PIC to do this with the lowest component count possible! Also, I want to avoid relays as I just don't have the PCB real estate available.

    Now Melanie touched upon a way of switching to 5V/0V from a mid 2.5V DC potential (http://www.picbasic.co.uk/forum/showthread.php?t=11163 ) ...but I can't see how I could use her clever little suggestion in this instance - because the cicuit above is an on off switch.

    Any ideas?
    Last edited by HankMcSpank; - 6th November 2009 at 00:51.

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 05:07
  3. RS232 to Parallel Printer Converter
    By Squibcakes in forum Code Examples
    Replies: 6
    Last Post: - 19th September 2006, 16:11
  4. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 12:03
  5. Battery Backup with PIC controlling switch
    By Dwayne in forum Schematics
    Replies: 1
    Last Post: - 27th December 2003, 13:16

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts