Shop OBEX P1 Docs P2 Docs Learn Events
I2C code communicating to an ADS1100 connected to a Pot — Parallax Forums

I2C code communicating to an ADS1100 connected to a Pot

bernardrothbernardroth Posts: 2
edited 2006-03-22 22:47 in General Discussion
Hi. I am connecting a Pot to an ADS1100 chip. I am having trouble with the code, and being a beginner, need help with what code I would need to send to the ADS1100. I need to find out what value the Pot has. I know I need to use the I2C commands, but I need some sample code to get going.

Any help would be greatly appreciated.

Thanks.

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-03-22 18:10
    You don't say which controller you're using. You'll also get more help if you provide a link to the technical docs of the part you want to connect to.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • bernardrothbernardroth Posts: 2
    edited 2006-03-22 22:25
    I'm using the Basic Stamp 2PX for the I2C commands. I want to connect the Pots on a joystick to the ADS1100 and read the data from the ADS chip. I will be setting the chip to use continuous mode. Would 8 samples per second be enough for a joystick controller? Would three chips sampling the three Pots flood the Basic Stamp if I sampled at a higher rate?

    Docs for the ADS1100:
    http://focus.ti.com/lit/ds/symlink/ads1100.pdf

    Thanks.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-03-22 22:47
    You can't "flood" the BS2px -- you issue I2C commands to request data when you want it. On your sample rate, only you can determine that and it will be based on your application requirements.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.