Herunterladen Inhalt Inhalt Diese Seite drucken

Bmp180 Beispiel - Barometer Demos - Joy-It Rpi-Explorer700 Anleitung

Vorschau ausblenden Andere Handbücher für RPi-Explorer700:
Inhaltsverzeichnis
3

7. BMP180 Beispiel - Barometer Demos

bcm2835 Programm:
Öffnen Sie die Linux Konsole und geben Sie folgende Kommandos ein:
Das Kommando zum Kompilieren des Programms:
pi@raspberrypi ~/Explorer700/BMP180/bcm2835 $ make
Das Kommando zum ausführen des Programms:
pi@raspberrypi ~/Explorer700/BMP180/bcm2835 $ sudo ./BMP180
Erwartetes Ergebnis: Die Konsole wird folgende Informationen anzeigen:
BMP180 Test Program ...
Temperature: 34.20 C
Pressure: 1005.12 Pa
Altitude: 67.66 m
Drücken Sie die Tasten Strg+c um das Programm zu beenden.
wiringPi Programm:
Öffnen Sie die Linux Konsole und geben Sie folgende Kommandos ein:
Das Kommando zum kompilieren des Programms:
pi@raspberrypi ~/Explorer700/BMP180/wiringPi $ make
Das Kommando zum ausführen des Programms:
pi@raspberrypi ~/Explorer700/BMP180/wiringPi $ sudo ./BMP180
Erwartetes Ergebnis: Die Konsole wird folgende Informationen anzeigen:
BMP180 Test Program ...
Temperature: 34.20 C
Pressure: 1005.12 Pa
Altitude: 67.66 m
Drücken Sie die Tasten Strg+c und das Programm zu beenden.
Ausgabe 07.12.2016
RPi - Explorer700
Copyright by Joy-IT
12
Inhaltsverzeichnis
loading

Inhaltsverzeichnis