Wish TI ADS129x library...

rbghongade

Active Member
Licensed User
Longtime User
Dear Erel and other geniuses at B4X,
I request you to please wrap a library for Texas Instruments Analog Front End ADS129x.
Someone has already come up with arduino library. The attached zip contains the library.
I got it from https://github.com/ferdinandkeil/ADS129X.
Being a hardware engineer I do not know about wrapping libraries and whether it is even possible for this one.
warm regards,
 

Attachments

  • ADS129X-master.zip
    14.2 KB · Views: 260

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

have given an attempt, see attached (included rADS129X.h, cpp, xml and the ADS129X.h, cpp) ... BUT ...
got stuck on how to wrap the two methods with the same name RREG:
B4X:
// Register Read/Write Commands
Byte RREG(Byte _address);
//to read multiple consecutive registers (Datasheet, pg. 38)
void RREG(Byte _address, Byte _numRegisters, Byte *_data);

;) May be someone has a hint how to do that.

For the moment commented the void RREG out and compile went without issues. I do not have such a device, so can not test. Lots of defines to convert, so hope all covered properly. Used these few B4R lines to test compilation:
B4X:
Sub Process_Globals
   Public Serial1 As Serial
   Private ads129 As ADS129X
End Sub

Private Sub AppStart
   Serial1.Initialize(115200)
   Log("AppStart")
   ads129.Initialize(5, 10)
End Sub
 

Attachments

  • rADS129X.zip
    11 KB · Views: 295
Last edited:

positrom2

Active Member
Licensed User
Longtime User
rwblinn:
I have 3 of those devices (ADS1298RIZXGT), unsoldered yet.
If you have the possibility to get them soldered to an adapter board, I could send you one. Would be interested in the code...
Please let me know.
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Appreciate your offer @positrom2, very kind ... but unfortunate can not commit.

I took the wrapping of this library as a further opportunity to learn how to wrap, which I did not pass :((see post #2). Hope that someone can help to resolve.

In addition, I do not have knowledge about the device and my soldering skills (as a Chemical Engineer) are not at a level (yet) to solder boards (in case needed, I do send them to a specialist and pay for it).
 
Top