Shop OBEX P1 Docs P2 Docs Learn Events
Nice ADC -> TLC0838 — Parallax Forums

Nice ADC -> TLC0838

D FaustD Faust Posts: 608
edited 2007-11-05 12:11 in BASIC Stamp
I was looking for an 8-bit (so I only have to use a byte, not a word) 8 channel (for all sorts of sensors) ADC·to attach to my bot (in progress).· I didn't find much help, so I just ordered the TLC0838.· It works fine, the only trouble is that I couldn't find any example code for requesting·the channel, and had to make it up myself.

Anyway, if you are looking for an ADC with quantity (of inputs) and only 8 bits the TLC0838 works well.(FYI)·

Attached is·BS2 code for reading the inputs (all 8) and displaying them on the debug screen.· The code is based on the code for the 0831 in the Stamp Works book, with some modifications.· I hope this helps someone.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--DFaust

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-11-05 03:29
    The TLC0838 is functionally similar (almost identical) to the ADC0838 for which there is a lot of sample code on the Parallax website. Check out Nuts and Volts and the Basic Analog and Digital tutorial. I think the EME Systems website also covers it (www.emesystems.com).
  • pwillardpwillard Posts: 321
    edited 2007-11-05 04:30
    I also like the 8-bit TLC549. Easy to use with the Stamp.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    There's nothing like a new idea and a warm soldering iron.
  • D FaustD Faust Posts: 608
    edited 2007-11-05 12:11
    Good info.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --DFaust
Sign In or Register to comment.