ADS1015 Connection on RPI

Hey All,

I have an ADS1015 connected to my Raspberry Pi3 B+ but i cant see it or attach it to my Cayenne dashboard. The ADS is for reading analog pressure sensors from 0-550 psig. Output on the sensors is .5-4.5v. This is connected and reading fine on sample program code.
Why wont Cayenne read the ADS at all?

are you using the ADS1015 plugin?

Yes, ADS plug in is on the Pi. Do I need to call on it or import it somewhere?

i am referring to this GitHub - myDevicesIoT/cayenne-plugin-ads1xxx: An ADS1XXX extension plugin for Cayenne. have you added it?

Yes, it is in there.
/home/pi/cayenne-plugin-ads1xxx

Got it! Reloaded and restarted. That part is good! Reading all 4 channels.
Now… I need to change the analog 0.0 voltage value to PSI. The range will be 0-500 psi. The pressure transducers are .5 - 4.5 volts.
.5 being 0 psi and 4.5 volts being 550 psi
Is there a pressure module that will work with this range? The only module for pressure that I see is for barometric pressure which is way too low.

which barometric pressure sensor are you using? can you provide some link?

Not using a barometric sensor.

This one is .5 to 4 5 volts

Measures between 0 - 550 psi

Kevin Williams

Commercial Food Equipment Service Instructor

Wake Tech Community College

Email correspondence to and from this address may be subject to the North Carolina Public Records law and may be disclosed to third parties by an authorized state official (NCGS. ch. 132). Student educational records are subject to FERPA.

so the output from these sensor is 0.5 to 4.5 which you are able to read from the sensor?
now you want to map it to values 0 to 550? try this simple function which does this:

def map(x, in_min, in_max, out_min, out_max):
    return int((x-in_min) * (out_max-out_min) / (in_max-in_min) + out_min)

which is similar to Arduino map function.
you may also want to use the cayenne Python library to add your device, as it gives more freedom on what you wan to show: GitHub - myDevicesIoT/Cayenne-MQTT-Python: Python Library for Cayenne MQTT API

Thank you. I will try it.

Kevin Williams

Commercial Food Equipment Service Instructor

Wake Tech Community College

Email correspondence to and from this address may be subject to the North Carolina Public Records law and may be disclosed to third parties by an authorized state official (NCGS. ch. 132). Student educational records are subject to FERPA.

ok, so correct me if I am wrong.
On the Cayenne platform, I load my RPI, then I can load my ADS1015 under the RPI? I have the latest codes for the ads1015 and it shows up under the RPI but as sensors reading voltage. I think it should let me load in the ads1015 first, then load the probes or sensors under the ads?? No? At least that seems to be the neatest most organized way to display. When I go to load the ADS it doesnt let me pick a device. I dont think Cayenne sees it. But, I can load in the probes through MQQT by adding a new custom “bring your own thing”. I need help.

you mean to show the real value and not the analog voltage value. if yes, then we will take this into consideration.

what do you mean by this?

I would like to know, why I can’t install my ads1015 on my Cayenne dashboard, but I can read the probes attached to it?

Kevin Williams

Commercial Food Equipment Service Instructor

Wake Tech Community College

Email correspondence to and from this address may be subject to the North Carolina Public Records law and may be disclosed to third parties by an authorized state official (NCGS. ch. 132). Student educational records are subject to FERPA.

you can install the ads1015 plugin which will automatically add it to cayenne dashboard.

I did. And it is not automatically adding it nor can I add it manually.

Kevin Williams

Commercial Food Equipment Service Instructor

Wake Tech Community College

Email correspondence to and from this address may be subject to the North Carolina Public Records law and may be disclosed to third parties by an authorized state official (NCGS. ch. 132). Student educational records are subject to FERPA.

The ads is hooked up and plugin is installed. This is what I get when I go to add it. But the probes are reading. .

Confusing.

Kevin Williams

Commercial Food Equipment Service Instructor

Wake Tech Community College

have you tried this?

Yup, that is installed.

And changed the default from 1115 to 1015 like the file says to.

Kevin Williams

Commercial Food Equipment Service Instructor

Wake Tech Community College

Email correspondence to and from this address may be subject to the North Carolina Public Records law and may be disclosed to third parties by an authorized state official (NCGS. ch. 132). Student educational records are subject to FERPA.

so that should add green temporary ads widgets when you restart your pi agent.

Yup, it should.

But it is not.

Kevin Williams

Commercial Food Equipment Service Instructor

Wake Tech Community College

Email correspondence to and from this address may be subject to the North Carolina Public Records law and may be disclosed to third parties by an authorized state official (NCGS. ch. 132). Student educational records are subject to FERPA.