Sensor Physics & Mathematics Lab
Arduino Nano 33 BLE Sense Rev2 β€’ Synchronized Transduction Models
🏠 Telemetry HUD
Hardware Overview

Physical Transduction & Telemetry Synchronization

This publication-grade interactive environment bridges physical silicon micro-structures with empirical telemetry. The page is synchronized live with your Arduino Nano 33 BLE Sense board over Server-Sent Events (SSE). As you physically move, tap, or tilt the hardware on your desk, the mathematical equations and MEMS silicon models evaluate and animate in real time.

Hardware Telemetry Stream
CONNECTED (10 Hz)
Lossless SSE via /events
Robot FSM State
SLEEPING
State #7
Total Packets Received
0
Uptime: 0.0s
$$\text{Internal I2C Bus: } \text{Wire1} \; (\text{SDA: P0.14}, \; \text{SCL: P0.15}) \quad \bullet \quad \text{PDM Bus: } \text{CLK: P0.26}, \; \text{DIN: P0.25}$$
Master SoC: Nordic nRF52840 (64 MHz ARM Cortex-M4F with hardware FPU). Switched power rail: PIN_ENABLE_SENSORS_3V3 (P0.22).
Hardware Digital Twin β€’ Schematics & Silicon Architecture

Arduino Nano 33 BLE Sense Rev2 β€” Pinout & Electrical Schema

Explore every physical pin, silicon port multiplexer, onboard peripheral bus, and power rail of the Nordic nRF52840 SoC (ABX00069 / ABX00070). Click on any header pin or onboard IC chip in the vector graphic below or choose a subsystem filter to inspect its electrical characteristics, 3.3V logic constraints, and physical wiring in the Shram table robot.

πŸ”˜ All 30 Pins 30
πŸ€– Shram Robot Wiring 6
🌊 PWM Capable 5
πŸ“Š 12-Bit SAADC 8
πŸ”— External I2C (Wire) 2
⚑ SPI Bus 4
πŸ’¬ UART Serial1 2
⚑ Power & GND 7
πŸ“ Click any pin or IC to inspect silicon details Selected: D4 (P1.15)
ARDUINO NANO 33 BLE SENSE Rev2 ABX00069 / ABX00070 β€’ NINA-B306 (nRF52840) USB 5V u-blox NINA-B306 Nordic nRF52840 SoC 64 MHz Arm Cortex-M4F + FPU 1 MB Flash β€’ 256 kB RAM β€’ BLE 5.0 PB1 RESET DL1/D13 PWR BMI270 U2 β€’ 0x68 6-Axis IMU BMM150 U7 β€’ 0x10 Magnetometer APDS-9960 U5 β€’ 0x39 β€’ RGBA HS3003 U8 β€’ 0x44 Humidity/Temp LPS22HB U9 β€’ 0x5C β€’ Baro MP34DT06J U3 β€’ PDM MIC MP2322 U1 β€’ 3.3V DCDC L1 2.2Β΅H ATECC608A U4 β€’ 0x60 β€’ Crypto RGB STATUS D0 / TX Serial1 TX #1 D1 / RX Serial1 RX #2 RESETN Active-Low Reset #3 πŸ€– GND 0V Reference #4 πŸ€– D2 TM1637 Display CLK #5 πŸ€– D3 TM1637 DIO / PWM #6 πŸ€– D4 PIR Edge Trigger (PIR_PIN) #7 D5 Hardware PWM Output #8 πŸ€– D6 Servo Steering (SERVO_PIN) #9 D7 Via Jumper SJ2 #10 D8 Via Jumper SJ4 #11 D9 Hardware PWM Output #12 D10 SPI Slave Select (SS) #13 D11 SPI Master Out Slave In #14 D12 SPI Master In Slave Out #15 πŸ€– D13 / SCK SPI Clock & Orange LED DL1 #1 πŸ€– +3V3 +3.3V DC Rail (Max 800mA) #2 AREF SAADC Voltage Reference #3 A0 12-Bit SAADC Channel 2 #4 A1 12-Bit SAADC Channel 3 #5 A2 12-Bit SAADC Channel 6 #6 A3 12-Bit SAADC Channel 5 #7 A4 / SDA Wire SDA (Pull-up 4.7k) #8 A5 / SCL Wire SCL (Pull-up 4.7k) #9 A6 12-Bit SAADC Channel 4 #10 A7 12-Bit SAADC Channel 1 #11 VUSB 5V from USB (SJ1 Jumper) #12 RESETN Active-Low Reset #13 πŸ€– GND 0V Reference #14 πŸ€– VIN Wide DC Input (5V–21V) #15

⚑ Power Regulation & Dedicated Bus Architecture

Physical power paths, sensor rail isolation, and dedicated hardware buses
Rev2 Hardware Upgrade
⚑ Primary Step-Down Converter
MPS MP2322GQH β€’ Synchronous Buck DC-DC
Accepts VIN (5V–21V DC) or Micro-USB (5V) via Schottky diode. Steps down to a clean +3.3V rail supporting up to 800 mA continuous output at >90% efficiency. Replaces the older MPM3610 with lower quiescent sleep draw.
πŸ”Œ Switched Sensor Rail (VDD_ENV)
Gated by P0.22 (PIN_ENABLE_SENSORS_3V3)
Power to the 5 onboard environmental and IMU sensors is switched via a dedicated P-channel load switch controlled by nRF52840 GPIO P0.22. Pulling this pin LOW cuts power entirely, dropping standby sensor current to sub-microamps.
πŸ”’ Isolated Wire1 Bus & Switched Pull-ups
Wire1 (P0.14 SDA / P0.15 SCL) β€’ Pull-up Gate: P1.00
Unlike Rev1, all 6 onboard I2C sensors are physically isolated on dedicated internal bus Wire1. The internal 4.7 kΞ© pull-ups are gated by P1.00 (PIN_ENABLE_I2C_PULLUP). The user header pins A4/A5 (Wire) remain 100% free with zero address collisions!
πŸŽ™οΈ Dedicated PDM Audio DMA & Solder Jumpers
CLK: P0.26 β€’ DIN: P0.25 β€’ PWR: P0.17 β€’ SJ1 Jumper
The ST MP34DT06J microphone streams 1.280 MHz PDM pulses directly into MCU RAM via EasyDMA. Solder jumper SJ1 protects USB hosts by leaving header pin VUSB disconnected by default unless intentionally bridged.

πŸ“‹ 30-Pin Silicon Multiplexing Matrix

Showing all 30 header pins on JP2 and JP3
Header Pin # Arduino Pin nRF52840 Port.Pin Category Primary Function Multiplexed Peripherals Voltage & Drive Spec Shram Robot Wiring
Bosch BMI270 β€’ U2 β€’ 0x68

1. 3-Axis Accelerometer (Differential Capacitive Comb MEMS)

The accelerometer utilizes a suspended micro-machined polysilicon proof mass ($m$) anchored via flexure beams with spring constant $k$. Inertia deflects the mass relative to the substrate:

$$m \ddot{x}(t) + c \dot{x}(t) + k x(t) = -m a_{\text{ext}}(t) \implies \Delta x = -\frac{a_{\text{ext}}}{\omega_0^2} = -\frac{m}{k} a_{\text{ext}}$$
Quasi-static displacement $\Delta x$ is proportional to mass $m$ and inversely proportional to beam stiffness $k$.
πŸ“‘ Live Accelerometer Telemetry
a_x: +0.00g a_y: +0.00g a_z: +1.00g |A|: 1.00g Stability: STABLE
Live Kinematic Euler Angle & Deflection Evaluation
$$\vec{a} = \begin{bmatrix} +0.00 \\ +0.00 \\ +1.00 \end{bmatrix} g, \quad |\vec{a}| = 1.00\,g, \quad \phi = 0.0^\circ, \quad \theta = 0.0^\circ$$
Live Silicon Comb-Finger Displacement & 3D Arduino Orientation
Streaming Live Hardware Data
+0.00g
+0.00g
+1.00g
$$C_1 = \epsilon_0 \epsilon_r \frac{A}{d_0 - \Delta x}, \qquad C_2 = \epsilon_0 \epsilon_r \frac{A}{d_0 + \Delta x} \implies \Delta C \approx 2 C_0 \frac{\Delta x}{d_0} = -2 C_0 \frac{m}{k d_0} a_{\text{ext}}$$
Differential capacitance change converts into microvolts via switched-capacitor charge integration.
πŸ”¬ ASIC Architecture & Silicon Registers (Bosch BMI270)

Silicon Package: 16-pin LGA ($2.5 \times 3.0 \times 0.83\text{ mm}$). AFE: High-impedance charge amplifier $\to$ $\Sigma\Delta$ ADC $\to$ DSP filter pipeline.

AddressRegister NameConfigured ValueFunction & Operating Mode
0x00CHIP_ID0x24Fixed silicon silicon identifier verification
0x04STATUSdrdy_acc, drdy_gyrData ready interrupt status register
0x0C–0x11ACC_DATA_X/Y/Z16-bit 2's compLinear acceleration: Scale $8192\,\text{LSB}/g$ at $\pm 4g$ range
0x40ACC_CONF0xA8 (100 Hz, OSR2)Configures ODR (100 Hz) and 2x oversampled moving average filter
0x41ACC_RANGE0x01 (Β±4g)Dynamic full-scale selection ($8192\,\text{LSB}/g$)
0x7DPWR_CTRL0x0E (acc_en, gyr_en)Powers up internal analog charge pump and front-end amplifiers
βš›οΈ
First Principles: Down to the Last Atom
Demystifying the accelerometer β€” from silicon crystal lattices & Coulomb forces to digital bits
πŸ”¬ 1. The Atomic Particle Stage (What's in the Box?)
Inside the chip is a microscopic mechanical structure sculpted out of pure silicon (Si, atomic number 14). Each silicon atom has 14 protons, 14 neutrons, and 14 electrons, locked into a rigid tetrahedral crystal lattice spaced just 2.35 Γ…ngstrΓΆms (0.235 nm) apart. Carved into this crystal is a suspended slab of roughly 1 quadrillion ($10^{15}$) silicon atoms called the proof mass. It is suspended in an ultra-clean vacuum cavity by four razor-thin silicon spring arms, hovering with microscopic interdigitated "comb fingers" interleaved between fixed fingers on the substrate.
⚑ 2. The Chain Reaction (From Your Hand to the Atoms)
When you push or tilt the Arduino board on your desk, your hand applies a force to the board casing $\to$ which pushes the PCB $\to$ which pushes the outer frame of the silicon chip. However, by Newton's First Law of Motion (Inertia), the 1 quadrillion silicon atoms in the suspended proof mass resist changing their state of motion. They "want" to stay where they were! As the outer frame moves forward, the proof mass lags behind. This tiny lag bends the silicon spring beams by mere nanometers ($10^{-9}\text{ m}$)β€”roughly the width of a single DNA molecule.
πŸ“‘ 3. The Digital Bridge (Coulomb's Law to 16-Bit Numbers)
Each comb finger is coated in conductive metal holding mobile conduction electrons. According to Coulomb's Law, the electrostatic attraction between charges scales inversely with the square of distance ($F \propto 1/d^2$). When the proof mass shifts by 1 nanometer, the gap on one side shrinks from 1.500 Β΅m to 1.499 Β΅m, while the opposing gap widens to 1.501 Β΅m. The narrower gap allows more electrons to crowd onto the surface at the same voltageβ€”this is a change in capacitance ($\Delta C$) of just a few tenths of a femtofarad ($10^{-15}\text{ F}$). An integrated charge amplifier converts this electron imbalance into millivolts, a $\Sigma\Delta$ ADC turns it into 16-bit binary words, and your robot reads its live acceleration!
πŸ’‘ Jargon Decoded in Plain English
Proof Mass
A tiny chunk of silicon that acts like a passenger thrown forward when a bus hits the brakes.
Flexure Beams
Silicon springs carved so thin that brittle crystal silicon actually bends and snaps back like a diving board.
Differential Comb Fingers
Interlocking silicon teeth that measure distance using the electric field between them.
Capacitance
An electron parking lot. The closer two metal plates get, the more electrons can park on them without repelling each other away.
Bosch BMI270 β€’ U2 β€’ 0x68

2. 3-Axis Gyroscope (Vibratory Coriolis Rate Sensor)

Angular velocity ($\vec{\Omega}$) is measured via the Coriolis pseudo-force coupling energy from the primary drive oscillation into the secondary sense frame:

$$\vec{F}_C = -2m (\vec{\Omega} \times \vec{v}) = 2 m \Omega_z X_0 \omega_d \cos(\omega_d t)$$
The periodic Coriolis force excites the secondary sense mode at drive frequency $\omega_d$.
πŸ“‘ Live Gyroscope Telemetry
g_x: +0.0 Β°/s g_y: +0.0 Β°/s g_z: +0.0 Β°/s
Live Coriolis Force & Sense Amplitude Evaluation
$$\vec{\Omega} = \begin{bmatrix} +0.0 \\ +0.0 \\ +0.0 \end{bmatrix} ^\circ/\text{s}, \quad F_{\text{Coriolis}} = 0.00\,\text{pN}, \quad y_{\text{sense}} = 0.000\,\text{pm}$$
Dual-Mode Vibratory Coriolis Gimbal & Synchronous Demodulator
Drive Freq: 25 kHz β€’ Sense Q: 1200
+0.0 Β°/s
πŸ”¬ ASIC Architecture & Gyroscope Registers (BMI270)

Component Retrimming (CRT): Laser-trimmed NVM coefficients reduce sensitivity error to <0.4%. Synchronous Demodulator: Multiplies Coriolis AC signal with carrier clock $\sin(\omega_d t)$.

AddressRegister NameConfigured ValueFunction & Operating Mode
0x12–0x17GYR_DATA_X/Y/Z16-bit 2's compAngular velocity: Scale $16.384\,\text{LSB}/(^\circ/\text{s})$ at $\pm 2000^\circ/\text{s}$
0x42GYR_CONF0xA9 (100 Hz, OSR2)Configures ODR (100 Hz) and high-performance noise filtering
0x43GYR_RANGE0x00 (Β±2000Β°/s)Full-scale range setting ($16.384\,\text{LSB}/(^\circ/\text{s})$)
0x18–0x1ASENSORTIME24-bit counterHardware Sensortime clock ($39.0625\,\mu\text{s}$ per LSB)
βš›οΈ
First Principles: Down to the Last Atom
Demystifying the gyroscope β€” from vibrating silicon crystals & Coriolis momentum to rotation rate
πŸ”¬ 1. The Atomic Particle Stage (What's in the Box?)
Unlike the accelerometer which sits passively waiting for a push, the gyroscope is in perpetual high-speed atomic motion. Inside, a double-gimbal polysilicon structure is driven into continuous mechanical oscillation by electrostatic comb drives at 25,000 cycles per second ($25\text{ kHz}$). Trillions of silicon atoms vibrate back and forth along the $X$-axis with a peak velocity of roughly 0.5 meters per second.
⚑ 2. The Chain Reaction (Coriolis at the Particle Scale)
Every moving atom carries linear momentum ($\vec{p} = m \vec{v}$). When you rotate the Arduino board with your hand (angular velocity $\vec{\Omega}$), the frame of the chip rotates beneath these vibrating atoms. To an observer inside the rotating chip, the atoms appear to be forced sideways by an apparent "pseudo-force": the Coriolis force ($\vec{F}_C = -2m \vec{\Omega} \times \vec{v}$). This force transfers a fraction of the primary vibration energy into an orthogonal, secondary "sense" frame, causing it to wobble along the $Y$-axis at the exact same 25 kHz drive frequency.
πŸ“‘ 3. The Digital Bridge (Locking onto Femtometer Wobbles)
This Coriolis wobble is unimaginably smallβ€”displacements are on the order of femtometers ($10^{-15}\text{ m}$), smaller than the radius of an atomic nucleus! Because random vibrations and table bumps could drown this signal out, the ASIC uses a phase-sensitive synchronous demodulator: it multiplies the incoming sense signal by the exact 25 kHz reference clock driving the primary resonator. This mathematically filters out all external mechanical vibrations, leaving a pristine DC voltage that directly reflects your board's rotation rate in degrees per second ($^\circ/\text{s}$).
πŸ’‘ Jargon Decoded in Plain English
Coriolis Force
The sideways push you feel trying to walk in a straight line on a spinning playground merry-go-round.
Drive Mode
The primary mechanical oscillation that keeps the silicon atoms vibrating back and forth like a tuning fork.
Sense Mode
The sideways flutter induced strictly when the vibrating chip is rotated through space.
Synchronous Demodulator
A mathematical lock-in filter that only listens to the exact musical pitch of the vibrating atoms, ignoring all other noise.
Bosch BMM150 β€’ U7 β€’ 0x10

3. 3-Axis Geomagnetic Magnetometer (FlipCore Technology)

Bosch FlipCore technology utilizes high-permeability soft-magnetic flux guides to focus the geomagnetic field onto internal Hall elements. Thermal carrier mobility drift is compensated using factory polynomial trim registers and live Hall resistance ($R_{\text{hall}}$).

πŸ“‘ Live Magnetometer Telemetry
m_x: +0.0 Β΅T m_y: +0.0 Β΅T m_z: +0.0 Β΅T Heading: 0.0Β°
Live 3D Geomagnetic Vector & Heading Evaluation
$$\vec{B} = \begin{bmatrix} +0.0 \\ +0.0 \\ +0.0 \end{bmatrix} \mu\text{T}, \quad |\vec{B}| = 0.0\,\mu\text{T}, \quad \text{Azimuth } \psi = 0.0^\circ$$
Interactive Magnetic Dipole Field & Tilt-Compensated Compass
Click and drag inside the field to move the magnet
+25.0 Β΅T
$$t = \frac{\text{dig\_xyz1} \cdot 16384}{R_{\text{hall}}} - 16384, \qquad \Delta B_x = \text{dig\_xy2}\left(\frac{t^2}{2^{28}}\right) + \frac{t \cdot \text{dig\_xy1}}{2^{14}}$$ $$B_x = \frac{\frac{x_{\text{raw}} (\Delta B_x + 256)(\text{dig\_x2} + 160)}{8192} + 8 \cdot \text{dig\_x1}}{16} \quad [\mu\text{T}]$$
Exact factory polynomial calibration implemented in bmm150.c driver to eliminate silicon piezoresistive and thermal Hall drift.
πŸ”¬ ASIC Architecture & Silicon Registers (Bosch BMM150)

FlipCore Principle: Periodic excitation saturates the core; asymmetric flux generates second harmonics proportional to external field.

AddressRegister NameConfigured ValueFunction & Operating Mode
0x40CHIP_ID0x32BMM150 chip verification identifier
0x42–0x47DATA_X/Y/Z13-bit / 15-bitRaw magnetic field readouts requiring Hall trim polynomial
0x48–0x49RHALL14-bitHall spiral resistor temperature measurement
0x4BPOWER_CONTROL0x01Enables internal oscillator and bias circuits
0x51REP_XY0x04 (9 repetitions)XY-axis regular oversampling ratio
0x52REP_Z0x0E (15 repetitions)Z-axis regular oversampling ratio
0x5D–0x71TRIM_REGISTERSFactory OTP11 calibration constants (dig_x1..z4, dig_xyz1)
βš›οΈ
First Principles: Down to the Last Atom
Demystifying the magnetometer β€” from quantum electron spin & magnetic domains to Earth's heading
πŸ”¬ 1. The Atomic Particle Stage (What's in the Box?)
Magnetism at the fundamental level is born from the quantum spin and orbital motion of electrons. Every electron acts as an infinitesimal magnetic dipole with a magnetic moment of 1 Bohr Magneton ($\mu_B = 9.274 \times 10^{-24}\text{ J/T}$). In most elements, electrons pair up with opposite spins and cancel out. However, in ferromagnetic alloys like the nickel-iron (permalloy) used in Bosch FlipCore sensors, quantum mechanical exchange coupling forces unpaired electron spins to align in parallel, creating permanent magnetic domains.
⚑ 2. The Chain Reaction (FlipCore Magnetic Saturation)
Instead of using a mechanical compass needle that could break, the BMM150 uses an electronic FlipCore: an excitation coil drives high-frequency alternating current pulses through a soft-magnetic core, forcing all electron spins to snap forward until the core hits magnetic saturation, then reversing the current to snap them backward. When Earth's magnetic field ($25\text{–}65\,\mu\text{T}$) is present, it acts like an external magnetic breeze: it helps the electrons flip into saturation slightly faster in one direction, while opposing and delaying them in reverse.
πŸ“‘ 3. The Digital Bridge (Faraday's Induction to Heading Angle)
By Faraday's Law of Induction ($V = -N \frac{d\Phi}{dt}$), the sudden flipping of millions of electron spins induces sharp voltage spikes in nearby pick-up loops. Because Earth's field makes the forward and reverse flips asymmetric, this asymmetry generates a distinct second-harmonic ($2\omega$) voltage spike. The ASIC synchronously detects the amplitude of this $2\omega$ spike, applies factory polynomial calibration to remove thermal silicon Hall drift ($R_{\text{hall}}$), and computes the exact microtesla magnetic vector $\vec{B} = (B_x, B_y, B_z)$!
πŸ’‘ Jargon Decoded in Plain English
Electron Spin
The intrinsic quantum angular momentum of an electron that turns every electron into a tiny subatomic bar magnet.
Magnetic Saturation
When every electron spin in a ferromagnetic core is aligned in the same direction; it cannot absorb any more magnetic flux.
Flux Guides
High-permeability metal strips that act like magnetic lenses, bending and focusing Earth's invisible field lines onto the silicon detector.
Hall Resistance (RHALL)
An on-chip spiral resistor that measures real-time silicon temperature to mathematically cancel out thermal drift.
Renesas HS3003 β€’ U8 β€’ 0x44

4. Relative Humidity & Bandgap Temperature

Water molecules ($H_2O$) possess an intense permanent electric dipole ($p \approx 1.85\ \text{Debye}$) with $\epsilon_{\text{water}} \approx 80.1$, increasing effective capacitance linearly as humidity diffuses into the polymer matrix.

πŸ“‘ Live Environmental Telemetry
Temperature: +25.0 Β°C Humidity: 45.0 % Vapor Pressure: 31.7 hPa
Live Psychrometric & Vapor Pressure Evaluation
$$RH = 45.0\%, \quad T = 25.0^\circ\text{C}, \quad p^*(T) = 31.7\,\text{hPa}, \quad e_a = 14.3\,\text{hPa}, \quad T_{\text{dew}} = 12.3^\circ\text{C}$$
Hygroscopic Polymer Micro-Matrix & Dipole Alignment Simulation
Permittivity: Ξ΅_dry (3.0) β†’ Ξ΅_water (80.1)
45.0%
25.0 Β°C
$$RH [\%] = \frac{\text{raw}_{14}}{16383} \times 100\%, \qquad T [^\circ\text{C}] = \left(\frac{\text{raw}_{14}}{16383} \times 165\right) - 40$$ $$p^*(T) = 6.112 \, \exp\left( \frac{17.67 \cdot T}{T + 243.5} \right) \, [\text{hPa}], \qquad T_{\text{dew}} = \frac{243.5 \ln(RH/100) + \frac{17.67 T}{243.5 + T}}{17.67 - \ln(RH/100) - \frac{17.67 T}{243.5 + T}}$$
Magnus-Tetens psychrometric equation and Renesas 14-bit ADC linear transfer curves.
πŸ”¬ ASIC Architecture & Protocol (Renesas HS3003)

I2C Protocol: Address 0x44. No internal register sub-addresses. Measurement request is initiated by sending an I2C write with 0 bytes, followed by a 35 ms conversion delay.

Byte IndexData FieldBitfield AllocationDescription
Byte 0 [15:14]STATUS00 = Valid, 01 = StaleIndicates freshness of capacitive ADC conversion
Byte 0–1 [13:0]HUMIDITY14-bit ADCScaled by $100 / 16383 = 0.0061635$
Byte 2–3 [15:2]TEMPERATURE14-bit ADCScaled by $(165 / 16383) - 40$
Byte 3 [1:0]MASKEDDon't careInternal diagnostic padding bits
βš›οΈ
First Principles: Down to the Last Atom
Demystifying humidity & temperature β€” from permanent water dipoles & polymer matrices to bandgap thermal jiggling
πŸ”¬ 1. The Atomic Particle Stage (What's in the Box?)
Two completely different atomic phenomena live on this chip:
β€’ The Water Molecule ($H_2O$): Two hydrogen atoms sharing covalent bonds with one oxygen atom in an asymmetrical V-shape ($104.5^\circ$). Oxygen has a powerful greed for electrons (high electronegativity), pulling the electron cloud toward itself. This leaves the oxygen with a partial negative charge ($\delta^-$) and the hydrogens with partial positive charges ($\delta^+$), turning every water molecule into a permanent electric dipole.
β€’ The BJT Transistor: A single-crystal silicon matrix doped with boron (p-type) and phosphorus (n-type), creating p-n junctions where thermal kinetic energy jostles electrons across energy barriers.
⚑ 2. The Chain Reaction (Molecular Absorption into Polymer)
The humidity sensor sandwiches a thin layer of specialized hygroscopic polymer between two capacitor plates, with the top plate made of porous platinum perforated like a microscopic sponge. Dry polymer has a low relative dielectric permittivity ($\epsilon_{\text{dry}} \approx 3.0$). When room humidity rises, trillions of airborne $H_2O$ molecules wander through the porous metal and lodge inside the polymer web. Because liquid water molecules have a staggering dielectric permittivity ($\epsilon_{\text{water}} \approx 80.1$), their presence allows the capacitor plates to store vastly more electrical charge at the same voltage. Measuring the capacitance directly counts how many water dipoles have burrowed into the polymer!
πŸ“‘ 3. The Digital Bridge (Measuring Atomic Heat Directly)
Temperature is literally the average vibrational kinetic energy of atoms ($E = k_B T$). In the silicon bandgap thermometer, thermal energy kicks electrons across the base-emitter junction of two matched BJT transistors running at unequal current densities ($N = J_1 / J_2$). The resulting voltage difference ($\Delta V_{BE} = \frac{k_B T}{q} \ln N$) depends exclusively on absolute thermodynamic temperature $T$ and two fundamental physical constants: Boltzmann's constant $k_B$ and electron charge $q$. An integrated 14-bit ADC converts both capacitance and thermal voltage into calibrated digital numbers over I2C!
πŸ’‘ Jargon Decoded in Plain English
Electric Dipole
A molecule with positive charge on one end and negative on the other, acting like an atomic-scale battery.
Dielectric Permittivity
A material's ability to store electrical energy when subjected to an electric field; water is ~27x better than plastic.
Hygroscopic Polymer
A microscopic plastic mesh that attracts and holds water vapor from the air like a sponge.
Bandgap PTAT Reference
A circuit that outputs a voltage strictly Proportional To Absolute Temperature, measuring the speed of atomic shaking.
ST LPS22HB β€’ U9 β€’ 0x5C

5. Piezoresistive Barometer & Hypsometric Altitude

Atmospheric pressure deflects a monocrystalline silicon membrane sealing a micro-machined vacuum cavity ($P_{\text{ref}} \approx 0$). Mechanical stress shifts carrier mobility in four piezoresistors wired in a Wheatstone Bridge:

πŸ“‘ Live Barometer Telemetry
Pressure: 1013.2 hPa Calculated Altitude: 0.0 meters
Live Barometric Stress & Hypsometric Altitude Evaluation
$$P = 1013.25\,\text{hPa}, \quad h = 0.0\,\text{m} \; (0\,\text{ft}), \quad \Delta V_{\text{bridge}} = 12.0\,\text{mV}$$
Silicon Diaphragm Deflection & Piezoresistive Wheatstone Bridge
Internal Sealed Cavity: P_ref β‰ˆ 0 Pa (Full Vacuum)
1013.2 hPa
$$h = \frac{T_0}{L} \left[ 1 - \left(\frac{P}{P_0}\right)^{\frac{R_d \cdot L}{g_0}} \right] = 44330.77 \times \left[ 1 - \left(\frac{P}{1013.25}\right)^{0.190284}\right] \, [\text{meters}]$$ $$\Delta V_{\text{bridge}} = V_{\text{bias}} \cdot \frac{\Delta R}{R_0} = V_{\text{bias}} (\pi_l \sigma_l + \pi_t \sigma_t)$$
Barometric hypsometric formula derived from hydrostatic equilibrium and ideal gas law.
πŸ”¬ ASIC Architecture & Registers (ST LPS22HB)

Architecture: Suspended silicon membrane over hermetic vacuum $\to$ 24-bit $\Sigma\Delta$ ADC $\to$ selectable digital low-pass IIR filter ($\alpha \in \{2, 9, 20\}$).

AddressRegister NameConfigured ValueFunction & Operating Mode
0x0FWHO_AM_I0xB1Fixed device identification code
0x10CTRL_REG10x50 (25 Hz ODR)Configures output data rate, block data update (BDU), and IIR filter
0x28PRESS_OUT_XLLSB [7:0]24-bit 2's complement pressure word: $P_{\text{hPa}} = \text{raw}_{24} / 4096.0$
0x29PRESS_OUT_LMID [15:8]
0x2APRESS_OUT_HMSB [23:16]
0x2B–0x2CTEMP_OUT_L/H16-bit 2's compInternal die temperature: $T [^\circ\text{C}] = \text{raw}_{16} / 100.0$
βš›οΈ
First Principles: Down to the Last Atom
Demystifying atmospheric pressure β€” from hypersonic molecular impacts & vacuum cavities to piezoresistive bandgaps
πŸ”¬ 1. The Atomic Particle Stage (What's in the Box?)
Air is not empty space: every cubic meter of air around you contains approximately $2.5 \times 10^{25}$ gas molecules, primarily nitrogen ($N_2$) and oxygen ($O_2$). At room temperature, these molecules are hurtling through space in random directions at an average speed of 500 meters per second (1,800 km/h)β€”faster than a bullet! Atmospheric pressure is not a static weight; it is the staggering cumulative kinetic force of billions of these molecular collisions pounding against every square millimeter of surface every microsecond.
⚑ 2. The Chain Reaction (The Vacuum Cavity Drum)
Inside the LPS22HB is a microscopic circular silicon drum skin just 1 micrometer ($1\,\mu\text{m}$) thick, hermetically sealing an internal cavity pumped down to complete vacuum ($P_{\text{ref}} \approx 0\text{ Pa}$). Because there are literally zero gas molecules inside the cavity to push back, the relentless bombardment of atmospheric molecules crashing into the outer top surface deflects the silicon drum inward like a trampoline under a bowling ball. At standard sea level ($1013.25\text{ hPa}$), the center of the membrane bends downward by roughly 280 nanometers ($0.28\,\mu\text{m}$).
πŸ“‘ 3. The Digital Bridge (Piezoresistive Quantum Bandgap Shift)
At the clamped rim of the drum, silicon atoms are squeezed together by intense mechanical shear stress. In quantum physics, squeezing the silicon crystal lattice alters the overlap of the atomic electron orbitals, warping the silicon's valence and conduction energy bands. This bandgap distortion directly alters how easily mobile electrons and holes can hop between silicon atomsβ€”changing the material's electrical resistance ($\Delta R$)! Four p-doped piezoresistors wired in a diamond Wheatstone bridge convert this quantum resistance shift into a millivolt signal, digitized by a 24-bit $\Sigma\Delta$ ADC to resolve atmospheric pressure down to a few centimeters of altitude change!
πŸ’‘ Jargon Decoded in Plain English
Atmospheric Pressure
The kinetic force of trillions of supersonic nitrogen and oxygen molecules constantly bombarding every surface.
Hermetic Vacuum Cavity
A microscopically sealed room with zero air molecules inside, serving as an unyielding zero-pressure reference.
Piezoresistive Effect
A quantum property where squishing or stretching a crystal lattice changes how easily electricity can flow through it.
Wheatstone Bridge
A four-resistor diamond circuit that can detect a 0.001% change in resistance by measuring differential voltage unbalance.
Broadcom APDS-9960 β€’ U5 β€’ 0x39

6. Directional Proximity, Gesture & RGBA Color

The sensor pulses an internal $950\text{ nm}$ IR VCSEL LED. Reflected radiant flux is collected by four directional photodiodes (Up, Down, Left, Right). Target motion produces directional phase shifts across the quadrant array.

πŸ“‘ Live Optical Telemetry
Proximity: 244 (Clear Air) Gesture: None (-1) RGBA: r:0 g:0 b:0 a:0 Swatch:
Live Inverse Proximity & Directional Vector Evaluation
$$\text{readProximity}() = 244 \implies \text{Clear Air (Distant)}, \quad \vec{\Delta}_{\text{in}} - \vec{\Delta}_{\text{out}} = (0, 0) \implies \text{NONE}$$
4-Quadrant Directional Wave Engine & Inverse-Square Proximity
Move your cursor across the trackpad or move your physical hand
Detected Gesture: NONE (-1)
Inverted Distance (readProximity): 243 (Clear Air)
$$\text{readProximity}() = 255 - \text{PDATA}, \qquad \Phi_{\text{refl}} = \Phi_{\text{emit}} \cdot \frac{\rho \cos\theta}{\pi d^2} \cdot A_{\text{sensor}}$$ $$\text{Total}_X = (R_{\text{in}} - L_{\text{in}}) - (R_{\text{out}} - L_{\text{out}}), \qquad \text{Total}_Y = (U_{\text{in}} - D_{\text{in}}) - (U_{\text{out}} - D_{\text{out}})$$
Inverted distance: 240–255 indicates clear open air; lower values indicate an obstacle closing in.
πŸ”¬ ASIC Architecture & Registers (Broadcom APDS-9960)

Architecture: $950\text{ nm}$ IR LED driver ($100\text{ mA}$) + 4 directional photodiodes (U, D, L, R) with 32-dataset circular FIFO (`GFIFO`).

AddressRegister NameConfigured ValueFunction & Operating Mode
0x80ENABLE0x4F (PON, AEN, PEN, GEN)Enables power, color ADC, proximity engine, and gesture state machine
0x81ATIME256 - (10/2.78)ADC integration time ($10\text{ ms}$)
0x8FCONFIG2LED Boost 100%–300%Pulsed infrared transmitter drive current boost
0x90ID0xABFixed device identification
0x9CPDATA8-bit ProximityRaw proximity ADC count (returned as $255 - \text{PDATA}$)
0xFC–0xFFGFIFO_U/D/L/R32 datasets FIFO4-quadrant gesture dataset ring buffer
βš›οΈ
First Principles: Down to the Last Atom
Demystifying optical proximity & gestures β€” from infrared photons & photoelectric bandgaps to 4-quadrant wave tracking
πŸ”¬ 1. The Atomic Particle Stage (What's in the Box?)
Light is made of localized quantum packets of electromagnetic radiation called photons, each carrying an energy $E = \frac{hc}{\lambda}$. Electrons in crystalline silicon are bound in the valence band and require at least 1.12 electron-volts ($1.12\text{ eV}$) to jump into the conduction band. The APDS-9960 integrates two key optical elements:
β€’ An on-chip 950 nm infrared VCSEL/LED that fires out photons with energy $E = 1.30\text{ eV}$ (just above silicon's bandgap threshold).
β€’ A 4-quadrant photodiode array arranged in a diamond pattern (Up, Down, Left, Right) shielded by microscopic color and infrared filters.
⚑ 2. The Chain Reaction (Photoelectric Photon Capture)
When active, the chip's infrared LED fires intense $100\text{ mA}$ microsecond bursts of infrared photons straight up into the air. When your hand approaches, photons strike the atoms of your skin and clothing, scattering in all directions (diffuse reflection). A fraction of these scattered photons pass through the chip's integrated lens and hit the silicon photodiodes below. When a $950\text{ nm}$ photon collides with an atom in the photodiode, it is absorbed, promoting an electron into the conduction bandβ€”Einstein's photoelectric effect! An internal electric field sweeps these liberated electrons across the junction, generating a measurable photocurrent ($I_{\text{ph}}$) proportional to how close your hand is.
πŸ“‘ 3. The Digital Bridge (How Waves Become Gestures)
Because the photodiodes are physically separated in a cross pattern beneath the lens, an obstacle moving across the sensor does not illuminate all four diodes at the same instant. If you swipe your hand from Left to Right, your physical hand casts a reflection over the Left photodiode first (generating an electron rush in `GFIFO_L`), then sweeps across the center, and finally illuminates the Right photodiode (`GFIFO_R`). The ASIC calculates the time-delay difference between opposite quadrants ($\Delta X = R - L, \Delta Y = U - D$), extracts the motion trajectory vector, and outputs a crystal-clear `GESTURE_RIGHT` event!
πŸ’‘ Jargon Decoded in Plain English
Photoelectric Effect
When incoming light particles (photons) physically crash into atoms and knock electrons free to create electric current.
Semiconductor Bandgap
The minimum energy barrier an electron must overcome to break free from its parent atom and conduct electricity.
Inverted Proximity Scale
The library returns 255 - PDATA: clear open air reflects zero photons (~245), while a hand touching the lens drops the number down near 0.
4-Quadrant Tracking
Using four optical eyes (N, S, E, W) to compare arrival times of light waves and deduce which way a hand moved.
ST MP34DT06JTR β€’ U3 β€’ PDM Channel

7. Acoustics & 1-Bit Sigma-Delta PDM Decimation

Acoustic sound waves deflect a flexible silicon diaphragm charged by an internal charge pump. An on-chip $\Sigma\Delta$ modulator outputs a 1-bit high-frequency pulse density stream at $1.280\text{ MHz}$, decimated $80\times$ by the nRF52840 hardware Sinc$^5$ CIC filter into 16-bit PCM samples at 16 kHz.

πŸ“‘ Live Acoustic Telemetry
True RMS: 45 (Quiet) Floor: 30–150 Trigger Threshold: 1000
Live Acoustic RMS & CIC Filter Decimation Evaluation
$$\text{True RMS} = 45 \text{ counts (Ambient Floor: 30–150)}, \quad L_p \approx 32.7\,\text{dB SPL}, \quad H(z) = \left(\frac{1 - z^{-80}}{1 - z^{-1}}\right)^5$$
Live 1-Bit PDM Bitstream & Sinc⁡ Decimation to True RMS
PDM Clock: 1.280 MHz β€’ Ratio80 Decimation: 16.0 kHz
440 Hz
65 counts
Computed True RMS: RMS: 46 (Quiet)
$$\text{True RMS} = \sqrt{\frac{1}{N} \sum_{i=1}^N s_i^2}, \qquad H(z) = \left(\frac{1 - z^{-80}}{1 - z^{-1}}\right)^5, \qquad f_s = \frac{1.280\,\text{MHz}}{80} = 16.000\,\text{kHz}$$
Firmware True RMS eliminates single-sample AC phase jitter while preserving instantaneous peak triggers for SOUND_THRESHOLD 1000.
πŸ”¬ nRF52840 PDM Peripheral & Double Buffer Registers

CRITICAL DRIVER INVARIANT: In ArduinoCore-mbed, the double-buffer must be drained inside the ISR callback `PDM.onReceive()`. Failure to drain causes the Mbed driver to execute `nrf_pdm_disable()` within ~32 ms.

OffsetRegister NameConfigured ValueFunction & Operating Mode
0x500PSEL.CLKP0.26Microphone master sampling clock output pin
0x504PSEL.DINP0.251-bit high-frequency PDM serial data input pin
0x518PDMCLKCTRL0x0A000000 (1.280 MHz)Clock divider: $32\,\text{MHz} / 25 = 1.280\,\text{MHz}$
0x520GAINL / GAINR0x28 (+20 dB)Digital gain trimming applied prior to decimation
0x528RATIORatio80Decimation factor $R = 80 \implies 1.280\,\text{MHz} / 80 = 16\,\text{kHz}$
0x540SAMPLE.PTRRAM DMA AddressEasyDMA target RAM buffer pointer
βš›οΈ
First Principles: Down to the Last Atom
Demystifying digital acoustics β€” from molecular compression waves & 12V diaphragms to 1-bit PDM pulse densities
πŸ”¬ 1. The Atomic Particle Stage (What's in the Box?)
Sound is not a tangible substance; it is an organized wave of kinetic energy propagating through gas molecules. When you speak, clap, or drop an object, you compress neighboring nitrogen ($N_2$) and oxygen ($O_2$) molecules together. These molecules slam into their neighbors and bounce back, creating alternating ripples of dense molecular clusters (compression) and rarefied voids (rarefaction) hurtling through the room at 343 meters per second.
⚑ 2. The Chain Reaction (The 12-Volt Capacitive Diaphragm)
Sound waves enter the tiny acoustic sound port on the microphone's metal lid. The incoming cluster of gas molecules physically slams against a microscopically thin, flexible conductive silicon diaphragm hovering just 1 micrometer ($1\,\mu\text{m}$) above a rigid perforated backplate. An internal charge pump maintains a constant electrostatic charge biased at 12 Volts. When a compression wave rams the diaphragm closer to the plate, the capacitance spikes, forcing electrons out of the plate as an analog voltage spike. When the rarefaction wave passes, the diaphragm springs back, pulling electrons in.
πŸ“‘ 3. The Digital Bridge (1-Bit Pulse Density Modulation & CIC Sinc⁡)
Instead of taking slow, heavy multi-bit measurements, an on-chip $\Sigma\Delta$ modulator asks a single binary question 1,280,000 times per second ($1.280\text{ MHz}$): "Is the diaphragm pushed inward right now? 1 (Yes) or 0 (No)?"
β€’ Loud clap: Diaphragm pinned inward $\implies$ a dense blast of ones: `1 1 1 1 0 1 1 1 1`.
β€’ Quiet silence: Diaphragm resting $\implies$ an even 50/50 checkerboard: `1 0 1 0 1 0 1 0`.
The Nordic nRF52840 SoC's hardware Sinc⁡ CIC decimation filter mathematically groups and averages 80 of these 1-bit pulses together, producing rich 16-bit PCM audio samples at 16,000 times a second ($16\text{ kHz}$) directly in RAM!
πŸ’‘ Jargon Decoded in Plain English
Compression & Rarefaction
The accordion-like squeezing and stretching of air molecules that carries sound through a room.
Pulse Density Modulation (PDM)
A 1-bit signal where loudness is encoded by how densely packed the logical '1' bits are, like Morse code on steroids.
Sinc⁡ CIC Decimation Filter
An ultra-fast hardware averaging engine that condenses 80 high-speed 1-bit pulses into a single 16-bit audio snapshot.
True RMS
Squaring and averaging samples to measure real acoustic energy, preventing positive and negative sound waves from canceling out.