Apsaires
Posts: 2
Joined: Wed May 12, 2021 12:02 pm

Analogue OUT Pins

Wed May 12, 2021 12:06 pm

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é

hippy
Posts: 9911
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Analogue OUT Pins

Wed May 12, 2021 12:09 pm

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

Reneg973
Posts: 26
Joined: Mon Apr 26, 2021 5:49 pm
Location: Germany

Re: Analogue OUT Pins

Wed May 12, 2021 9:20 pm

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.

Apsaires
Posts: 2
Joined: Wed May 12, 2021 12:02 pm

Re: Analogue OUT Pins

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?

User avatar
B.Goode
Posts: 12062
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Analogue OUT Pins

Sun May 23, 2021 12:54 pm

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.

fivdi
Posts: 436
Joined: Sun Sep 23, 2012 8:09 pm
Contact: Website

Re: Analogue OUT Pins

Sun May 23, 2021 1:00 pm

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.

Return to “General”