Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By dayzman
#18446
martinayotte wrote:You mean some Analog Outputs ? The Arduino doesn't provide that, except by outputing PWM, and you will need to add filter caps and op-amp ...
How many outputs you need ? Maybe it is better to attach real DAC to an I2C bus, such as MCP4725.


Well, only just one output. Doesn't MCP4725 give one output though?
User avatar
By martinayotte
#18457 Yes ! MCP4725 has an A0 address pin on this 6 pins SOT23, you can have 2 devices per I2C bus, while MCP4726 doesn't since the pin is used to provide an external VRef.

Here are the specs for both MCP4725 and MCP4726 :
http://ww1.microchip.com/downloads/en/D ... 22039d.pdf
http://ww1.microchip.com/downloads/en/D ... 22272C.pdf

If you need more outputs, you can either search for more sophisticated DAC, or add a I2C multiplexer such NXP PCA9547
http://www.nxp.com/documents/data_sheet/PCA9547.pdf, but it a bit costly ...

Edit : I've found a more affordable I2C multiplexer a bit more affordable, a 4 channels instead of 8 channels, the PCA9546 http://www.nxp.com/documents/data_sheet/PCA9546A.pdf