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.
Looking For Help Using a CH201 Sensor with an ESP32s3 Board
-
- Posts: 1
- Joined: Thu Jun 01, 2023 7:52 pm
-
- 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
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
I am able to port the code to esp32 partially.... get some readings... are you able interface ch201 with esp32s3..?
-
- Posts: 1
- Joined: Wed Jul 19, 2023 12:54 pm
Re: Looking For Help Using a CH201 Sensor with an ESP32s3 Board
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: kaxx1975 and 193 guests