Page 1 of 1

Analogue OUT Pins

Posted: Wed May 12, 2021 12:06 pm
by Apsaires
Hi there,

I'm new to programming, so be patient with me please.... ;)

I've bought a Raspberry Pi PICO to build a project in which I realized that I need 3 analogue OUT pins. But the PICO has none, is there any way to overcame this issue?

Many thanks
André

Re: Analogue OUT Pins

Posted: Wed May 12, 2021 12:09 pm
by hippy
PWM output with a resistor-capacitor to create a voltage is one way. A resistor-DAC using multiple GPIO output pins is another. You could add external DAC. What is suitable or best all depends on what your voltage out spec is.or

Re: Analogue OUT Pins

Posted: Wed May 12, 2021 9:20 pm
by Reneg973
There are not many µC out there which support 3 DAC.
So it's a question of money, quality and frequency how your analogue output looks like.

Re: Analogue OUT Pins

Posted: Sun May 23, 2021 12:46 pm
by Apsaires
Thanks,

I'm using an adafruit mcp4728 dac with my pico, I need to send 4 different values to it by i2c but I do not know how to do it.....
Any Help?

Re: Analogue OUT Pins

Posted: Sun May 23, 2021 12:54 pm
by B.Goode
Apsaires wrote:
Sun May 23, 2021 12:46 pm
Thanks,

I'm using an adafruit mcp4728 dac with my pico, I need to send 4 different values to it by i2c but I do not know how to do it.....
Any Help?
There is a previous discussion of this device on the Micropython forums - https://forum.micropython.org/viewtopic.php?f=14&t=7311

(The discussion far pre-dates the RP2040 and Pico, but the published solution might be generic and based only on the standard i2c interface.)

Or it seems Adafruit have a CircuitPython solution.

Re: Analogue OUT Pins

Posted: Sun May 23, 2021 1:00 pm
by fivdi
For CircuitPython there's the MCP4728 library documented at https://circuitpython.readthedocs.io/pr ... en/latest/
The corresponding GitHub repository is at https://github.com/adafruit/Adafruit_Ci ... on_MCP4728.