The store will not work correctly in the case when cookies are disabled.
Best Modules will be closed from October 10 to October 12 in observance of Double Ten Day. Please be informed that any orders placed after 17:00 PM October 9 (Taiwan time, UTC+8) will be processed on October 13.
We use cookies for optimal website use.We recommend you to allow cookies for a better user experience. Please read our privacy policy. Learn more.
I/O mode: Output pin is normal high, active low (when an object is detected), configurable
UART mode: 9600bps Send any command to module within 0.5s after power-on to enter the UART mode Minimum continuous reading time = 10ms
Factory-calibrated
Arduino Demo Code
The demo code reads the proximity sensing trigger threshold value and displays on the serial monitor. Since the BM32S2021-1 can only enter UART mode at the condition of receiving a command after powered up, please upload the code to the board first and then connect the 4 wires of the module to the Arduino board at the same time.
Wire connection:
Module pin 1 (VDD) connects to Arduino UNO pin 5V
Module pin 2 (GND) connects to Arduino UNO pin GND
Module pin 3 (TX) connects to Arduino UNO pin 2
Module pin 4 (RX) connects to Arduino UNO pin 3
The result shown on the serial monitor is
Product Information
Body size: 17.5 x 10.1 x 7.1 (mm)
Weight: 0.8 g
Packing List: BM32S2021-1 Proximity Sensing Module x 1