Support for ADS1115 and ADS1118

For general Flowcode discussion that does not belong in the other sections.
Post Reply
OderlandoRSilva
Posts: 8
http://meble-kuchenne.info.pl
Joined: Mon Oct 30, 2023 1:17 pm
Has thanked: 2 times
Been thanked: 3 times

Support for ADS1115 and ADS1118

Post 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?

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: Support for ADS1115 and ADS1118

Post by medelec35 »

Hello.
I have just ordered one.
Hopefully, it will be added to the components this week, depending on the delivery day.
Martin

OderlandoRSilva
Posts: 8
Joined: Mon Oct 30, 2023 1:17 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Support for ADS1115 and ADS1118

Post by OderlandoRSilva »

Hello. Is there anything new? I'm curious to know if it worked haha

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: Support for ADS1115 and ADS1118

Post by medelec35 »

Hello.
Sorry for the delay.
I will hopefully be working on it soon.
Martin

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: Support for ADS1115 and ADS1118

Post 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.
Martin

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: Support for ADS1115 and ADS1118

Post 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).
Attachments
ADS111x.fcpx
(8.07 KiB) Downloaded 6 times
Martin

Post Reply