Difference between revisions of "Arduino OKY3259-1 GY-BMP280"

From cod3v
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Introduction ==
== Introduction ==
[[File:Gy-91.png|thumb]]
GY-91 or OKY3259-1 includes  BMP280 and MPU-9250 chips.


Accelerometer, gyroscope, magnetic field, pressure, (temp?) Includes Bosch BMP280 sensor <ref> [https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/bmp280/ Bosch]</ref> for pressure and temperature and MPU-9250 for inertia<ref>https://invensense.tdk.com/wp-content/uploads/2015/02/PS-MPU-9250A-01-v1.1.pdf</ref>.  
Accelerometer, gyroscope, magnetic field, pressure, (temp?) Includes Bosch BMP280 sensor <ref> [https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/bmp280/ Bosch]</ref> for pressure and temperature and MPU-9250 for inertia<ref>https://invensense.tdk.com/wp-content/uploads/2015/02/PS-MPU-9250A-01-v1.1.pdf</ref>.  
Line 14: Line 18:


https://electropeak.com/learn/interfacing-gy-91-9-axis-mpu9250-bmp280-module-with-arduino/
https://electropeak.com/learn/interfacing-gy-91-9-axis-mpu9250-bmp280-module-with-arduino/
<youtube>N1Mva_A5D7s</youtube>


=== Connection ===
=== Connection ===


*VIN
 
*3V3
*VIN. Power supply: 5V
*3V3. Power supply: 3.3V
*GND
*GND
*SCL
*SCL. [https://en.wikipedia.org/wiki/I%C2%B2C%20I2C I<sup>2</sup>C] Clock or [https://en.wikipedia.org/wiki/Serial_Peripheral_Interface SPI] clock
*SDA
*SDA. I<sup>2</sup>C Data or MOSI pin for SPI
*SDC/ SAO
*SDO/ SAO. Address adjust pin
*NCS
*NCS. Select only MPU-9250
*CSB
*CSB. Select only bMP-280.
 
[https://en.wikipedia.org/wiki/I%C2%B2C I2C] is appropriate for peripherals where simplicity and low manufacturing cost are more important than speed.
 
[[File:Arduino gy-91.svg|thumb|Connection]]
 
==== Connect to Arduino  ====
 
Arduino pins 4 and 5 are hardwired, see https://stackoverflow.com/questions/57582626/changing-wire-librarys-hardware-i2c-pins-for-custom-arduino#57582678
 
Arduino Board has SCL and SDA pins on the digital side. Those pins work too.


=== Arduino Libraries ===
=== Arduino Libraries ===

Latest revision as of 04:46, 17 October 2021

Connection

  • VIN. Power supply: 5V
  • 3V3. Power supply: 3.3V
  • GND
  • SCL. I2C Clock or SPI clock
  • SDA. I2C Data or MOSI pin for SPI
  • SDO/ SAO. Address adjust pin
  • NCS. Select only MPU-9250
  • CSB. Select only bMP-280.

I2C is appropriate for peripherals where simplicity and low manufacturing cost are more important than speed.

Connection

Connect to Arduino

Arduino pins 4 and 5 are hardwired, see https://stackoverflow.com/questions/57582626/changing-wire-librarys-hardware-i2c-pins-for-custom-arduino#57582678

Arduino Board has SCL and SDA pins on the digital side. Those pins work too.