0

Using FT232H on Linux to read from SHT31-D
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Using FT232H on Linux to read from SHT31-D

by DanTrotts on Sun Aug 18, 2019 3:14 pm

Hi. I have an Adafruit FT232H board with a connected SHT31-D that I want to read the humidity and temperature from. I want to code this in C++ and not Python and I was wondering if anyone had a simple shell of a C or C++ program that would just show the basics of doing that. I have FTD2XX and libMPSSE-i2c libraries installed on Ubuntu 19.04 release.

I can see the FT232H and read its EEPROM. I know that I have to remove the ftdi_sio and usbserial drivers to be able to talk to it. Where I don't have any practical experience is talking through the FT232H to the SHT31-D using either D2XX or MPSSE with i2c or other protocols.

The SHT31-D is wired with ground, D0 to SCL and D1 tied to D2 going to SDA. I have python code that can read the temp and humidity but I just can't seem to compile a C or C++ program with the right library combinations to be able to make it work.

Any help or pointers would be appreciated.

Regards,

Dan

DanTrotts
 
Posts: 2
Joined: Sun Aug 18, 2019 3:01 pm

Re: Using FT232H on Linux to read from SHT31-D

by adafruit_support_mike on Mon Aug 19, 2019 12:40 am

I'm afraid we don't have any C code for communicating with the FT232H. Maybe someone from the community will have more information.

adafruit_support_mike
 
Posts: 59205
Joined: Thu Feb 11, 2010 2:51 pm

Re: Using FT232H on Linux to read from SHT31-D

by DanTrotts on Tue Aug 20, 2019 5:22 pm

Thanks. Does anyone have any sample C or C++ code on Intel 64bit Linux along with the libraries used to connect to and read temp + humidity from an sht31-d via an ft232h?

$50 to someone that can provide me something that works! :-)

Regards,

Dan

DanTrotts
 
Posts: 2
Joined: Sun Aug 18, 2019 3:01 pm

Please be positive and constructive with your questions and comments.