Serial controlled digital pot using shiftout?
TonyA
Posts: 226
Hi,
I was wondering if there are any examples of a serial controlled digital pot? Would this require using shiftout?
Thanks,
Tony
I was wondering if there are any examples of a serial controlled digital pot? Would this require using shiftout?
Thanks,
Tony
Comments
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
·
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
·
Tony
·· 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
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
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
···· 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