# ADS1115 13digit output confusion

**URL:** <https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814>\
**Category:** General\
**Created:** [26 January 2021 18:34 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814 "2021-01-26T18:34:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theboatbuilder](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Theboatbuilder](https://discourse.nodered.org/u/Theboatbuilder)\
**Post date:** [26 January 2021 18:34 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/1 "2021-01-26T18:34:41Z")

</div>

I have a ADS1115 hooked up - the node (blue dot) reads the correct voltage, 3.297v...but the debug outputs a 13 digit number - which I appear unable to alter by any mathematical or script means - Am I being stupid and missing something obvious?? I'm pushing this payload into a signalK-send-pathvalue node (all of which works OK). Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 January 2021 18:37 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/2 "2021-01-26T18:37:42Z")

</div>

What node are you using to read the information? Full name please I.e. node-red-contribute-?/?/?

---

<div class="post-metadata">

**Author:** ![Theboatbuilder](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Theboatbuilder](https://discourse.nodered.org/u/Theboatbuilder)\
**Post date:** [26 January 2021 18:55 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/3 "2021-01-26T18:55:26Z")

</div>

Hi Zenofmud

This is the one!

# node-red-contrib-anolog-to-digital-converter-raspberry-pi 0.4.24

Thanks.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 January 2021 19:01 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/4 "2021-01-26T19:01:54Z")

</div>

> [@Theboatbuilder](#):
>
> but the debug outputs a 13 digit number

can you show us this (screenshot)

> [@Theboatbuilder](#):
>
> which I appear unable to alter by any mathematical or script means

What have you tried and more importantly, what are you trying to achieve?

---

<div class="post-metadata">

**Author:** ![Theboatbuilder](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Theboatbuilder](https://discourse.nodered.org/u/Theboatbuilder)\
**Post date:** [26 January 2021 19:46 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/5 "2021-01-26T19:46:59Z")

</div>

I have attached SS of problem..

I'm attempting to insert battery voltage data onto a signalk server aboard

 ![ADS1115 to SignalK](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/6/16d409d11188b966f9e94655aa734963f24098fa.png) a steel yacht.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 January 2021 19:49 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/6 "2021-01-26T19:49:12Z")

</div>

that long number is the timestamp you inject.

If you click the number in the debug you will see they are actual date-time values.

Change your debug to show complete message.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/d/6d48ec2a49060affc38db20ce29f865e3eb98e5d.png)

then screenshot the output (expand all properties)

---

<div class="post-metadata">

**Author:** ![Theboatbuilder](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Theboatbuilder](https://discourse.nodered.org/u/Theboatbuilder)\
**Post date:** [26 January 2021 20:01 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/7 "2021-01-26T20:01:46Z")

</div>

Hi Steve

Making a bit more sense now..thanks. I need the the voltage to be the payload for signalK (requiring a topic & payload).

 ![ADS1115 to SignalK 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/f/cffb1aaf3fd8be99c7d8f87dfeb601b09b124023.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 January 2021 20:06 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/8 "2021-01-26T20:06:11Z")

</div>

use a change node to move the desired value from its current place to msg.payload.

There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.

[https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

* * *

Quick version - use the copy path button that appears when you hover over the item you want in the debug output & use a `CHANGE` node to copy it to msg.payload.

---

<div class="post-metadata">

**Author:** ![Theboatbuilder](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Theboatbuilder](https://discourse.nodered.org/u/Theboatbuilder)\
**Post date:** [26 January 2021 20:27 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/9 "2021-01-26T20:27:47Z")

</div>

Many thanks for your time & patience tonight...I will study the docs more closely and hopefully get my head around this. Age is catching up with me!

Much appreciated.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 January 2021 20:53 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/10 "2021-01-26T20:53:14Z")

</div>

If you are struggling to get a feel for node-red, I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 January 2021 22:36 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/11 "2021-01-26T22:36:21Z")

</div>

> [@Theboatbuilder](#):
>
> Age is catching up with me!

It’s catching up on all of us 😆 (how could I have 7 grandkids???)

---

<div class="post-metadata">

**Author:** ![Theboatbuilder](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Theboatbuilder](https://discourse.nodered.org/u/Theboatbuilder)\
**Post date:** [27 January 2021 17:13 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/12 "2021-01-27T17:13:32Z")

</div>

Had a good day on this...loads of reading (brain overheated a bit)..but thanks to your knowledgeable guidance now understand the principles a lot more...and managed to get the thing functioning!... 😃

Big respect.

---

<div class="post-metadata">

**Author:** ![Theboatbuilder](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Theboatbuilder](https://discourse.nodered.org/u/Theboatbuilder)\
**Post date:** [8 February 2021 09:52 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/13 "2021-02-08T09:52:20Z")

</div>

Hi

Made a lot of progress, but alas have another not-understanding, would appreciate some guidance:

Node Red gauge is oscillating between FSD & near 0 (ADS1115). Is there a way to avoid/dampen this?

Many thanks.

 ![ADS1115_zero out](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/e/2e20523f3f37742b61f9a4bf14412a67bddecdb7.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [8 February 2021 11:40 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/14 "2021-02-08T11:40:00Z")

</div>

How about a switch node to check the value and only pass something above a certain number?

But the real question should be why are you getting the 0? I would create a test flow that was just working with the node reading the ADS1115 and displaying the value. Then look at the interval you are getting the readings.

1. What is the device sending the readings?
2. Is the device the sending the data going into a sleep mode and not waiting long enough before sending a reading?

---

<div class="post-metadata">

**Author:** ![Theboatbuilder](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Theboatbuilder](https://discourse.nodered.org/u/Theboatbuilder)\
**Post date:** [8 February 2021 15:08 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/15 "2021-02-08T15:08:15Z")

</div>

The node is of a ADS1115....the instruction of which indicate the inject in connected 'in series' ....maybe causing a read delay.

Regards.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [8 February 2021 23:32 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/16 "2021-02-08T23:32:18Z")

</div>

Let me backup.

1. is the ADS1115 attached directly to the raspberry pie?
2. how many samples per second have you set
3. how often is the flow being triggered.

---

<div class="post-metadata">

**Author:** ![iiot2k](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Post date:** [9 February 2021 01:57 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/17 "2021-02-09T01:57:54Z")

</div>

Look in chip ads1115 manual:

NOTE  
Single-ended signal measurements, where VAINN = 0 V and VAINP = 0 V to +FS, only use  
the positive code range from 0000h to 7FFFh. However, because of device offset, the  
ADS111x can still output negative codes in case VAINP is close to 0 V.

---

<div class="post-metadata">

**Author:** ![meeki007](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meeki007/32/12499_2.png) [@meeki007](https://discourse.nodered.org/u/meeki007)\
**Post date:** [9 February 2021 05:24 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/18 "2021-02-09T05:24:44Z")

</div>

Be sure to tag the nodes author with a

```auto
@authorname

```

if you looking for a help

for me it would be

```auto
@meeki007

```

I've pushed a update that formats the msg payload to a more user friendly object. I think it will break quite a few users filters for sorting out the voltage.

[https://github.com/meeki007/node-red-contrib-anolog-to-digital-converter-raspberry-pi/issues/11](https://github.com/meeki007/node-red-contrib-anolog-to-digital-converter-raspberry-pi/issues/11)

---

<div class="post-metadata">

**Author:** ![iiot2k](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Post date:** [9 February 2021 08:39 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/19 "2021-02-09T08:39:35Z")

</div>

On Single-ended mode set value to 0 if value\< 0.

---

<div class="post-metadata">

**Author:** ![Theboatbuilder](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Theboatbuilder](https://discourse.nodered.org/u/Theboatbuilder)\
**Post date:** [9 February 2021 19:07 UTC](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814/20 "2021-02-09T19:07:32Z")

</div>

Solved....Many thanks all for valuable advice.

Rookie error (Copy & Pasting nodes)...has 2 signalk-send-pathvalue nodes wired to the the same topic, one from a MCP3008 the other from the ADS1115 i.e. both on the same gauge via the signalk server,

Regards.

[Next page](https://discourse.nodered.org/t/ads1115-13digit-output-confusion/39814.md?page=2)
