Announcement

Collapse
No announcement yet.

How to use a SPI Digital POT with Picaso 4DGL?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Atilla
    replied


    Thanks mechg, I2C version would be a much neater option.

    Leave a comment:


  • mechg
    replied


    MicroChip also makes digital pots that use I2C, which your touchscreen supports in hardware. Check out the MCP4017 series. Digikey has them for $.63.
    Here is an example of how to use I2C:
    http://4d.websitetoolbox.com/post/AD7995-ADC-code-sample-5020448

    Leave a comment:


  • Atilla
    replied


    The SPI port on the Picaso is dedicated to the microSD. You might be able to bit bang the IO pins on the Picaso to achieve a slow SPI (in 4DGL code), the digital pot wouldn't need anything fast. However, if you want to save yourself the hassle then Sparkfun has a nice little SPI to Serial converter module which you can use: http://www.sparkfun.com/products/9981

    Leave a comment:


  • HexDev
    replied


    Bump... Anyone?

    Leave a comment:


  • HexDev
    started a topic How to use a SPI Digital POT with Picaso 4DGL?

    How to use a SPI Digital POT with Picaso 4DGL?

    As title says, I need to use a digital potentiometer with my 3.2" touch-screen that is programmed in 4DGL (Picaso). I want to be able to control the digital pot using spi interface, but I am not sure where to start.
    Digital POT Data sheet: 7/8-Bit Single/Dual SPI Digital POT with Volatile Memory
    I know little about SPI, so any help/tutorials would be a lot of help.
    Thanks!
Working...
X