Page 1 of 1

Looking For Help Using a CH201 Sensor with an ESP32s3 Board

Posted: Thu Jun 01, 2023 7:55 pm
by conrad.dundorf
Hello folks,
I am looking to use TDK's CH201 Ultrasonic ToF sensor with an ESP32s3 board, but have hit a roadblock. Has anyone successfully migrated the code provided by the manufacturer to the arduino environment? Does anyone have any suggestions on where to start with that process?

I found a github repo of the C design for the SAM MCU is at: GitHub - Rogerszzz/DK-CH201

From what I can tell, the task is limited to updating the following BSP files in the project:
DK-CH201-main\source\board\HAL\src\chbsp_chirp_samg55.c
DK-CH201-main\source\board\HAL\src\bsp_misc_samg55.c
DK-CH201-main\source\board\HAL\src\chbsp_chirp_samg55.c
DK-CH201-main\source\board\HAL\src\time_hal.c

Does anyone have experience with converting an AtmelStudio project for SAM into an Arduino INO library?

Thank you, any support is greatly appreciated.

Re: Looking For Help Using a CH201 Sensor with an ESP32s3 Board

Posted: Fri Jun 02, 2023 11:07 am
by MicroController
Looking at the official example (https://invensense.tdk.com/products/ch2 ... umentation), it seems that you may aswell adapt the driver code from there by implementing (at least) the "REQUIRED" functions from chirp_bsp.h, without having to clean up any unwanted platform specifics or dependencies from the SAM code.

Re: Looking For Help Using a CH201 Sensor with an ESP32s3 Board

Posted: Mon Jul 17, 2023 6:59 am
by sanapati
I am able to port the code to esp32 partially.... get some readings... are you able interface ch201 with esp32s3..?

Re: Looking For Help Using a CH201 Sensor with an ESP32s3 Board

Posted: Wed Jul 19, 2023 12:58 pm
by Valdemaras
Has anybody had success building a ESP-IDF project on Eclipse with chirpmicro library? I'm currently struggling with it...