Shop OBEX P1 Docs P2 Docs Learn Events
can Stamp give me -5V — Parallax Forums

can Stamp give me -5V

kranthikranthi Posts: 1
edited 2005-10-29 21:35 in BASIC Stamp
hi can stamp give me -5V and +5V instead of 0V and +5V using commands like HIGH or LOW.

thanks,
kranth

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2005-10-29 16:56
    kranth -

    The direct answer to your question is no it can't, as is. However, I'm sure one of the analog gurus here can show you a way to add a transistor or two to the output pin such that you could get that kind of output.

    Regards,

    Bruce Bates
  • Beau SchwabeBeau Schwabe Posts: 6,557
    edited 2005-10-29 17:35
    Bruce, you rang? jumpin.gif


    kranth,

    Here is a simple level shifter that will do what you want (inverted).
    In other words, you make the pin HIGH (+5) and you get -5V on the output.
    likewise, you make the pin LOW ( 0V or GND ) and you get +5V on the output.

    Keep in mind you need to generate a -5V source to supply the level shifter.
    Let me know if you need help with that, and I can supply a schematic as well.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
    859 x 625 - 43K
  • JonathanJonathan Posts: 1,023
    edited 2005-10-29 18:29
    Kranth,

    A quick and dirty way to get *close* to -5 is called a charge pump. Look on the web for "negative charge pump". You'll find plenty of schematics for it. Basically you use a couple of caps, a diode and a resistor. The circuit requires being pulsed at a fairly high rate, so if your Stamp is too busy to do it, then a 555 timer can be used.

    This type of arrangment can't provide much current, and it is noisy. It is best for things like a - voltage for an LCD that requires it, for example. It is not as good for things like op-amp amplifiers, as it adds noise. It is cheap and made from parts you can pull from junk.

    Jonathan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2005-10-29 21:35
    With·a MAX232 you could have +10 & -10V outputs, from only a +5V supply.

    Better yet, if you want to have -5V, there's the ICL7660, a CMOS "+5 to -5V converter", an "ideal' option.· www.jameco.com/wcstore/Jameco/Products/ProdDS/51174.pdf
Sign In or Register to comment.