{"id":617,"date":"2016-05-22T21:18:28","date_gmt":"2016-05-22T21:18:28","guid":{"rendered":"https:\/\/einhugur.com\/blog\/?page_id=617"},"modified":"2021-04-15T13:14:13","modified_gmt":"2021-04-15T13:14:13","slug":"bmp180-barometer-sensor","status":"publish","type":"page","link":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/","title":{"rendered":"BMP180 Barometer sensor"},"content":{"rendered":"<h2>In this example we are going to connect to BMP180 barometer sensor, we will be using brake-out board called GY-68.<\/h2>\n<figure id=\"attachment_620\" aria-describedby=\"caption-attachment-620\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sensor.jpg?ssl=1\"><img data-attachment-id=\"620\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/bmp180sensor\/\" data-orig-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sensor.jpg?fit=400%2C250&amp;ssl=1\" data-orig-size=\"400,250\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 6&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1463789211&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;32&quot;,&quot;shutter_speed&quot;:&quot;0.0031847133757962&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"BMP180 sensor\" data-image-description=\"\" data-medium-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sensor.jpg?fit=300%2C188&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sensor.jpg?fit=400%2C250&amp;ssl=1\" loading=\"lazy\" class=\"size-medium wp-image-620\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sensor-300x188.jpg?resize=300%2C188&#038;ssl=1\" alt=\"BMP180 sensor on GY68 brake-outboard\" width=\"300\" height=\"188\" srcset=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sensor.jpg?resize=300%2C188&amp;ssl=1 300w, https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sensor.jpg?w=400&amp;ssl=1 400w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-620\" class=\"wp-caption-text\">BMP180 sensor on GY68 brake-out board<\/figcaption><\/figure>\n<p>This sensor is really small even the full brake-outboard is only size of a fingernail. The board does not come with the header pins soldered on, but with mine the header pins came with it at least so I just had to solder them on.<\/p>\n<p><strong>Disclaimer:<\/strong><br \/>\nWe do not take any responsibility for possible errors in the guide or errors that you might do wiring it up. Incorrect wiring can result in damaged sensor or damaged Raspberry PI.<\/p>\n<p><strong>Pieces we use in this example:<\/strong><\/p>\n<ul>\n<li>Raspberry PI 2 (or Raspberry PI 3)<\/li>\n<li>Cobbler and Cobbler cable<\/li>\n<li>Bread board<\/li>\n<li>15 k\u03a9 resistor \u00a0(x2).<\/li>\n<li>BMP180 sensor on GY68 brake-out board. (If you shop around then you can find this one for under $3 on Ali Express)<\/li>\n<li>WiringPI needs to be installed on the Raspberry PI -&gt;\u00a0<a href=\"http:\/\/wiringpi.com\/download-and-install\/\">See here<\/a>.<\/li>\n<li>I2CTools needs to be installed on the Raspberry PI and I2C needs to be enabled in the Raspberry PI settings.<\/li>\n<\/ul>\n<hr \/>\n<p><strong>If you are not familiar with breadboards, how to place a cobbler on the breadboard or need to know how to read the color codings on the resistors then click here bellow<\/strong><\/p>\n<p><a class=\"mb-button mb-style-glass mb-size-small mb-corners-default mb-text-style-default \" style=\"background-color: #2b7dc4;\" href=\"https:\/\/einhugur.com\/blog\/index.php\/understanding-your-breadboard-and-placement-of-raspberry-cobbler\/\">\u00a0<i class=\"fa fa-code-fork\"><\/i>\u00a0 Using breadboard<\/a> <a class=\"mb-button mb-style-glass mb-size-small mb-corners-default mb-text-style-default \" style=\"background-color: #2b7dc4;\" href=\"https:\/\/einhugur.com\/blog\/index.php\/basic-electronics\/resistor-color-codings\/\">\u00a0<i class=\"fa fa-reorder\"><\/i>\u00a0\u00a0 Resistor color codings<\/a><\/p>\n<hr \/>\n<p>To install the I2CTools you use the following command:<\/p>\n<blockquote><p>sudo apt-get\u00a0install i2c-tools<\/p><\/blockquote>\n<p>You need to enable\u00a0the i2c bus in the Raspberry PI settings, which you can do in the user interface if your running Jessie or if your on older system then you can do it in console.<\/p>\n<hr \/>\n<p><strong>Wiring up the board:<\/strong><\/p>\n<p>First we solder the header pins into the brake-out board as shown bellow:<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BMP180Soldered.png?ssl=1\"><img data-attachment-id=\"627\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/bmp180soldered\/\" data-orig-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Soldered.png?fit=400%2C266&amp;ssl=1\" data-orig-size=\"400,266\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"BMP180Soldered\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Soldered.png?fit=300%2C200&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Soldered.png?fit=400%2C266&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-627\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BMP180Soldered.png?resize=400%2C266&#038;ssl=1\" alt=\"BMP180Soldered\" width=\"400\" height=\"266\" srcset=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Soldered.png?w=400&amp;ssl=1 400w, https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Soldered.png?resize=300%2C200&amp;ssl=1 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Once the board has been soldered with header pins or wires then we are ready to wire up the sensor which we do as follows:<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sketch.png?ssl=1\"><img data-attachment-id=\"624\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/bmp180sketch\/\" data-orig-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sketch.png?fit=500%2C241&amp;ssl=1\" data-orig-size=\"500,241\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"BMP180Sketch\" data-image-description=\"\" data-medium-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sketch.png?fit=300%2C145&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sketch.png?fit=474%2C228&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-624\" src=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sketch.png?resize=474%2C228&#038;ssl=1\" alt=\"BMP180Sketch\" width=\"474\" height=\"228\" srcset=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sketch.png?w=500&amp;ssl=1 500w, https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BMP180Sketch.png?resize=300%2C145&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>The wiring is very simple as can be seen on the diagram above. We use the 15\u00a0k\u03a9 to lower the voltage on the I2C bus.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?ssl=1\"><img data-attachment-id=\"82\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/hc-sr501-sensor\/gpio-header\/\" data-orig-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?fit=440%2C870&amp;ssl=1\" data-orig-size=\"440,870\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"GPIO Header\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?fit=152%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?fit=440%2C870&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-medium wp-image-82\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header-152x300.png?resize=152%2C300&#038;ssl=1\" alt=\"GPIO Header\" width=\"152\" height=\"300\" srcset=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?resize=152%2C300&amp;ssl=1 152w, https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/09\/GPIO-Header.png?w=440&amp;ssl=1 440w\" sizes=\"(max-width: 152px) 100vw, 152px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>GPIO 2 here above is\u00a0a special GPIO pin that is also called SDA, you cannot choose any other pin for this.<br \/>\nGPIO 3 here above is\u00a0a special pin that is also called SCL, you cannot choose any other pin for this.<\/p>\n<p><strong>Sanity tests in console:<\/strong><\/p>\n<p>After you have connected everything and made sure that wiringPI, i2ctools are installed\u00a0that I2C is enabled in the Raspberry PI settings, then we are ready to do sanity tests in console.<\/p>\n<p>First thing is getting the address of the I2C device, which is in this case the analog converter board.<\/p>\n<p>To do that then we type:<\/p>\n<blockquote><p>sudo i2cdetect -y 1<\/p><\/blockquote>\n<p>This should show our device at 0x77.<\/p>\n<p>If you can see your sensor at address 0x77 then you are ready to start coding.<\/p>\n<hr \/>\n<p><strong>The Xojo code:<\/strong><\/p>\n<p><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BarometerUI.png?ssl=1\"><img data-attachment-id=\"630\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/barometerui\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BarometerUI.png?fit=605%2C576&amp;ssl=1\" data-orig-size=\"605,576\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"BarometerUI\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BarometerUI.png?fit=300%2C286&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BarometerUI.png?fit=474%2C451&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-630\" src=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BarometerUI.png?resize=474%2C451&#038;ssl=1\" alt=\"BarometerUI\" width=\"474\" height=\"451\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BarometerUI.png?w=605&amp;ssl=1 605w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/BarometerUI.png?resize=300%2C286&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Coding against this sensor is somewhat complicated but I have made it really simple as I created a Xojo module called BMP180 (see download link at bottom) that does all the hard work.\u00a0Using the module is as easy as follows:<\/p>\n<pre class=\"de1\"><span class=\"co2\">\/\/ Getting chip ID to verify all is ok:\nSub Action()\n Dim handle as Integer\n Dim value as Integer\n \n handle = BMP180.Setup(&amp;h77)\n \n if handle = -1 then\n MsgBox \"Failed I2CSetup\"\n return\n end if\n \n if handle &lt;&gt; -1 then\n \/\/ We expect 55 hex as the chio ID if everything is ok\n MsgBox(\"0x\" + Hex(BMP180.GetChipID(handle)))\n end if\nEnd Sub\n\n\/\/ Read temperature:\nSub Action()\n Dim handle as Integer\n Dim value as Integer\n \n handle = BMP180.Setup(&amp;h77)\n \n if handle = -1 then\n MsgBox \"Failed I2CSetup\"\n return\n end if\n \n if handle &lt;&gt; -1 then\n MsgBox(Format(BMP180.ReadTemperature(handle),\"#.0\") + \"\u00b0 C\")\n end if\nEnd Sub\n\n\/\/ Read pressure:\nSub Action()\n Dim handle as Integer\n Dim value as Integer\n \n handle = BMP180.Setup(&amp;h77)\n \n if handle = -1 then\n MsgBox \"Failed I2CSetup\"\n return\n end if\n \n if handle &lt;&gt; -1 then\n MsgBox(Format(BMP180.ReadPressure(handle,BMP180.Mode.STANDARD),\"#.0\"))\n end if\nEnd Sub\n\n\/\/ Read pressure ultra high res\nSub Action()\n Dim handle as Integer\n Dim value as Integer\n \n handle = BMP180.Setup(&amp;h77)\n \n if handle = -1 then\n MsgBox \"Failed I2CSetup\"\n return\n end if\n \n if handle &lt;&gt; -1 then\n MsgBox(Format(BMP180.ReadPressure(handle,BMP180.Mode.ULTRAHIGHRES),\"#.0\"))\n end if\nEnd Sub\n\n\/\/ Read pressure at sea level:\nSub Action()\n Dim handle as Integer\n Dim value as Integer\n Dim heightOverSeaLevel as Single = Val(tbHeightOverSeaLevel.Text)\n \n handle = BMP180.Setup(&amp;h77)\n \n if handle = -1 then\n MsgBox \"Failed I2CSetup\"\n return\n end if\n \n if handle &lt;&gt; -1 then\n MsgBox(Format(BMP180.ReadPressureAtSeaLevel(handle,BMP180.Mode.ULTRALOWPOWER,heightOverSeaLevel),\"#.0\"))\n end if\nEnd Sub\n\n<\/span><\/pre>\n<hr \/>\n<p>To get your current height above sea level then you can use this page here: <a href=\"https:\/\/www.mkompf.com\/trekka\/geoposition.php\">GEOPosition<\/a>.<\/p>\n<p>When testing the example then I found I was 221 meter above sea level which I used to calculate pressure at sea level.<\/p>\n<hr \/>\n<h5>Downloading the code:<\/h5>\n<p><a class=\"mb-button mb-style-glass mb-size-small mb-corners-default mb-text-style-default \" style=\"background-color: #2b7dc4;\" href=\"http:\/\/www.einhugur.com\/Downloads\/GPIO\/BMP180Barometer.zip\">\u00a0<i class=\"fa fa-download\"><\/i>\u00a0 Download source code<\/a><\/p>\n<hr \/>\n<p>Note that a better way to hook up the barometer is to use I2C logic converter than to use the 15k\u03a9 resistors, like for example:<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?ssl=1\"><img data-attachment-id=\"678\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/i2c3\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?fit=493%2C147&amp;ssl=1\" data-orig-size=\"493,147\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"I2C3\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?fit=300%2C89&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?fit=474%2C141&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-678\" src=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?resize=474%2C141&#038;ssl=1\" alt=\"I2C3\" width=\"474\" height=\"141\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?w=493&amp;ssl=1 493w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?resize=300%2C89&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>You can see more about that in our <a href=\"https:\/\/einhugur.com\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/\">Building I2C logic converter guide.<\/a><\/p>\n<p>Thats it for now!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this example we are going to connect to BMP180 barometer sensor, we will be using brake-out board called GY-68. This sensor is really small even the full brake-outboard is only size of a fingernail. The board does not come with the header pins soldered on, but with mine the header pins came with it &hellip; <a href=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">BMP180 Barometer sensor<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":94,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"spay_email":""},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Pd75nk-9X","jetpack-related-posts":[{"id":108,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/f85-vibration-sensor\/","url_meta":{"origin":617,"position":0},"title":"F85 Vibration sensor","date":"September 19, 2015","format":false,"excerpt":"In this example we are going to connect to\u00a0vibration sensor. This example is super easy after doing the infrared motion detection with the HC-SR501 in a previous example, since basically same code will work. I found this sensor to be excellent, it gives readings when I expect it to and\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628-225x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":137,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/ir-infrared-obstacle-reflection-photoelectric-sensor\/","url_meta":{"origin":617,"position":1},"title":"IR Infrared Obstacle Reflection Photoelectric Sensor","date":"September 20, 2015","format":false,"excerpt":"In this example we are going to connect to infrared obstacle reflection photoelectric sensor motion detection sensor. I am not going to deny it, I find this sensor to be awful rubbish. Without reading the data you can hook it up and see it when the 2nd green lights goes\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/IRSensor-e1442754741492-225x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":113,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/flame-sensor\/","url_meta":{"origin":617,"position":2},"title":"Flame sensor","date":"September 19, 2015","format":false,"excerpt":"In this example we are going to connect to flame\u00a0sensor. Programming for this sensor works on exactly the same principle as the\u00a0HC-SR501 infrared sensor and the F85 vibration sensor except the signal from this sensor comes inverted. As in it will send 1 when everything is all right and zero\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/FlameSensor-e1442681877884-225x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":128,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/dht11-and-dht22-humidity-temperature-sensors-3-pin-version\/","url_meta":{"origin":617,"position":3},"title":"DHT11 and DHT22 humidity & temperature sensors (3 pin version)","date":"September 20, 2015","format":false,"excerpt":"In this example we are going to connect\u00a0to DHT11 and or DHT22 humidity & temperature sensor. This sensor reads both the humidity and temperature. (This guide was updated on 24. Oct 2015, greatly improving the DHT11 device driver code and added DHT22 device driver code and wiring pictures for the\u2026","rel":"","context":"Similar post","img":{"alt_text":"DHT22 sensor","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/DHT22.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":840,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/rdm6300-125khz-rfid-reader\/","url_meta":{"origin":617,"position":4},"title":"RDM6300 125Khz RFID reader","date":"April 13, 2017","format":false,"excerpt":"In this example we are going to connect to RDM6300 RFID reader. The RDM6300\u00a0is for 125 kHz RF tags. This board uses UART (serial communication) but the protocol is fairly simple to deal with. The RDM6300 seen from back and front And the antenna that comes with it. Disclaimer: We\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2017\/04\/RFID125MainBoard.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":288,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/connecting-max7219_led_matrix-with-spi-bus\/","url_meta":{"origin":617,"position":5},"title":"Connecting MAX7219_LED_MATRIX with SPI bus","date":"October 21, 2015","format":false,"excerpt":"In this example we going to connect a\u00a0MAX7219_LED_MATRIX and control it with the SPI bus on the Raspberry PI. 8. Nov 2015 Important !! When I was working on next step in this to daisy chain more than one on same bus then I measured some extreme power usage at\u2026","rel":"","context":"Similar post","img":{"alt_text":"MAX7219_LED_MATRIX","src":"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX-e1445384705632.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/617"}],"collection":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=617"}],"version-history":[{"count":2,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/617\/revisions"}],"predecessor-version":[{"id":971,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/617\/revisions\/971"}],"up":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/94"}],"wp:attachment":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}