Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 210|Reply: 1

Simple test program for ms5611 on Orange Pi One

[Copy link]

2

Threads

3

Posts

22

Credits

Novice

Rank: 1

Credits
22
Post time 2019-10-17 18:24:25 | Show all posts |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 post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

2

Threads

3

Posts

22

Credits

Novice

Rank: 1

Credits
22
 Author| Post time 2019-10-17 18:27:46 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-11-15 18:10 GMT+8 , Processed in 0.031523 second(s), 23 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list