Support for ADS1115 and ADS1118
-
- 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
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?
-
- Posts: 8
- Joined: Mon Oct 30, 2023 1:17 pm
- Has thanked: 2 times
- Been thanked: 3 times
Re: Support for ADS1115 and ADS1118
Hello. Is there anything new? I'm curious to know if it worked haha
-
- Matrix Staff
- Posts: 1464
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 514 times
- Been thanked: 474 times
Re: Support for ADS1115 and ADS1118
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.
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
-
- Matrix Staff
- Posts: 1464
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 514 times
- Been thanked: 474 times
Re: Support for ADS1115 and ADS1118
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.
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).
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
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 13 times
Martin