MPU6050 Interfacing with Raspberry Pi using ‘C’


  • MPU6050 sensor module is an integrated 6-axis Motion tracking device.
  • It has a 3-axis Gyroscope, 3-axis Accelerometer, Digital Motion Processor and a Temperature sensor, all in a single IC.
  • It can accept inputs from other sensors like 3-axis magnetometer or pressure sensor using its Auxiliary I2C bus.
  • If external 3-axis magnetometer is connected, it can provide complete 9-axis Motion Fusion output.
  • A microcontroller can communicate with this module using I2C communication protocol. Various parameters can be found by reading values from addresses of certain registers using I2C communication.
  • Gyroscope and accelerometer reading along X, Y and Z axes are available in 2’s complement form.
  • Gyroscope readings are in degrees per second (dps) unit; Accelerometer readings are in g unit.

For more information about MPU6050 Sensor Module and how to use it, refer the topic MPU6050 Sensor Module in the sensors and modules section.

Read More

BME280 I2C Temperature and Pressure Sensor

The BME280 device is a digital barometric pressure sensor and is a slightly upgraded version of the BMP180. This is available on a small module which provides access to the sensor via the I2C interface. This allows us to easily connect it to the Raspberry Pi and read the data using Python. The BME280 provides temperature, pressure and humidity.

The BME280 is made by Bosch and the official BME280 datasheet includes all the technical details. Their device can offer both SPI and I2C interfaces so you need to make sure your module provides the interface you prefer.

My module is a small pcb measuring 14x10mm with a 4 pin I2C header. The order of the pins may vary on other modules so keep an eye on the labels so you connect up the correct wires from the Pi.
Read More

Detecting Colors using the TCS3200 Color Sensor

In this project we are going to Detect the Colors using TCS3200 Color Sensor Module with Raspberry Pi. Here we used Python code for Raspberry Pi to detect the colors using TCS3200 sensor. To demonstrate the color detection we have used a RGB LED, this RGB LED will glow in the same color, of which the object is presented near the sensor. Currently we have programmed Raspberry Pi to detect only Red, Green and blue colors. But you can program it to detect any color after getting the RGB values, as every color is made up of these RGB components. Check the demo Video at the end.Read More

Measuring Rotation and acceleration with the Raspberry Pi

Acceleration and rotation sensors are most known from smartphones. The rotation of the device can be detected and can be addressed directly.

With the Raspberry Pi and a Gyroscope / Accelerator sensor it is possible to measure the rotation as well as the acceleration of the 3 axes.
In this tutorial use the MPU 6050 Gyroscope / Accelerator sensor interferfaced to a Raspberry Pi, and reads the values using I2C.


For this tutorial I have used the following components:

  • Raspberry Pi
  • MPU 6050 sensor module
  • Jumper Cables

Read More

Installing the Keyestudio Raspberry PI GPS Plate

This Keyestudio KS0216 Raspberry Pi GPS Plate (shield) features high performance and low power consumption. It utilizes the NEO-6M Module developed by U-blox. The GPS Module is connected through the 2*20 expansion pins of Raspberry Pi. It features a large size ceramic antenna, sending locating information to GPS through the serial port. It can track up to 8 satellites on 50 channels at high speed, and it produces very accurate location data.

Plug the GPS Plate into Raspberry Pi 3. Upload your code to Raspberry Pi 3, and you can find your exact location within a few meters. It also provides you with very accurate time! It can be used in car navigation, personal positioning, fleet management, navigation and so on.Read More

Do NOT follow this link or you will be banned from the site!