denkitronik / ADS1118

Arduino Library for Texas Instruments ADS1118 - 16-Bit Analog-to-Digital Converter with internal Reference and Temperature Sensor
MIT License
20 stars 14 forks source link

Function arguments #14

Open Fluxanode opened 2 years ago

Fluxanode commented 2 years ago

What are the function arguments to the begin() function? without dissecting the code i want to use single ended mode not the differential mode used in the examples. In fact a completed list for all functions would be helpful.

Fluxanode commented 2 years ago

Can I get an answer? DIFFERENTIAL AIN0-AIN1 to SINGLE AIN0-AIN1 maybe?

Fluxanode commented 2 years ago

HELP!!!

alvaro-salazar commented 2 years ago

Hi @Fluxanode, unfortunately begin method has not any argument to change the input. But there's a specific method to do it:

(This is part of the example file: examples/ads1118example/ads1118example.ino)

/ Changing the input selected. Available values: Diferential inputs: DIFF_0_1, DIFF_0_3, DIFF_1_3, DIFF_2_3. Single ended input: AIN_0, AIN_1, AIN_2, AIN_3/ ads1118.setInputSelected(ads1118.AIN_0); //Using the setter method to change the input selected

A complete documentation is in the folder docs, in html format and in latex format (it is used to generate a pdf file). In the next version I will add the documentation in pdf and in the README.

I hope this answer to your question.

Fluxanode commented 2 years ago

Thanks!

Fluxanode commented 2 years ago

Thanks. Also I’m using the teensy 4.1 and I was wondering about the answer to issue Support for Teensy Microcontrollers issue #12

Has this been implemented?

Chuck Weaver

SideLobe Inc.

(281) 210-7517

From: Alvaro Salazar @.> Sent: Thursday, April 28, 2022 6:52 PM To: denkitronik/ADS1118 @.> Cc: Fluxanode @.>; Mention @.> Subject: Re: [denkitronik/ADS1118] Function arguments (Issue #14)

Hi @Fluxanode https://github.com/Fluxanode , unfortunately begin method has not any argument to change the input. But there's a specific method to do it:

(This is part of the example file: examples/ads1118example/ads1118example.ino)

/ Changing the input selected. Available values: Diferential inputs: DIFF_0_1, DIFF_0_3, DIFF_1_3, DIFF_2_3. Single ended input: AIN_0, AIN_1, AIN_2, AIN_3/ ads1118.setInputSelected(ads1118.AIN_0); //Using the setter method to change the input selected

A complete documentation is in the folder docs, in html format and in latex format (it is used to generate a pdf file). In the next version I will add the documentation in pdf and in the README.

I hope this answer to your question.

— Reply to this email directly, view it on GitHub https://github.com/denkitronik/ADS1118/issues/14#issuecomment-1112756086 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQIVSA6IALW2C3YWSFZNZ7LVHMQBNANCNFSM5K4WESMQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AQIVSA7FGMOWCQUNYURAUPDVHMQBNA5CNFSM5K4WESM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIJJU65Q.gif Message ID: @. @.> >

alvaro-salazar commented 2 years ago

Hi Chuck, I haven't implemented the issue #12 but, I'm going to try to do it this weekend. Could you test the implementation in your Teensy please? I am not able to check it because I dont have a Teensy, and it would take a week to get one. I will put the commit this weekend, or if you want I can send you the files.

Alvaro Salazar Denkitronik SAS

Fluxanode commented 2 years ago

Maybe next week, I'm not near my office for the next few days. But you can send me your files and when I can I'll set up a new test.On Apr 29, 2022 11:35 PM, Alvaro Salazar @.***> wrote: Hi Chuck, I haven't implemented the issue #12 but, I'm going to try to do it this weekend. Could you test the implementation in your Teensy please? I am not able to check it because I dont have a Teensy, and it would take a week to get one. I will put the commit this weekend, or if you want I can send you the files. Alvaro Salazar Denkitronik SAS

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

Fluxanode commented 1 year ago

Alvaro Salazar, I'm back on this project again, Can you be more specific about where to make the changes you refer too? Also did you make the changes referred to in ssue 12 https://github.com/denkitronik/ADS1118/issues/12? I can test it for you and or where in he code do the changes need to be made? Maybe you can include an example for a single input from AIN_0, AIN_1, AIN_2, AIN_3?

Fluxanode commented 1 year ago

Tested on Teensy 4.1 successfully