Page 1 of 1

Support for ADS1115 and ADS1118

Posted: Mon Feb 26, 2024 1:56 pm
by OderlandoRSilva
Hello. I was thinking about using the ADS1115 and ADS1118 sensors, as they are very common and cheap. I saw an old post talking about the subject, but I saw that no components were created for the library. Has anyone managed to use these sensors using flowcode?

Re: Support for ADS1115 and ADS1118

Posted: Mon Feb 26, 2024 2:35 pm
by medelec35
Hello.
I have just ordered one.
Hopefully, it will be added to the components this week, depending on the delivery day.

Re: Support for ADS1115 and ADS1118

Posted: Wed Mar 06, 2024 2:04 pm
by OderlandoRSilva
Hello. Is there anything new? I'm curious to know if it worked haha

Re: Support for ADS1115 and ADS1118

Posted: Thu Mar 07, 2024 2:36 pm
by medelec35
Hello.
Sorry for the delay.
I will hopefully be working on it soon.

Re: Support for ADS1115 and ADS1118

Posted: Wed Mar 20, 2024 10:51 am
by medelec35
Hello.
Just an update.
I have got the component to work with any channel in single end mode and you can set the gain.
currently there is only a raw and voltage option.
You can read raw with channel 1 at a gain of +/- 6.144V for example and also read volts with a different channel and a different gain as they are set in the functions rather than the properties.
I'm sorting out the simulation side, then I will post the component for you to try
It currently is limited to ADS1115, as that is all I have to hand.

Re: Support for ADS1115 and ADS1118

Posted: Wed Mar 20, 2024 10:49 pm
by medelec35
Hello.
I have attached the component to try.
The Gains that are within properties are for simulation only and not hardware.
The Gains parameters are included within the SampleSglRaw and SampleSglVolts Function macros.
Simulation should be working OK

Please take in go account the component is work in progress.

To try the component.
Browse to this location using file explorer , it's hidden by default so just paste the link into your address bar.

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV10\Components
Place the attached component.
If Flowcode is already open, then you will need to reload your project for the new component to work
If you run any component updates, then the component you added will be overwritten, so it will stop working again (unless the component update has been pushed).