Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
interfaces:bme280 [2016/09/28 15:59] – [Raspberry Pi] darroninterfaces:bme280 [2016/10/02 04:10] (current) – [Raspberry Pi] darron
Line 2: Line 2:
 <wrap right> <wrap right>
 {{:interfaces:bme280.jpg?200}} {{:interfaces:bme280.jpg?200}}
 +\\ \\
 +{{:interfaces:bme280-temperature.png?200}}
 +\\ \\
 +{{:interfaces:bme280-humidity.png?200}}
 +\\ \\
 +{{:interfaces:bme280-pressure.png?200}}
 </wrap> </wrap>
  
Line 12: Line 18:
 === Raspberry Pi === === Raspberry Pi ===
  
-The device uses I2C to communicate with a host master and with the Pi, the topmost +The device uses I2C to communicate with a host master and with the Pi, four 
-pins on the GPIO header are utilised to perform this.+pins on the GPIO header are utilised to achieve this.
  
 <code> <code>
Line 23: Line 29:
 GND 09       . GND 09       .
     .        .     .        .
-    /        / 
-    .        . 
-    +--------+ 
          
-Relevant I2C pins shown, others omitted.+Relevant pins for I2C communications shown, others omitted.
 </code> </code>
  
-With the miniature board (purple device in photo), only four wires are required to hook up the BME280 +With the miniature board (purple device in photo), the four wires hook up the BME280 to the Pi. Two wires are for power and two for communications. Power is supplied from the Pi 3V3 pin which is connected to the board's Vin pin. For safety you may wire the board with the Pi disconnected from it's power source and only power it up when satisfied the wiring is correct. 
-to the Pi.+ 
 +Install [[projects:telegraph|Telegraph]] and use it'BME280 demo for PHP and the apache2 web server to create and display graphs of the sensor (see the three graphs on this page). 
 + 
 +Within the [[projects:telegraph|Telegraph]] directory you will find the `demo' directory and within 
 +that `bme280'. Two further directories exist, the `etc' directory demonstrates how to set up telegraph to poll the BME280 device and store the results in a database. The `htdocs' directory contains files which you can be served by the apache2 web server to display images like the examples on this web page.