0

[Help] TCA9548A Read and Parse data from Omron D6T-1A-01 Sen
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

[Help] TCA9548A Read and Parse data from Omron D6T-1A-01 Sen

by g0dswar3k on Sun Apr 25, 2021 4:58 am

Hi everyone,

I'm working on reading the temp from the Omron D6T-1A-01 Sensor. I'm using the TCA9548A to read from the 2 same sensors.

I've use the code for MLX with TCA as reference.

Code: Select all | TOGGLE FULL SIZE
import adafruit_tca9548a
import adafruit_mlx90614
tca = adafruit_tca9548a.TCA9548A(i2c)

# Initialized MLX90614 Sensors on TCA at Ch2
mlx = adafruit_mlx90614.MLX90614(tca[2])

Unfortunately using the code below for D6T connected to Channel 0 and 1, I cant read/parse the data from S1 and S2 since the output is object.

Code: Select all | TOGGLE FULL SIZE
import adafruit_tca9548a
tca = adafruit_tca9548a.TCA9548A(i2c)

# Initialized MLX90614 Sensors on TCA
S1 =  tca[0]
S2 = tca[1]

Is there way so that I can read and parse the i2c block data from S1 and S2?

Thank you.

g0dswar3k
 
Posts: 1
Joined: Sun Apr 25, 2021 4:36 am

Re: [Help] TCA9548A Read and Parse data from Omron D6T-1A-01

by adafruit_support_carter on Mon Apr 26, 2021 12:56 pm

Sounds like maybe you are after manual muxing?
https://github.com/adafruit/Adafruit_Ci ... /issues/28

The current library was designed for use with the CircuitPython busio library, which is what all CircuitPython drivers are written to. For something without a CircuitPython library, you'd need something like what issue thread is discussing.

adafruit_support_carter
 
Posts: 20397
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.