BME280 vs AHT20 Comparison


I’ll read the attached text to see what you’d like me to do.
I’ll create only the new comparison guide and leave all existing files unchanged. The brief’s “Related in Flux” URLs point to unrelated LED parts, so I’ll use the BME280 guide and AHT20 links supplied earlier in the brief instead.
Created a project doc

BME280 vs AHT20: Differences and Which to Use

View Document

BME280 vs AHT20: Differences and Which to Use
For aht20 vs bme280, the main difference is pressure sensing: BME280 measures pressure, humidity, and temperature; AHT20 measures humidity and temperature. Pick BME280 when pressure or SPI is required, and AHT20 for a humidity-and-temperature-only I²C design.
Scope: exact bare Bosch BME280 and bare Aosong/ASAIR AHT20, not breakout modules, AHT10, AHT21, or other sensor variants. Electrical operating limits are not absolute-maximum stress ratings. Implementation choices below are labeled as engineering guidance.
Quick answer
Created BME280 vs AHT20: Differences and Which to Use in project files. All existing files remain unchanged.
Checked the saved guide’s structure, citations, and both datasheet pinouts.
Values left out: matched-condition current/power comparisons, conversion-speed rankings, and full-range maximum accuracy limits. I did not establish sufficiently verified, comparable values for those claims. Prices and stock were excluded as requested.
Pinout risk: the parts are not pin- or footprint-compatible. Replacement requires PCB remapping and new firmware, and AHT20 does not retain pressure sensing. No hardware testing was performed.

BME280 vs BMP280: Differences and Which to Use
The key difference in bme280 vs bmp280 is humidity: BME280 measures it; BMP280 does not. Choose BME280 when relative humidity is required, or BMP280 when pressure and temperature alone meet the measurement requirement.
This comparison covers Bosch's bare BME280 and BMP280 ICs in their manufacturer-documented LGA packages, not breakout boards. Selection and migration recommendations below are engineering guidance; electrical limits and package facts are cited to Bosch.
Quick answer

Table


Choose BME280 if...Choose BMP280 if...
You need relative humidity alongside pressure and temperature. You need pressure and temperature, without humidity.
Your application must preserve an existing humidity feature. Removing humidity is an acceptable product change.
You are retaining a board validated for BME280's package. You can validate the board for BMP280's different package rather than assuming a drop-in.
Electrical comparison
Operating limits below are not absolute-maximum stress ratings. The pressure row compares the same full-accuracy temperature window; it is not an accuracy ranking.

Table


ParameterBME280BMP280What it means for your design
Measurement channelsRelative humidity, pressure, temperature. Pressure, temperature; no humidity channel. Humidity cannot be restored through firmware on BMP280.
VDD, recommended operating supply1.71–3.6 V during operation. 1.71–3.6 V during operation. A shared supply design can remain within both operating ranges.
VDDIO, recommended interface supply1.2–3.6 V during operation. 1.2–3.6 V during operation. Retain host logic and pull-ups compatible with VDDIO; a bare IC is not a level-shifting breakout.
Operating temperature−40 to +85 °C operating range. −40 to +85 °C operating range. Operation across this range does not imply full pressure accuracy throughout it.
Full-accuracy pressure range300–1100 hPa at 0 to +65 °C. 300–1100 hPa at 0 to +65 °C. Range alone is not a reason to prefer either part.
Manufacturer datasheets: BME280 and BMP280.
Pinout and package differences
The following is a compatibility map, not a repeat of the wiring instructions in the existing guide. Bosch's pin diagrams give the same numbered functions for both parts.

Table


Package contact numberBME280BMP280
1GNDGND
2CSBCSB
3SDISDI
4SCKSCK
5SDOSDO
6VDDIOVDDIO
7GNDGND
8VDDVDD
BME280 mapping source: Bosch pin-out diagram and table. BMP280 mapping source: Bosch pin-out diagram and table. Contact numbers are identifiers, not measured quantities; check the marked package orientation rather than mirroring a footprint from a top-view illustration.
They are pin-function-compatible, but do not assume footprint-compatible or a drop-in replacement. BME280's package drawing specifies a nominal 2.50 mm × 2.50 mm body; BMP280's package section and drawing specify a nominal 2.0 mm × 2.5 mm body. Both have 0.65 mm contact pitch, but matching pitch and contact order do not establish matching pad locations or solder-joint geometry.
Engineering guidance: do not approve either part on the other's unmodified footprint from this mapping alone. Compare the actual package and recommended land-pattern drawings against the PCB pads, mask, paste, and courtyard; use a dedicated footprint or a separately validated dual-compatible land pattern.
Design differences in a circuit
For migration, retain the functional supply, ground, and interface nets in the compatibility map, but assign the replacement's footprint. Both Bosch application circuits recommend one 100 nF bypass capacitor on VDD and one 100 nF bypass capacitor on VDDIO; the swap alone does not require different bypass values. Reassess logic levels against the operating supply ranges above; there is no reason to change drive voltage merely because the part name changes.
Worked example — assumed circuit, not a datasheet test: suppose an existing I²C host uses VDD = VDDIO = 3.3 V and a 4.7 kΩ pull-up on each bus line. Those assumed supplies fall within both parts' cited operating ranges. With an assumed ideal 0 V low level, each asserted line draws I = 3.3 V / 4.7 kΩ = 0.702 mA through its pull-up; both lines held low draw 1.40 mA total. This calculation is pull-up current, not sensor supply current or proof of bus timing compliance; validate bus loading and rise time before retaining the resistors.
Firmware must identify the replacement and use its own calibration data and compensation path: the BME280 chip ID is 0x60, whereas BMP280 is 0x58 at the chip-ID register 0xD0. These hexadecimal values are register identifiers/data, not electrical ratings. Remove humidity configuration, readout, and reporting when migrating to BMP280; when migrating back, include BME280's humidity calibration and write ctrl_hum before ctrl_meas so its humidity setting takes effect. Do not reuse calibration coefficients from the removed device: both require compensation using device-stored parameters.
PCB and layout differences
  • Footprint: revalidate against the replacement's package drawing, not a breakout-board outline or a generic LGA label. The different nominal bodies are the mechanical migration risk identified above.
  • Routing: the matching numbered functions allow the same logical net assignment, but engineering guidance is to recheck the physical escape routing after replacing the footprint.
  • Placement: engineering guidance is to revalidate enclosure clearance and environmental exposure after the package change; do not treat removal of humidity sensing as permission to seal off pressure access. See the existing guide for the full BME280 layout discussion rather than duplicating it here.
Can I replace BME280 with BMP280?
Yes, with these changes—not as an unconditional same-footprint drop-in. The numbered pin functions match, but the nominal body dimensions differ and BMP280 loses humidity sensing.
  • Accept loss of humidity, or redesign with a separate humidity sensor.
  • Replace or independently qualify the footprint and assembly geometry.
  • Retain supplies and interface levels only after checking the electrical table; retain passives only after validating the actual bus.
  • Update device identification, configuration, compensation, and application data fields; regression-test pressure and temperature in the final hardware.
FAQ
Does BMP280 measure humidity?
No: BMP280's measurement sequence contains temperature and pressure, not humidity. BME280 adds relative-humidity measurement, so select it when that channel is required.
Are BME280 and BMP280 pin-compatible?
Their numbered pin functions match, as shown in the concise mapping above. That is not a mechanical drop-in guarantee: the nominal package bodies differ, so qualify the land pattern before swapping.
Can I use the same firmware for BME280 and BMP280?
Use a driver that explicitly supports the detected device rather than merely accepting a bus response: their chip IDs differ. Humidity configuration and calibration handling belong to BME280, and each installed device's compensation parameters must be read anew.
Sources
  • Bosch Sensortec BME280 manufacturer datasheet, revision 1.24, February 2024, document BST-BME280-DS001-24. Cover identification; electrical tables; compensation and register comparison; pin-out; application circuits; package Figure 20.
  • Bosch Sensortec BMP280 manufacturer datasheet, revision 1.26, October 2021, document BST-BMP280-DS001-26. Cover identification; electrical tables; compensation and chip ID; pin-out Figure 14; application circuits; package Figure 18.
  • Quick answer

  • Electrical comparison

  • Pinout and package differences

  • Design differences in a circuit

  • PCB and layout differences

  • Can I replace BME280 with BMP280?

  • FAQ

  • Does BMP280 measure humidity?

  • Are BME280 and BMP280 pin-compatible?

  • Can I use the same firmware for BME280 and BMP280?

  • Related in Flux

  • Sources