Shop OBEX P1 Docs P2 Docs Learn Events
Serial controlled digital pot using shiftout? — Parallax Forums

Serial controlled digital pot using shiftout?

TonyATonyA Posts: 226
edited 2006-06-01 21:45 in BASIC Stamp
Hi,

I was wondering if there are any examples of a serial controlled digital pot? Would this require using shiftout?

Thanks,
Tony

Comments

  • BeanBean Posts: 8,129
    edited 2006-06-01 13:06
    Tony,
    If the digital pot has an SPI interface, then yes, SHIFTOUT is used.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap 4-digit LED display with driver IC·www.hc4led.com


    COMING SOON "SD DATA LOGGER" www.sddatalogger.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
  • TonyATonyA Posts: 226
    edited 2006-06-01 13:11
    Thanks. Any examples around?
  • BeanBean Posts: 8,129
    edited 2006-06-01 13:15
    What digital pot are you using ?
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap 4-digit LED display with driver IC·www.hc4led.com


    COMING SOON "SD DATA LOGGER" www.sddatalogger.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
  • TonyATonyA Posts: 226
    edited 2006-06-01 13:19
    I don't know yet. I am hoping to find some examples first and then get the digital pot. Any recommendations?

    Tony
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-06-01 14:18
    Hello,

    ·· The following link shows which Digital POTs use what type of interface.· You could choose one based on the interface and, if it uses SPI the SHIFTOUT command would work for talking to it.

    http://para.maxim-ic.com/cache/en/results/4364.html

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • TonyATonyA Posts: 226
    edited 2006-06-01 14:43
    That's great. Are there any examples of doing this around?

    Tony
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-06-01 14:57
    Tony,

    ·· We have many examples of using the SHIFTOUT command in various texts and the BASIC Stamp Manual and the Editor Help File.· Once you choose a device you can focus on the specifics of that device, since it will likely vary slightly depending on which one you choose.· Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • BamseBamse Posts: 561
    edited 2006-06-01 16:21
    Here is one example I wrote for MCP42100...

    MCP42100 is a dual 100K digital pot with 256 steps.
    You can also use the same code for MCP42050 and MCP42010.

    The same code should work on MCP41100, MCP41050 and MCP41010 (single pot) as I understand, just skip the code for pot1...

    Datasheet:
    http://ww1.microchip.com/downloads/en/DeviceDoc/11195c.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • TonyATonyA Posts: 226
    edited 2006-06-01 17:13
    Thanks, I appreciate that.
  • bennettdanbennettdan Posts: 614
    edited 2006-06-01 18:41
    Tony
    ···· The WAM text from parallex has a digital pot and some examples.
    http://www.parallax.com/dl/docs/books/edu/Wamv2_2.pdf

    Page 268 in Chapter 9
  • TonyATonyA Posts: 226
    edited 2006-06-01 21:45
    I'll check that out. Thanks again.
Sign In or Register to comment.