Looking For Help Using a CH201 Sensor with an ESP32s3 Board

conrad.dundorf
Posts: 1
Joined: Thu Jun 01, 2023 7:52 pm

Looking For Help Using a CH201 Sensor with an ESP32s3 Board

Postby conrad.dundorf » Thu Jun 01, 2023 7:55 pm

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.

MicroController
Posts: 1726
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

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

Postby MicroController » Fri Jun 02, 2023 11:07 am

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.

sanapati
Posts: 2
Joined: Thu Mar 16, 2023 10:30 am

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

Postby sanapati » Mon Jul 17, 2023 6:59 am

I am able to port the code to esp32 partially.... get some readings... are you able interface ch201 with esp32s3..?

Valdemaras
Posts: 1
Joined: Wed Jul 19, 2023 12:54 pm

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

Postby Valdemaras » Wed Jul 19, 2023 12:58 pm

Has anybody had success building a ESP-IDF project on Eclipse with chirpmicro library? I'm currently struggling with it...

Who is online

Users browsing this forum: Bing [Bot], ESPBoards and 187 guests