力感应器(旧) =================== .. figure:: /_static/products/ledong-module/static/图片/力感应器.png :width: 55% :align: center 概述 -------------------- 用于检测量力的大小的I2C通讯类的传感器。 技术参数 ------------------- 工作电压: VCC 3.3V -5V 固定安装:4个兼容塑料积木通孔 测量范围:0-20N 引脚 定义 ------------------- ======= ======== 引脚 定义 ======= ======== GND 地 VCC 电源 SCL I2C时钟 SDA I2C数据 ======= ======== 使用教程 ------------------- 1、在程序编程中需要注意拨动开关地址和程序中的地址一致! 2、力传感器中间按钮为置零按钮,当力传感器固定在被测状态后,即测量数据前需按下置零按键对传感器进行校准。 示例程序 ------------------- **用掌控板OLED屏显示力传感器的测量的受力大小。** .. code-block:: python from mpython import * from bluebit import * import time ledong_delveBit_force = DelveBit(0x6F) while True: oled.fill(0) oled.DispChar(str(str('当前受力大小:') + str(ledong_delveBit_force.common_measure())), 0, 0, 1) oled.show() time.sleep(0.1) .. figure:: /_static/products/ledong-module/static/examples/力1.png :width: 100% :align: center