Post Go back to editing

LTC2686 library for Raspberry Pico or Arduino

Hello, I've bought a DC2904A evaluation kit containing an LTC2686 DAC. Instead of using the Linduino board to control a single DC2904A I want to control several of these boards with a Raspberry Pico microcontroller, which can run Arduini C-code. I've tried to find some example code for the LTC2686, but so far I haven't found any. In the LTSketchbook.zip file downloaded from www.linear.com/ docs/43958, there are several examples but for not for the LTC2686.

Is there any ready-to-run simple/minimal example code to control the LTEC2686 using a Raspberry Pico. Or, if not, code for an Arduino Uno?

Parents Reply Children
  • Hello, thank you for the raspberry pico code, but I'm not sure how to use it. The LTC2686 uses SPI communication, so I took a look at pico_spi.c, but it seems to me that it is just a library to send a SPI commands. It's not clear to me how to simply a voltage to a specific channel. For example, what should I pass as parameter to the functions?

    Is there any sample code available that shows how to use the no-os drivers?

  • Maybe I'm missing something, but some dependecies includes in the pico_spi.c and pico_spi.h are not included in the repository. 

    #include "pico/stdlib.h"
    #include "hardware/resets.h"
    #include "hardware/spi.h"

    Could you help me to compile and example code? Sorry if my coding experience is too low.