Shop OBEX P1 Docs P2 Docs Learn Events
MAX5250 DAC - Not working with BS2sx — Parallax Forums

MAX5250 DAC - Not working with BS2sx

ThaneThane Posts: 4
edited 2008-06-19 00:13 in BASIC Stamp
Hello. I'm trying to interface the OEM Basic Stamp 2sx with the MAX5250 DAC. I followed the wiring instructions from the PDF, nv59.pdf, found·on Parallax's website.

I'm using the sample code, but I cannot get this to work. All I get is a reading of 25.4mV as an output voltage.

Has anyone gotten this to work? Is there a better way to convert digital to voltage?

Thanks.·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-06-18 12:51
    Double check your wiring and your program.

    There are all sorts of ways to do digital to analog conversion. What are you trying to accomplish?

    The PWM statement, for example, is a simple mechanism for doing it. Read the chapter in the PBasic manual on it.

    Nuts and Volts #18 discusses the use of a digital potentiometer to get an analog output.
  • ThaneThane Posts: 4
    edited 2008-06-19 00:01
    Thanks for your reply. The PWM solution works as you mentioned, but I require a solution that will allow me to set the output·to a certain value and have it remain at that value while the stamp is doing other things. I chose this DAC because of its "latching" feature.

    I will recheck everything again.

    Thanks.

    -·Thane
  • Mike GreenMike Green Posts: 23,101
    edited 2008-06-19 00:13
    You could use a sample and hold circuit. Often just an op-amp can hold and buffer the analog output while the Stamp is off doing other things. Eme Systems is a good site for Stamp information (www.emesystems.com/BS2PWM.htm).
Sign In or Register to comment.