I2C protocol with arduino

ADS work correctly i checked it using lCD. second DAC provide constant 2.5 V as output. 2.5v can see other DAC output with any SCL AND SDA connection

Remove U1 and U3 physically from the network. Now, check if U2 is working correctly -- I mean that the DAC2's output changes as you change the input data.

In principle the i2c address should be set on init, the chip could update its address on reset only, so the setup should use only 2 of them and hw A0 to GND and VDD. There are I2C multiplexers also to help address collision like this.
Peripheral IO hardware devices

The above is a partial description. The full description is below which advocates that more than two devices can be operated using I2C bus with A0-pin dynamically controlled.
A0pin

thank you all. now it work correctly. i previse concept design to 3 gas sensors. but i need join to it DHT11 one sensor. can all help to it. what protocol match to new design.

What did you change, to fix it?

no i did any change. draw the schematic again.

can you help me my next step

I am having increasing difficulties understanding you.

I want to know how you fixed the problem with the second DAC.

I did nothing for the second DAC. I redrew the circuit with proteus again. Then it worked correctly. I designed it for 3 MQ sensors. I now intend to add a DHS11 sensor to it. But its output is an 8bit digital signal. How to give the output signal of these three sensors using only two data lines per esp32 chip. That is my new question

Are you simulating or have procured devices and testing them?

Ah, got it. You are simulating, not building a real circuit. I should have seen that. There was some problem with the simulator, but re-drawing the circuit fixed the simulation somehow.

I recommend using an SHT21/30/31 instead of dht11. No extra pins required, because SHT21 etc use i²c bus, like your ads1015 and mcp4725.

s-l400 (38)

Thank you to your help.

This should not be marked as solved until you test it using real components.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.