Shop OBEX P1 Docs P2 Docs Learn Events
Need help interfacing a digital pot. — Parallax Forums

Need help interfacing a digital pot.

BobHBobH Posts: 33
edited 2006-10-02 16:09 in BASIC Stamp
Hello,

I'm trying to interface a 10K digital pot to two·BS2s. What I'm trying to do is have one stamp set the value of the pot and the other read that value using RCTIME. I'm having no luck at all with the interface connections or the coding of setting the pot. Any help would be much appreciated.

The data sheet for the digital pot I'm using·is at:
·https://jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&storeId=10001&catalogId=10001&productId=241744

Bob

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-10-02 16:09
    You're going to have to provide more detail. In particular, what is your setup (with a schematic if possible) and what have you tried (including partial or complete program source).

    The part you've linked to is a standard SPI interface serial pot which should work with the SHIFTOUT command in PBasic. According to the datasheet, the pot requires a 16 bit word. The high order byte is a command and the low order byte is the setting for the pot. The data looks like it's MSB first.
Sign In or Register to comment.