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
...
|