Tag Archives: GY-87

Measure 3 Axis Acceleration on an Arduino with the MPU6050 IMU

In this video tutorial we show how the MPU6050 can be used to measure acceleration in the x, y, and z directions, that is, Ax, Ay, and Az. We also introduce the idea of plotting the data to the Arduino Serial Plotter to make visualization of the data easier.

Below is the schematic we are using to access the MPU6050 on the GY-87 module.

MPU6050
Schematic for connecting the GY-87 module to the Arduino

Below is the code which we developed in the lesson to measure acceleration in all three axis.

 

Add an MPU6050 Accelerometer to your Arduino Project

In this video lesson we will show you how to incorporate accelerometers into your Arduino projects. Your Sunfounder kit includes the GY-87 IMU module. This module contains a BMP180 pressure sensor, which we have already used in earlier lessons, and an MPU6050 6 axis IMU. The MPU6050 includes 3 accelerometers and 3 gyros. In today’s lesson, we learn how to use the MPU6050 accelerometers. I will explain how these MEMS bases accelerometers work, and how we can use them in our project.

This is the schematic we use in todays lesson.

MPU6050
Schematic for connecting the GY-87 module to the Arduino

For your convenience, the code developed in the lesson is presented below:

 

Portable Arduino Barometric Weather Station

In this video lesson we take you through the project of building an Arduino Barometric Pressure Weather Station. It builds on the last two lessons in this series. We measure and display instantaneous Barometric Pressure, normalized to Sea Level. Then in the lower portion on the OLED SSD1306 display, we show a graph of the barometric pressure over the last 24 hours.

 

Arduino Altimeter
Schematic for the Portable Arduino Barometric Pressure Sensor

When using the breadvolt, or any battery power supply on a breadboard project, do not turn the power supply on while the Raspberry Pi Pico is connected to USB, as you could generate voltage conflicts. It is an either or. If the USB is connected, the power supply should be OFF. Or if you are going to connect the USB, first turn off the power supply.

Below we include the code we develop in the above video. Make sure to set the ‘alt’ variable to your elevation at your location, in meters.

 

Arduino Weather Barometer

In this video lesson we show how to build an Arduino based Weather Barometer.  We will use the BMP180 pressure sensor on the GY-87 module. This lesson will likely also work fine if you are just using the BMP180 directly. We show how to measure barometric pressure, convert it to Inches of Mercury, stabilize it with a low pass filter, and then normalize it to standard sea level pressure. With this, our values should very closely match what is being seen on weather maps. This is the schematic of the circuit we will be working on.

Height Sensor

When using the breadvolt, or any battery power supply on a breadboard project, do not turn the power supply on while the Raspberry Pi Pico is connected to USB, as you could generate voltage conflicts. It is an either or. If the USB is connected, the power supply should be OFF. Or if you are going to connect the USB, first turn off the power supply.

For your convenience, here is the code we developed in the video.

 

Portable Altimeter Project with Arduino

In this video lesson we create a portable altimeter that measures altitude above a base reference location. The device uses an arduino uno R4 Wifi, a BMP180 pressure sensor which is  on the GY-87 module. For your convenience, we present the circuit diagram used below:

Height Sensor
Schematic to Create a Portable Arduino Elevation Measurement System

When using the breadvolt, or any battery power supply on a breadboard project, do not turn the power supply on while the Arduino is connected to USB, as you could generate voltage conflicts. It is an either or. If the USB is connected, the power supply should be OFF. Or if you are going to connect the USB, first turn off the power supply.

This is the code for this project, for your convenience.