# Raspberry Pi & ADS 1x15 simple flow

**URL:** https://discourse.nodered.org/t/raspberry-pi-ads-1x15-simple-flow/28198
**Category:** General
**Created:** [11 June 2020 19:11 UTC](https://discourse.nodered.org/t/raspberry-pi-ads-1x15-simple-flow/28198 "2020-06-11T19:11:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nlebidakis](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@nlebidakis](https://discourse.nodered.org/u/nlebidakis)
#### Post date: [11 June 2020 19:11 UTC](https://discourse.nodered.org/t/raspberry-pi-ads-1x15-simple-flow/28198/1 "2020-06-11T19:11:55Z")

</div>

Hello there , i am new to node red and i am trying to set up a simple task . I have connected to my Raspberry Pi a ADS1x15 ADC with a CT clamp and i am trying to measure current( AC) .I am getting data in my node red flow in the debug area .My problem is that i connect a gauge and i cant convert the huge number that i read from the ADS1x15 which is from 0 to 2V to ampere in my gauge .The whole idea is to have 2 gauges in my dashboard ,one to measure current and the other energy .Every help is appreciated .Below is my code in node

```auto
 [{"id":"93c2c569.31c028","type":"ads1x15-raspi","z":"7ecad0b5.cbf5e","property":"payload","name":"ads","chip":"IC_ADS1115","i2c_address":"ADDRESS_0x48","channel":"CHANNEL_0","samplesPerSecond0":"SPS_920","samplesPerSecond1":"SPS_128","progGainAmp":"PGA_0_512V","x":290,"y":240,"wires":[["111335cd.99dfca"]]}]

```

 ![screenshot.109](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/c/fc7c9f3eaf870373a2c442271148b68d0ea9c1f7.jpeg) ![screenshot.110](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/9/594b99fd651c72e86ac60b37918e9e0f7f5357cb.jpeg) !

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [11 June 2020 21:16 UTC](https://discourse.nodered.org/t/raspberry-pi-ads-1x15-simple-flow/28198/2 "2020-06-11T21:16:23Z")

</div>

I think what you are seeing there is the milliseconds timestamp as generated by the inject node. Perhaps the value is in a different part of the message. Set the debug node to Show Complete Message and see what else is there. What node type is it? node-red-contrib-something probably. Check the Info tab for the node and see what it says about the outputs.  
When you want to paste a flow here then go to a new line, click the `</>` button and paste the flow where it indicates. That way we will be able to import it.

---

<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: [10 August 2020 21:16 UTC](https://discourse.nodered.org/t/raspberry-pi-ads-1x15-simple-flow/28198/3 "2020-08-10T21:16:25Z")

</div>

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