View: 3110|Reply: 1

Simple test program for ms5611 on Orange Pi One

[Copy link]

2

threads

3

posts

22

credits

Novice

Rank: 1

credits
22
Published in 2019-10-17 18:24:25 | Show all floors |Read mode
Hi, guys!
    I bought an Orange Pi One the other day. I just wrote a simple test program for ms 5611 on it. And have got some outputs. Hope someone may find this useful.

     https://github.com/doctor1003148590/ms5611test

ms5611test
===================

ms5611 over I2c for Orange Pi:

This is a sample program for testing your ms5611 with Orange Pi.
It does all the initialization and gathers:
- pressure
- temperature


**Wiring**
OPi pin 1 (3.3V)   -> ms5611 module VCC
OPi pin 6 (Ground) -> ms5611 module GND
OPi pin 3          -> ms5611 module SDA
OPi pin 5          -> ms5611 module SCL

**clone the code**
  git clone


**Make and run**
  cd ms5611test
  make
  sudo ./ms5611test

**output**

This is a testing program for ms5611 on Orange Pi...
Initializing ...
Reseting ms5611...
Ms5611 Reseted.
Reading PROM...
PROM data 0 value is  84.
PROM data 1 value is  52521.
PROM data 2 value is  51798.
PROM data 3 value is  32285.
PROM data 4 value is  28947.
PROM data 5 value is  30948.
PROM data 6 value is  28011.
Ms5611 initialized .
temperature = 2189      pressure = 101999
temperature = 2189      pressure = 101999
temperature = 2191      pressure = 102003
temperature = 2189      pressure = 101999
temperature = 2191      pressure = 102016
...


This thread contains more resources

You need to Log in to download or view,No account?    Register

x

2

threads

3

posts

22

credits

Novice

Rank: 1

credits
22
 Author| Published in 2019-10-17 18:27:46 | Show all floors
And there is also another test program for MPU6050/MPU6500/MPU9150/MPU9250 over I2c for RaspberryPi.
I made it work on my Orange Pi One too.
See  http://www.orangepi.org/orangepi ... &extra=page%3D1  for more detail.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list