MustafaMulla29/bluetooth-connected-pedometer
It defines a PCB footprint and schematic symbol for a row of solder pads used as wire connection points, featuring customizable spacing and label annotations.
- Version
- 0.3.0
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone MustafaMulla29/bluetooth-connected-pedometer # download the package files into ./bluetooth-connected-pedometer
tsci add MustafaMulla29/bluetooth-connected-pedometer # add it to your project as @tsci/MustafaMulla29.bluetooth-connected-pedometerIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
firmware/board_config.h
#ifndef STRIDE_BOARD_CONFIG_H
#define STRIDE_BOARD_CONFIG_H
/* RF-BM-2340B1 / CC2340R5, Rev E. Values below are DIO indices, NOT package pins. */
enum {
PIN_ACC_INT = 18,
PIN_OLED_SDA = 23, /* Software open-drain I2C; separate switched power domain. */
PIN_OLED_SCL = 5,
PIN_OLED_EN = 21,
PIN_I2C_SDA = 12,
PIN_CHARGER_INT_N = 13,
PIN_GAUGE_INT_N = 14,
PIN_BUTTON_N = 20,
PIN_SWDIO = 16,
PIN_SWCLK = 17,
PIN_I2C_SCL = 24,
PIN_CHARGER_PG_N = 11,
};
enum {
I2C_BMA400 = 0x14,
I2C_BQ25186 = 0x6A,
I2C_BQ27427 = 0x55,
DISPLAY_I2C_SSD1306 = 0x3C,
BQ25186_REG_STAT0 = 0x00,
BQ25186_REG_STAT1 = 0x01,
BQ25186_REG_FLAG0 = 0x02,
BQ25186_REG_VBAT = 0x03,
BQ25186_REG_ICHG = 0x04,
BQ25186_REG_CHARGECTRL0 = 0x05,
BQ25186_REG_ICCTRL = 0x07,
BQ25186_REG_MASK_ID = 0x0C,
BQ25186_DEVICE_ID_MASK = 0x0F,
BQ25186_EXPECTED_DEVICE_ID = 0x01,
BQ25186_CHARGE_DISABLE = 0x80,
BQ25186_VBAT_4V2 = 0x46,
BQ25186_CHARGE_25MA = 0x14, /* Low range: current = code + 5 mA. */
BQ25186_CHARGE_25MA_DISABLED = 0x94,
/* 2.5 mA precharge, 10% termination, 4.5 V VINDPM, 100 C die regulation. */
BQ25186_CHARGECTRL0_25MA = 0x64,
BQ25186_TS_ENABLE = 0x80,
DISPLAY_POWER_SETTLE_MS = 10,
DISPLAY_TIMEOUT_MS = 5000,
BATTERY_DESIGN_CAPACITY_MAH = 100,
};
#endif