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-pedometer

In 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.

docs/interfaces.md

# Rev E interface and pin cross-reference

U1 is the RF-star **RF-BM-2340B1** module containing CC2340R52E0RKPR. The pin numbers in this table refer to the module's 30 castellated pads, not the bare MCU package. I²C addresses are unshifted 7-bit values.

| Function | MCU DIO | Module pad | Peripheral endpoint |
|---|---:|---:|---|
| Main I²C SDA | 12 | 7 | BMA400 pin 2; BQ25186 pin 7; BQ27427 A2 |
| Main I²C SCL | 24 | 23 | BMA400 pin 12; BQ25186 pin 8; BQ27427 A3 |
| Accelerometer interrupt | 18 | 17 | BMA400 INT1, pin 5 |
| Display software I²C SDA | 23 | 22 | J3 pad 3 |
| Display software I²C SCL | 5 | 21 | J3 pad 4 |
| Display enable | 21 | 20 | TPS22917 pin 3; active high |
| Charger interrupt | 13 | 8 | BQ25186 pin 9; open drain, MCU internal pull-up required |
| Gauge alert/wake | 14 | 9 | BQ27427 A1; MCU must use open-drain drive |
| User button | 20 | 19 | SW1 to GND |
| Charger power-good | 11 | 6 | BQ25186 pin 3; open drain, MCU internal pull-up required |
| SWDIO | 16 | 15 | J5 pad 3; direct, no external bias |
| SWCLK | 17 | 16 | J5 pad 4; direct, no external bias |
| Reset | — | 14 | J5 pad 5; R9/C10 |
| Supply | — | 12 | V3V3 |
| Ground | — | 1, 2, 11, 13 | GND |

The module includes the 48 MHz clock and RF network. Its standard assembly omits the external 32.768 kHz crystal; configure the internal LF RC oscillator as described in section 4 of the manufacturer hardware data sheet. No external antenna connector is required.

| Device | Fitted interface | Address / straps | SPI cross-reference |
|---|---|---|---|
| BMA400 | Main I²C, initially 100 kHz | 0x14; SDO grounded, CSB high | Sensor supports 3/4-wire SPI. SDX pin 2 becomes MOSI, SCX pin 12 SCK, SDO pin 3 MISO, CSB pin 4 chip select. Requires a PCB revision. |
| BQ25186 | Main I²C | 0x6A | No SPI |
| BQ27427 | Main I²C | 0x55 | No SPI |
| Adafruit 4440 / SSD1306 | Separate software I²C | 0x3C; OLED_VCC supply | This selected module is I²C. A different SPI OLED needs a new connector and control wiring. |

R7/R8 pull the main bus to V3V3 through 10 kΩ. R11/R12 pull the display bus to OLED_VCC through 10 kΩ. Include module pull-ups when checking parallel resistance and rise time (≤1 µs at 100 kHz). Park display pins low before disabling OLED_EN. Never join the buses. There is no spare SPI header on this revision.

CHG_INT_N and CHG_PG_N are open-drain charger outputs without external pull-up resistors on this revision. Configure the matching MCU GPIO pull-ups before using either signal and keep them enabled while the charger status inputs are active.

## Solder land order

Viewed from the top, left to right in the PCB preview. These are solder lands, not purchased connectors.

| Ref | Pads | Pitch | Purpose |
|---|---|---|---|
| J1 | regulated 5 V, GND | 4 mm | Keyed, current-limited charging dock |
| J2 | protected pack positive, GND, NTC | 2.5 mm | Cell and cell-mounted 10 kΩ thermistor |
| J3 | GND, OLED_VCC, SDA, SCL | 2 mm | External OLED harness |
| J5 | VREF, GND, SWDIO, SWCLK, reset | 1.8 mm | SWD fixture; VREF is a sense output |

J2's NTC returns to GND and connects to charger TS/MR. SW2 pulls TS/MR low for the configured ship/reset gesture and suspends charging while held. The gauge BIN pin has its own 10 kΩ pulldown and does not share the charger thermistor.

Sources: [RF-star module hardware data sheet](https://www.rfstariot.com/uploadfile/downloads/RF-BM-2340B1%20RF-BM-2340B1I%20Hardware%20Datasheet%20V1.1%2020240823.pdf), [TI CC2340R5](https://www.ti.com/lit/ds/symlink/cc2340r5.pdf), [Bosch BMA400](https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bma400-ds000.pdf).