Skip to content

Commit 6f94a09

Browse files
committed
Define pins for Rev2 of the BLE Sense
1 parent 6f83fb8 commit 6f94a09

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ports/nordic/boards/arduino_nano_33_ble/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ a powerful Cortex-M4F. Both include an onboard 9-axis Inertial Measurement Unit
77
The Nano 33 BLE Sense adds an LPS22HB barometric pressure and temperature sensor, an HTS221 humidity sensor,
88
an APDS-9960 digital proximity, ambient light, RGB, and gesture sensor,
99
and an MP34DT05 digital microphone.
10+
The [Arduino Nano 33 BLE Sense Rev2](https://store-usa.arduino.cc/products/nano-33-ble-sense-rev2-with-headers)
11+
replaces the LSM9DS1 with a combination of the BMI270 and BMM150, the HTS221 with the HS3003, and the MP34DT05 with the MP34DT06JTR.
1012

1113
Note: the Arduino Nano 33 BLE and BLE Sense do not include a QSPI external
1214
flash. Any Python code will need to be stored on the internal flash
@@ -15,12 +17,16 @@ filesystem.
1517
I2C pins `board.SCL1` and `board.SDA1` are not exposed and are used for onboard peripherals.
1618
Pin `board.R_PULLUP` must be set to high to enable the `SCL1` and `SDA1` pullups for proper operation.
1719

18-
Pin `board.VDD_ENV` applies power to the LSM9DS1, the LPS22HB, and the HTS221, and must be high for them to be operational.
20+
Pin `board.VDD_ENV` applies power to the IMU, the pressure sensor and the humidity sensor, and must be high for them to be operational.
1921

2022
Pins `board.MIC_PWR`, `board.PDMDIN`, and `board.PDMCLK` are for the Nano 33 BLE Sense onboard microphone.
2123

2224
Pin `board.INT_APDS` is the interrupt pin from the APDS-9960.
2325

26+
Pin `board.INT_BMI_V2` is the interrupt pin from the BMI270. This pin is only present on the BLE Sense Rev2.
27+
28+
Pin `board.INT_LPS_V2` is the interrupt pin from the LPS22. This pin is only present on the BLE Sense Rev2.
29+
2430
Pins `board.RGB_LED_R`, `board.RGB_LED_G`, and `board.RGB_LED_B`
2531
are the red, green and blue LEDS in the onboard RGB LED.
2632

ports/nordic/boards/arduino_nano_33_ble/pins.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
4848
{ MP_ROM_QSTR(MP_QSTR_RGB_LED_G), MP_ROM_PTR(&pin_P0_16) },
4949
{ MP_ROM_QSTR(MP_QSTR_RGB_LED_B), MP_ROM_PTR(&pin_P0_06) },
5050

51-
// Power line to LSM9DS1, LPS22 and HTS221
51+
// Power line to IMU, pressure, temperature and humidity sensors.
5252
{ MP_ROM_QSTR(MP_QSTR_VDD_ENV), MP_ROM_PTR(&pin_P0_22) },
5353

5454
// Pullup voltage for SDA1 and SCL1
@@ -59,6 +59,8 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
5959
{ MP_ROM_QSTR(MP_QSTR_PDMDIN), MP_ROM_PTR(&pin_P0_25) },
6060

6161
{ MP_ROM_QSTR(MP_QSTR_INT_APDS), MP_ROM_PTR(&pin_P0_19) },
62+
{ MP_ROM_QSTR(MP_QSTR_INT_BMI_V2), MP_ROM_PTR(&pin_P0_11) },
63+
{ MP_ROM_QSTR(MP_QSTR_INT_LPS_V2), MP_ROM_PTR(&pin_P0_12) },
6264

6365
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_P1_03) },
6466
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_P1_10) },

0 commit comments

Comments
 (0)