Force Sensor (Legacy)

../../../../_images/force_sensor.png

Overview

I2C communication sensor for measuring force magnitude.

Technical Specifications

Operating voltage: VCC 3.3V -5V

Mounting: 4 plastic building block compatible through-holes

Measurement range: 0-20N

Pin Definition

Pin

Definition

GND

Ground

VCC

Power

SCL

I2C clock

SDA

I2C data

Usage Guide

  1. When programming, make sure the DIP switch address matches the address in the program!

  2. The center button on the force sensor is the zero button. After the force sensor is fixed in the measurement position, press the zero button to calibrate the sensor before taking measurements.

Example Code

Displays the measured force on the mPython Board OLED screen.

from mpython import *

from bluebit import *

import time

ledong_delveBit_force = DelveBit(0x6F)
while True:
    oled.fill(0)
    oled.DispChar(str(str('Force: ') + str(ledong_delveBit_force.common_measure())), 0, 0, 1)
    oled.show()
    time.sleep(0.1)
../../../../_images/force_sensor_1.png