- Application: This example code uses M263 I2C to drive TDK CH101 to achieve distance measurement function.
- BSP Version: M263_Series_BSP_CMSIS_V3.00.003
- Hardware: NuMaker-M263KI V1.1
The EV_MOD_CH101-03-01 module of TDK is used in this example. The module board incorporates a CH101 Ultrasonic Sensor device with an omnidirectional acoustic housing assembly, a capacitor and an FPC/FFC connector, and communicates with main control microcontroller (MCU) through I2C interface. This module can perform pitch-catch and pulse-echo range-finding at distances from 4 cm to 1.2m.
You can download the sample code at https://www.nuvoton.com/resource-downlo ... 0609180445