# Pi, Level shifter, ADS1115, MPX differential sensor wiring questions

**URL:** https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427
**Category:** General
**Created:** [3 June 2022 15:49 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427 "2022-06-03T15:49:45Z")
**Posts on this page:** 13
**Page:** 2

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [5 June 2022 13:25 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/21 "2022-06-05T13:25:21Z")

</div>

> [@iiot2k](#):
>
> Remove (desolder) the resistors on other modules.

This is something I have never ever needed to do. It also renders the modules useless for other projects!

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [7 June 2022 07:18 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/22 "2022-06-07T07:18:57Z")

</div>

you dont want to use the pi to read the data,  
I use the ads1115 with the esp8266.  
I do not use a voltage shifter its not needed. its sending a digital signal to the esp8266 with tasmota its a piece of cake.  
@WBr you had helped me out now its my turn to pay the favor back.  
1.  
no voltage divider is needed in this case.  
2. pi's don't have an ADS  
3. you have the ads its the ads1115.  
Do you have Esp8266 with Tasmota installed on it?  
Message me I can walk you through what i had done.  
I used a solder bread board to make a circuit board. I soldered a 10 pin socket on board so i can remove and replace the ads1115 I then soldered wires from those pins to terminal blocks on the board and i have a terminal block kit for my esp8266's ( i like solid connections, brewing equipment vibrate)  
here are a couple of picture examples

 ![20220513_133135](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/0/00767f86c6d163de71fe4f517c54a5d11247a676.jpeg)  
 ![20220512_161142](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/9/8900b5fff8f17429545023de01fc57f47029d431.jpeg)  
its easy to swap out an ads1115  
you do have to have flash the tasmota files correctly to be able to use the ads1115 but it was pretty simple.

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [7 June 2022 07:40 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/23 "2022-06-07T07:40:02Z")

</div>

> **[6pcs ESP8266 NodeMCU LUA CH340 ESP-12E WiFi Internet Development Board 4M Flash...](https://www.amazon.com/ESP8266-Internet-Development-Wireless-Micropython/dp/B07RNX3W9J)**
>
> 6pcs ESP8266 NodeMCU LUA CH340 ESP-12E WiFi Internet Development Board 4M Flash Serial Wireless Module for Arduino IDE/Micropython New Version : Electronics

> **[Amazon.com: KeeYees ESP8266 Breakout Board GPIO 1 into 2 for ESP8266 ESP-12E...](https://www.amazon.com/KeeYees-Expansion-ESP8266-ESP-12E-Development/dp/B08D3FF6WY)**
>
> This expansion board is specially designed by KeeYees technical team. It is fully compatible with the ESP8266 ESP-12E development board. It can expand one GPIO pin on the development board to two, which greatly facilitates users to reuse pins for...

not sure if i can send a zip file or not but i have the firmware for the esp8266 to allow the ads1115 ( I2c) to work on it in tasmota.  
Tasmota also works on esp32's

---

<div class="post-metadata">

### Author: ![WBr](https://avatars.discourse-cdn.com/v4/letter/w/b3f665/32.png) [@WBr](https://discourse.nodered.org/u/WBr)
#### Post date: [7 June 2022 08:30 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/24 "2022-06-07T08:30:24Z")

</div>

> [@9toejack](#):
>
> you had helped me out now its my turn to pay the favor back.

That is very nice of you

> [@9toejack](#):
>
> Esp8266 with Tasmota installed on it?

Nope I don't!

Can the Esp8266 send things to the pi?

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [7 June 2022 08:43 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/25 "2022-06-07T08:43:58Z")

</div>

Yes with mqtt

---

<div class="post-metadata">

### Author: ![WBr](https://avatars.discourse-cdn.com/v4/letter/w/b3f665/32.png) [@WBr](https://discourse.nodered.org/u/WBr)
#### Post date: [7 June 2022 09:56 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/26 "2022-06-07T09:56:33Z")

</div>

I mean, via USB? serial port?

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [7 June 2022 09:59 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/27 "2022-06-07T09:59:27Z")

</div>

This means you have to have the sensors relatively close to the Pi. MQTT is a far better solution in this case.

---

<div class="post-metadata">

### Author: ![WBr](https://avatars.discourse-cdn.com/v4/letter/w/b3f665/32.png) [@WBr](https://discourse.nodered.org/u/WBr)
#### Post date: [7 June 2022 10:05 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/28 "2022-06-07T10:05:13Z")

</div>

Yes, the sensor is close to the pi. Could you elaborate what you mean? and does usb connection work between pi and esp8266?

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [7 June 2022 17:02 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/29 "2022-06-07T17:02:01Z")

</div>

Sorry you got me when i was in bed heading to sleep.  
I'll look if it connects via serial.  
ive seen a few videos where you wright your own code and yes it will connect.  
however the esp8266 is a wifi device. It's much easier using the wifi and connecting them together that way.  
I need to wright up a how to on how I

1. flashed the Tasmota
2. set up the wifi
3. enabled mqtt
4. set up mqtt paramaters
5. set up inputs ie. Ds18b20's, i2c bus , etc.  
6 set up flows to gather the information.
6. set up flows to control relays on the tasmota device.  
I am running the taps today at brewery, but ill take my laptop with me and start up a instruction.  
Just a little note, I had issues with all my ds18b20's connected to the pi. they slow the flows down if not causing node red to crash.  
using the esp8266's does a few things.
7. using one esp for each device makes it modular and easier to add more devices.
8. the esp does all the hard work of data receiving. and then sends a simple message to mqtt.
9. it frees up a bunch of gpio pins on your Pi for other things.  
you could just use the esp's to gather the data, and then the pi can control everything itself. but you must remember if using PWM there is only 2 on the pi. each ESP has PWM as well. wich will allow further control of each device independently. you can then in return use the pi to monitor that things turn on and off , with the freed up GPIO's.  
May be redundant however Plan B and Plan C is important.

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [7 June 2022 17:04 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/30 "2022-06-07T17:04:29Z")

</div>

This is a really good video to get a grasp on it.

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/aeb701dabe206f2156b939302315297148bdf531.jpeg "The COMPLETE Guide to Tasmota 2019") ](https://www.youtube.com/watch?v=08_GBROKQH0)

---

<div class="post-metadata">

### Author: ![MecatronicaMADE](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@MecatronicaMADE](https://discourse.nodered.org/u/MecatronicaMADE)
#### Post date: [7 June 2022 17:57 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/31 "2022-06-07T17:57:38Z")

</div>

For sure or if you want @WBr also could use [PubSubClient](https://pubsubclient.knolleary.net/) library to connect your device (ESP8266/32) with MQTT, and use the [ADS1x15 library](https://www.arduino.cc/reference/en/libraries/ads1x15/) to read analog values from ADS1115.

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [7 June 2022 19:13 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/32 "2022-06-07T19:13:01Z")

</div>

@WBr  
here is the start of tutorial, hopefully this can get you going on installing tasmota onto the esp8266.  
also another good note the Esp8266 has a pull up resistor built in, this can be enabled when using DS18b20's

> [@How to install Tasmota on an ESP8266](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587):
>
> How to set up an esp8266 with Tasmota, and collect data from pressure sensors, humidity, and temperature sensors, and use Node Red Dashboard to display your readings. Things you will need. 1 A raspberry pi with Node Red and MQTT installed an Esp8266 a terminal block dev kit for the esp8266 some solder bread boards. some wire and sockets to solder to breadboard I use 4 wire phone line ( I also use it to extend the lines of the DS18b20’s and the Pressure sensors. it also ma…

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [6 August 2022 19:13 UTC](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427/33 "2022-08-06T19:13:25Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/pi-level-shifter-ads1115-mpx-differential-sensor-wiring-questions/63427.md?page=1)
