TI ADS1231/ADS1232/ADS1234

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
poesel
Posts: 18
Joined: Sun Oct 20, 2019 4:58 pm

TI ADS1231/ADS1232/ADS1234

Post by poesel » Mon Apr 13, 2020 4:44 pm

These are ADC for bridges, mostly used for scales.

Has anyone successfully communicated with one of these?

Apart from this:
https://github.com/IJonez/DMS/tree/test
I came up empty handed wrt to python.

Thanks

User avatar
jimmo
Posts: 1769
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: TI ADS1231/ADS1232/ADS1234

Post by jimmo » Tue Apr 14, 2020 5:43 am

poesel wrote:
Mon Apr 13, 2020 4:44 pm
Has anyone successfully communicated with one of these?
No, but I took a quick look at the datasheet, they look like they should be fairly straightforward. Wait for the DRDY line to toggle (put the pin in input mode and wait for an edge interrupt), then drive the clock signal 24 times reading in one bit at a time on the DOUT line. pretty much everything else looks like it's configured by circuitry ratehr than anything complicated like setting registers etc.
poesel wrote:
Mon Apr 13, 2020 4:44 pm
Apart from this:
https://github.com/IJonez/DMS/tree/test
I came up empty handed wrt to python.
Let's just say that...this isn't a very good reference for how to write Python or low-level code. You should use shifting and anding to accumulate the data bits...not appending them to a string!?

poesel
Posts: 18
Joined: Sun Oct 20, 2019 4:58 pm

Re: TI ADS1231/ADS1232/ADS1234

Post by poesel » Tue Apr 14, 2020 4:26 pm

Thanks - I'll look into it.

amin
Posts: 1
Joined: Tue Jun 23, 2020 3:48 am

Re: TI ADS1231/ADS1232/ADS1234

Post by amin » Tue Jun 23, 2020 4:08 am

A few years back, I was using ADS123x in a RPi project, I haven't finished the code apparently (e.g. internal temperature module...) :
https://github.com/nahaangard/ADC_Pytho ... er/ADS1232
now, I'll be getting back to this ADC, this time on ESP32 and uPy, I'll be revisiting the datasheet and code soon...that's why I was browsing the forum and came up with this post...thought might be worth to have a look.
Cheers.

Post Reply