3cky / usb-i2c-android

Android USB host driver library for USB I2C adapters.
GNU Lesser General Public License v2.1
21 stars 8 forks source link

FT232H not recognized #1

Open MRT-RT opened 1 year ago

MRT-RT commented 1 year ago

Hello,

I have an FT323H USB-I2C Adapter CJMCU-200

https://ftdichip.com/wp-content/uploads/2020/07/DS_FT232H.pdf

from AliExpress (https://de.aliexpress.com/item/32969974184.html)

ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)

But it is not recognized by the app.

Is it the wrong adapter?

Sincerely yours, Axel Dürrbaum

3cky commented 1 year ago

Hello Axel,

According to the Aliexpress page, this adapter is based on FTDI FT200XD chip, which is an I2C slave. So it can't be used with usb-i2c-android, because it supports I2C master mode only for now.

MRT-RT commented 1 year ago

Hello Victor,

thanks for the quick answer.

Now I tried a QinHeng Electronics CH341 (ID 1a86:5523) - still no luck.

Could it be a problem, with my Xiaomi Redmi 9 and Android 12?

Background is: we have here in Germany a project called Open Bike Sensor. They are using a ESP33 with an ultrasonic sensor to record the distance of overtaking cars.

My idea is to use an Android device with an ToF/I2C sensor without building an extra electronic device (display, battery, storage, GPS - all onboard).

I'm not familiar with the programming of Android an I2C. Do you think it is hard to learn for a Python programmer? So I can build a small program on my own?

Thank you ver much for your work! Axel Dürrbaum

3cky commented 1 year ago

Now I tried a QinHeng Electronics CH341 (ID 1a86:5523) - still no luck.

It looks like your adapter is in UART mode. Ensure you have correctly configured the CH341 mode switch. Please see the photo below as a reference for the mode switch location.

image

My idea is to use an Android device with an ToF/I2C sensor without building an extra electronic device (display, battery, storage, GPS - all onboard).

That looks like an interesting idea. Definitely worth of try.

I'm not familiar with the programming of Android an I2C. Do you think it is hard to learn for a Python programmer? So I can build a small program on my own?

There are plenty of introductory resources for Android programming, including ones for developers with Python programming backgrounds. There are even Python-based mobile development frameworks like BeeWare. Just start to do small steps and I'm sure you will be ok in the Android world. :)

Good luck to you and your projects!

Victor