0

This is probably a cry for help for a circuit diagram which involves connecting ESP8266 with ADS1115 with ACS712 and ZMPT101B(voltage sensor). Since both of them uses analog pins, and using a diode separator is not a proper idea in real-life. Therefore I ended up using the ADS1115 for more analog pins, which should be working fine. I am not a electrical engineer so I am having real trouble as to how to fix all Four of them together. Can any one help me with a circuit diagram for this? Any links or research papers links, etc. Thanks

per1234
4,2782 gold badges23 silver badges43 bronze badges
asked Oct 25, 2018 at 6:56
2
  • I hope you have modules not bare chips. Add links. The ADS1115 use I2C a.k.a. Wire to communicate with MCU. Default Wire pins on esp8266 are io 5 SCL and io4 SCA. I recommend to use this pins. Of course te module needs 3.3 V and ground. Commented Oct 25, 2018 at 7:19
  • If you can make your comment as an answer then I will mark it. Commented Oct 29, 2018 at 7:20

2 Answers 2

0

The ADS1115 use I2C a.k.a. Wire to communicate with MCU. Default Wire pins on esp8266 are io 5 SCL and io4 SCA. I recommend to use this pins. Of course the module needs 3.3 V and ground.

answered Oct 29, 2018 at 7:59
1

Step one is to get the ADC working. Once that is done everything else will fall pretty much into place.

The ADC you have chosen is an I2C device. The ESP8266 doesn't have I2C as such, but it does provide a software-emulated I2C implementation. This can be used on any pair of pins, but the default ones are GPIO4 for the data (SDA) and GPIO5 for the clock (SCL) (this corresponds to the Arduino Uno using pins A4 and A5 for I2C, so it should be easy to remember).

Once you have that working the wiring for the rest is the same as for any other system. The only thing that differs is that your analogue inputs are on the ADC chip, not the main module.

Here's a block diagram to get you started:

schematic

simulate this circuit – Schematic created using CircuitLab

This is assuming:

  • Single voltage output from each of your sensor modules
  • I2C pullup resistors provided by either ESP8266 or ADS1115 (add your own if not)
  • All modules providing the required support components for the chip
answered Oct 25, 2018 at 9:18
3
  • ok, sorry i was inactive on this post, I did reply a comment to Juraj, dont know who deleted that.. Thank you so much for the circuit, I have been able to follow Juraj's instruction and come up with a circuit of my own. But your schematics help a lot as I am now confirmed that my circuit is correct. Although I am having another problem.But I will ask later, Thank you so much for the Help. Commented Oct 29, 2018 at 7:15
  • Majenko, can you share your code please Commented May 23, 2021 at 2:25
  • 1
    @LêHùng What makes you think I went to the effort to write any code? This is just a block diagram to show how it works. Commented May 23, 2021 at 9:24

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.