GY-BMP280-3.3 Pressure Sensor Module Arduino Tutorial and Pinout

GY-BMP280-3.3 high precision atmospheric pressure sensor module for Arduino – tutorial on first use and testing of the module as well as GY-BMP280-3.3 pressure sensor module pinout. The same module is sold under different names such as BMP280-3.3 or just BMP280, although BMP280 is the actual pressure sensor chip that can be seen just below the capacitor at the top of the module, as shown in the image below.

GY-BMP280-3.3 Pressure Sensor Module

GY-BMP280-3.3 Pressure Sensor Module

GY-BMP280-3.3 Pressure Sensor Module Basic Information

The least you need to know before using this module is presented below.

What the GY-BMP280-3.3 Pressure Sensor Module Can Measure

It can measure both atmospheric pressure and temperature. Because it can measure atmospheric pressure, it can be used to calculate altitude.

BMP280 Datasheet

The module uses a BMP280 barometric pressure sensor from Bosch. A datasheet on the BMP280 can be found on the BMP280 page on the Bosch website. This datasheet and web page is for the actual BMP280 device found on the GY-BMP280-3.3 module.

Operating Voltage

The GY-BMP280-3.3 operates from 3.3V, so requires 3.3V power and must be driven with 3.3V logic levels. Some modules that use the BMP280 device have a voltage regulator and level shifters so that it can be operated from a 5V controller such as an Arduino Uno. This module does not have any regulator or level shifters.

From the BMP280 datasheet:
Minimum power supply voltage – 1.71V
Maximum power supply voltage – 3.6V
Absolute maximum power supply voltage – 4.25V

Direct connection to a 3.3V Arduino such as an Arduino Due, Arduino Zero, Arduino M0 or Arduino M0 Pro is fine, so long as the pressure sensor is powered from the Arduino 3.3V pin. For 5V Arduinos such as the Arduino Uno or Arduino MEGA, it must be powered from the Arduino 3.3V pin, and must be interface to the Arduino using a level shifter for the data and clock pins.

I have seen videos on YouTube where this module is connected directly to a 5V Arduino and powered from 5V. This is extremely bad engineering practice and could result in severely damaging or destroying the BMP280 device. It is sheer luck if the device actually works and does not blow up.

Interfacing

I2C or SPI can be used to interface or connect the module to an Arduino or other microcontroller. Pin 6 of the module controls the I2C address of the module which can be set to either 0x76 when pin 6 is left unconnected or 0x77 when pin 6 is pulled to Vcc (3.3V).

Wrong Information

The Internet is full of wrong information regarding this sensor module. Tutorials on powering this device from 5V and not using level shifters on the data pins are out there. Or if the advice is to power the module from 3.3V, then the data pins are directly connected to 5V Arduino pins without level shifters.

Another mistake that I have seen is that people do not know that the I2C address can be changed by using pin 6 of the module, as can be seen in the pinout for the module (link in the section below). What they then do is modify the Arduino driver to change its I2C address so that it matches the default I2C address of the module, instead of just pulling pin 6 high so that the module address matches the driver address.

GY-BMP280-3.3 Pressure Sensor Module Pinout

Refer to the GY-BMP280-3.3 pressure sensor module pinout page for the module’s pinout and circuit diagram.

GY-BMP280-3.3 Pressure Sensor Module Tutorial

A tutorial on basic use and testing of the GY-BMP280-3.3 pressure sensor module on the Starting Electronics website shows how to connect the module to both 3.3V and 5V Arduino boards. An Arduino Due is used to demonstrate how to wire the module to a 3.3V Arduino. For 5V Arduino boards, an Arduino Uno is used to demonstrate how to use a transistor level shifter to wire the module for 5V use.

The tutorial also shows how to install drivers for the pressure sensor module and then test the module to make sure that it can read pressure and temperature.

Go to the tutorial now →

Can’t Find Arduino M0 PRO or Zero in IDE

What to do when you can’t find Arduino M0 Pro or Zero in IDE board list. How to install Arduino M0, M0 Pro or Zero software in the Arduino IDE. Arduino boards are selected from the top Arduino IDE menu under Tools → Board, but if the Arduino M0, Arduino M0 PRO or Arduino Genuino Zero boards are not found on the menu, additional software must be installed within the Arduino IDE.

When the software is installed, the following boards will be supported by the Arduino IDE:

  • Arduino/Genuino Zero
  • Arduino/Genuino MKR1000
  • Arduino MKRZERO
  • Arduino MKR FOX 1200
  • Arduino MKR WAN 1300
  • Arduino MKR GSM 1400
  • Arduino M0 Pro
  • Arduino M0
  • Arduino Tian
  • Adafruit Circuit Playground Express

Can’t Find Arduino M0 PRO or Zero on the Menu in the Arduino Software

In the image below, the Arduino M0 Pro, Arduino M0 and Genuino Zero are missing from the Arduino IDE board list menu. The steps below show how to solve the problem and get the additional Arduino boards listed on the menu.

Can't Find Arduino M0 PRO or Zero in IDE - Arduino IDE Board List Missing M0 and Zero

Can’t Find Arduino M0 PRO or Zero in IDE – Arduino IDE Board List Missing M0 and Zero

How to Install Software for the Arduino M0, M0 Pro and Genuino Zero

The following screen captures show how to install software for the Arduino M0, M0 Pro and Genuino Zero boards in the Arduino IDE. Only one package must be installed for all three boards and is done within the Arduino IDE.

After installation, the following boards will be available in the Arduino IDE: Arduino/Genuino Zero, Arduino/Genuino MKR1000, Arduino MKRZERO, Arduino MKR FOX 1200, Arduino MKR WAN 1300, Arduino MKR GSM 1400, Arduino M0 Pro, Arduino M0, Arduino Tian and Adafruit Circuit Playground Express.

1. Open the Boards Manager

From the top Arduino IDE menu, select Tools → Board → Boards Manager… to open the Boards Manager dialog box.

Open the Arduino IDE Boards Manager

Open the Arduino IDE Boards Manager

2. Select Arduino SAMD Boards and Install

In the Boards Manager dialog box, type M0 into the search field to easily find the SAMD package for Cortex-M0+ boards as shown in the image below.

Search for M0 in the Boards Manager Dialog Box

Search for M0 in the Boards Manager Dialog Box

Click anywhere on the Arduino SAMD Boards (32-bits ARM Cortex-M0+) by Arduino item to select it. After selecting it, an Install button will appear as can be seen in the above image. Click the Install button to install the software package. This may take some time, depending on the speed of your Internet connection. Click the Close button in the dialog box after the installation has finished.

3. Find the Arduino Zero and M0 Boards on the Arduino IDE Menu

After the software package has been installed, the new Arduino boards can be seen on the Arduino IDE Board menu found under Tools →Board as shown in the image below.

A new section called Arduino SAMD (32-bits ARM Cortex-M0+) Boards can be seen on the Board menu which contains Arduino M0, M0 Pro, Zero, MKR boards and others.

Arduino M0 and Genuino Zero on the Arduino IDE Board List

Arduino M0 and Genuino Zero on the Arduino IDE Board List

Program the Arduino M0 Pro or Arduino Zero

Select the desired board from the Arduino IDE Board menu and then select the correct Port number from the menu item below Board on the Tools Menu. The Arduino board can now be programmed in the usual manner.

For Arduino boards such as the Zero and M0 that have two USB ports for programming, make sure that the correct board and port is selected from the Board menu – i.e. Programming Port or Native USB Port. This port name must correspond to the port on the board that the cable is plugged into.

For example, a Arduino M0 Pro board is shown below with the USB cable plugged into the programming port. Arduino M0 Pro (Programming Port) must therefore be selected from the Arduino IDE board menu.

Arduino M0 Pro Programming Port

Arduino M0 Pro Programming Port

 

KiCad Schematic Tutorial

Learn to draw a circuit diagram in this KiCad schematic tutorial for beginners. Draw a 555 timer LED flasher circuit using free open source KiCad EDA software.

KiCad is an Electronic Design Automation (EDA) software package that can run on Windows, Linux and MAC OSX. Beginners in electronics may be interested in learning how to draw a circuit using this software package. The circuit diagram or schematic can then be exported for publishing on the web or in documents.

The image below shows KiCad running on a Windows computer with the circuit drawn in the tutorial.

KiCad Schematic Tutorial

KiCad Schematic Tutorial

Beginners in electronics may also like the blog post on how to read schematic or circuit diagrams for beginners.

Installing KiCad

KiCad can be installed on Windows, Linux and MAC OSX:

How to install KiCad in Windows is a short article on installing the newest version of KiCad on a Windows computer.

How to install KiCad in Linux is an article that shows how to install the latest version of KiCad on a Linux computer.

The KiCad download page has links for installing KiCad on OS X and Windows and various Linux distributions.

KiCad Schematic Tutorial for Beginners

The full KiCad schematic tutorial can be found on the Starting Electronics website.

The tutorial shows how to create a new project in KiCad, including how to create and name a project directory. A 555 timer flashing LED circuit is then drawn using the KiCad schematic editor called Eeschema.

You will learn how to zoom in and out of the circuit, scroll the schematic, place electronic part symbols, wire the circuit and annotate the circuit. These and more basic actions needed to draw and edit a schematic are included in the tutorial.

Finally the tutorial explains how to export a circuit diagram or schematic for publishing on the web or in a document.

Go to the KiCad Schematic Tutorial now →

 

How to Read Schematics for Beginners

How to read schematics for beginners – when starting to learn electronics, beginners need to learn how to read schematic diagrams. Schematic diagrams show the components and electrical connections of a circuit in schematic or diagram format. A schematic diagram is also known as a circuit diagram, or just schematic.

How to Read Schematics for Beginners

How to Read Schematics for Beginners

Schematic Symbols

Before being able to read a schematic, it is necessary to learn and recognize the symbol for each component in a circuit. Each symbol in a schematic represents a physical electrical or electronic component.

In the circuit above, the schematic is shown on the left and has two symbols representing two components. The symbol on the very left represents a battery. On the right of the schematic is the symbol that represents a light bulb.

On the right of the above image is the physical implementation of the schematic on the left. Here the actual light bulb and battery can be seen.

Electrical Connections

Electrical connections between the bulb and battery are represented by lines in the schematic. These lines are wires in the actual circuit.

How to Read Schematics

The article on how to read circuit diagrams for beginners on the Starting Electronics website shows the very basics of how to read schematics. This article uses the same light bulb and battery circuit to explain the basics of circuit diagrams. It shows how to recognize when two wires are connected, or whether they are just crossing each other.

After reading this article, a series of tutorials follows to get the reader to recognize electronic components and their schematic symbols. Each electronic circuit can be built on breadboard. A good way to learn how to read electronics schematics is to follow the tutorials, look at the schematic diagrams and build the circuits.

Go to the article now →

 

LM3909 IC 1.5V LED Flasher Circuit

LM3909 IC 1.5V LED flasher circuit. A circuit that uses the now obsolete LM3909 IC to flash an LED from a single 1.5V cell. This IC and circuit is now a piece of history. I had one of these circuits running on a PCB for years, the circuit finally failed. My attempts to repair the circuit were unsuccessful. It appears that the IC finally failed. Read on for a look at some electronics history.

LM3909 1.5V LED Flasher Circuit Diagram

Below is the circuit diagram of an LM3909 LED flasher taken from an out of print electronics magazine. I built this circuit on a tiny PCB many years ago. The circuit operated from a single 1.5V cell, but could also operate from a single 1.2V rechargeable cell.

LM3909 1.5V LED Flasher Circuit Diagram

LM3909 1.5V LED Flasher Circuit Diagram

Flashing an LED from a Single Cell

I remember the LM3909 being expensive, costing many more times than a 555 IC. The problem with using a 555 is that it could not be used to flash an LED from a single 1.5V cell, but had to operate from a higher voltage. A 555 also drains a lot of current from a battery because of its internal voltage divider resistors.

When the LM3909 became available it was popular with hobbyists because an LED can not be lit up from a single 1.5V cell. Here was an IC that would flash an LED from a 1.5 or 1.2 volt cell, pretty impressive. The cell would last for a long time too.

LM3909 now Obsolete

Unfortunately the LM3909 is not available anymore. It was made obsolete several years ago and has no equivalent or replacement part. There are some transistor circuits available that will flash an LED from a single cell.

Attempting to Revive my LM3909 Circuit

The only LM3909 IC that I have was used in a LED flasher circuit built on a PCB. Fortunately I had used an 8-pin IC socket on the board, so could remove the IC to test it on breadboard. The PCB and breadboard test circuit are shown below. Notice that only two additional components are needed in the circuit – a capacitor and LED.

LM3909 PCB Circuit and Breadboard Circuit

LM3909 PCB Circuit and Breadboard Circuit

After many years of service, the LM3909 finally failed. After testing the PCB circuit with a new battery and then building the circuit on breadboard and testing it, the LM3909 was finally declared dead.