{"id":288,"date":"2015-10-21T00:31:08","date_gmt":"2015-10-21T00:31:08","guid":{"rendered":"https:\/\/einhugur.com\/blog\/?page_id=288"},"modified":"2016-05-01T19:35:14","modified_gmt":"2016-05-01T19:35:14","slug":"connecting-max7219_led_matrix-with-spi-bus","status":"publish","type":"page","link":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/connecting-max7219_led_matrix-with-spi-bus\/","title":{"rendered":"Connecting MAX7219_LED_MATRIX with SPI bus"},"content":{"rendered":"<h2>In this example we going to connect a\u00a0MAX7219_LED_MATRIX and control it with the SPI bus on the Raspberry PI.<\/h2>\n<blockquote><p><strong>8. Nov 2015 Important !!<br \/>\nWhen 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 startup when the Raspberry PI\u00a0<\/strong><b>booted until the application was running. If you have big power supply then you should be ok with one such display,\u00a0don&#8217;t try to daisy chain for now, I had 2,5 A power supply. This guide will be updated when I have tackled this problem.<\/b><\/p><\/blockquote>\n<p>Dealing with this one in only Xojo code turned out to be a bit hellish. So I ended up with making a plugin which acts as device driver for the LED_MATRIX.\u00a0The plugin comes free of charge for everyone.<\/p>\n<p>I had hellish time doing this example as I started out with two such displays, one was completely broken and the other would not turn on one of its rows. But then I found the fault in it and repaired it with a little bit of\u00a0soldering.<\/p>\n<p><span style=\"color: #808080;\">In theory the plugin supports chaining up to 8 such matrixes on the same SPI bus and controlling them all. But I could not test this at this time because the second display was totally bad, I will test and revisit chaining once I get more such matrix displays.<\/span><\/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<h5><strong>Pieces we use are:<\/strong><\/h5>\n<ul>\n<li>Raspberry PI 2<\/li>\n<li>Cobbler and Cobbler cable<\/li>\n<li>Bread board<\/li>\n<li>MAX7219_LED_MATRIX.\u00a0<span style=\"color: #808080;\">(Those matrixes are cheap, I am getting them for $15,5 for 10 of them from store called Advanced Tech on Aliexpress, thats only $1,55 a piece if buying bulk and bulk buy gets you free shipping usually too)<\/span><\/li>\n<li>Einhugur\u00a0<a href=\"https:\/\/einhugur.com\/einhugurcloud\/index.php\/s\/FEBrt0bqeNhSNSW\">PIDevice_MAX7219_LED_MATRIX<\/a> plugin for Xojo, this is a free plugin (Note that the plugin requires WiringPI to be installed on the machine)<\/li>\n<\/ul>\n<p><strong>If you are not familiar with working with a breadboard or on how to place a cobbler on the breadboard then click here bellow<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/einhugur.com\/blog\/index.php\/understanding-your-breadboard-and-placement-of-raspberry-cobbler\/\">Understanding your breadboard and placement of Raspberry cobbler<\/a><\/li>\n<\/ul>\n<h5><strong>Wiring the LED matrix.<\/strong><\/h5>\n<p>We will just be wiring one for now, but you can see on top of the matrix that there are more pins to daisy chain more than one, which we will attempt in a update later when I get more matrixes.<\/p>\n<figure id=\"attachment_290\" aria-describedby=\"caption-attachment-290\" style=\"width: 480px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX-e1445384705632.jpg?ssl=1\"><img data-attachment-id=\"290\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/connecting-max7219_led_matrix-with-spi-bus\/max7219_led_matrix\/\" data-orig-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX-e1445384705632.jpg?fit=480%2C640&amp;ssl=1\" data-orig-size=\"480,640\" 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;1445381942&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;500&quot;,&quot;shutter_speed&quot;:&quot;0.058823529411765&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;6&quot;}\" data-image-title=\"MAX7219_LED_MATRIX\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX-e1445384705632.jpg?fit=225%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX-e1445384705632.jpg?fit=474%2C632&amp;ssl=1\" loading=\"lazy\" class=\"size-full wp-image-290\" src=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX-e1445384705632.jpg?resize=474%2C632&#038;ssl=1\" alt=\"MAX7219_LED_MATRIX\" width=\"474\" height=\"632\" srcset=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX-e1445384705632.jpg?w=480&amp;ssl=1 480w, https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX-e1445384705632.jpg?resize=225%2C300&amp;ssl=1 225w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-290\" class=\"wp-caption-text\">MAX7219_LED_MATRIX<\/figcaption><\/figure>\n<p>To connect just one such LED matrix then we will be using the pins at bottom of it seen on the picture above.<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_Wiring.png?ssl=1\"><img data-attachment-id=\"292\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/connecting-max7219_led_matrix-with-spi-bus\/max7219_led_matrix_wiring\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_Wiring.png?fit=600%2C701&amp;ssl=1\" data-orig-size=\"600,701\" 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=\"MAX7219_LED_MATRIX_Wiring\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_Wiring.png?fit=257%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_Wiring.png?fit=474%2C554&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-292\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_Wiring.png?resize=474%2C554&#038;ssl=1\" alt=\"MAX7219_LED_MATRIX_Wiring\" width=\"474\" height=\"554\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_Wiring.png?w=600&amp;ssl=1 600w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_Wiring.png?resize=257%2C300&amp;ssl=1 257w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>We connect as follows:<\/p>\n<p><strong> VCC<\/strong> to 5V (Red wire)<br \/>\n<strong>GND<\/strong> to GND (Blue wire)<br \/>\n<strong>DIN<\/strong> to MOSI (Black wire) (MOSI is listed as GPIO10 <span style=\"color: #999999;\">(orange marked)<\/span> on the image bellow but MOSI on the Cobbler.<br \/>\n<strong>CS<\/strong> to CE0 (White wire) (CS is listed as GPIO8 <span style=\"color: #808080;\">(orange marked)<\/span> on the image bellow but CE0 on the Cobbler)<br \/>\n<strong>CLK<\/strong> to SCLK (Purple wire) (SCLK is listed as GPIO11\u00a0(orange marked)\u00a0on the image bellow but SCLK on the cobbler)<\/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=\"size-medium wp-image-82 alignnone\" 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<h1><strong>The Xojo code:<\/strong><\/h1>\n<p>Note that the plugin\u00a0\u00a0PIDevice_MAX7219_LED_MATRIX.rbplugin needs to be installed in your Xojo Plugin directory, and WiringPI needs to be installed on your Raspberry PI.<\/p>\n<p>We put 3 buttons on a window, &#8220;Display the letter A&#8221;, &#8220;Display frame&#8221;, &#8220;Clear&#8221;, and a Slider control with a label infant of it &#8220;Intensity:&#8221;,<\/p>\n<p style=\"padding-left: 30px;\">Set slider Line step and Page step to 1.<br \/>\nSet Slider Minimum to 1<br \/>\nSet slider Value to 3<br \/>\nSet slider Maximum to 15<\/p>\n<p>The open event of the\u00a0window:<\/p>\n<pre lang=\"xojo\">Sub Open()\r\n PIMatrix = new PIDevice_MAX7219_LED_MATRIX(1)\r\n \r\n if not PIMatrix.Initialize() then\r\n PushButton1.Enabled = false\r\n PushButton2.Enabled = false\r\n PushButton3.Enabled = false\r\n \r\n MsgBox \"Could not open SPI port\"\r\n end if\r\n \r\nEnd Sub<\/pre>\n<p>Action event for the &#8220;Display the letter A&#8221; button:<\/p>\n<pre lang=\"xojo\">Sub Action()\r\n PIMatrix.SendASCIILetter(1,Asc(\"A\"))\r\nEnd Sub<\/pre>\n<p>Action event for the &#8220;Display frame&#8221; button:<\/p>\n<pre lang=\"xojo\">Sub Action()\r\n Dim symbol as new PIDevice_MAX7219_8x8Symbol()\r\n \r\n \/\/ Generate our symbol which will be just a simple frame\r\n for y as Integer = 0 to 7\r\n for x as Integer = 0 to 7\r\n if y = 0 or y = 7 or x = 0 or x = 7 then\r\n symbol.Part(x,y) = true\r\n end if\r\n next\r\n next\r\n \r\n PIMatrix.SendSymbol(1,symbol)\r\nEnd Sub<\/pre>\n<p>Action event for the &#8220;Clear&#8221; button:<\/p>\n<pre lang=\"xojo\">Sub Action()\r\n PIMatrix.Clear(1)\r\nEnd Sub<\/pre>\n<p>ValueChanged\u00a0event for the\u00a0slider:<\/p>\n<pre lang=\"xojo\">Sub ValueChanged()\r\n PIMatrix.SetIntensity(me.Value)\r\nEnd Sub<\/pre>\n<h2>Preparing the Raspberry PI<\/h2>\n<p>To be able to run this example then you need to prepare your Raspberry PI.<\/p>\n<ul>\n<li>WiringPI must be installed. \u00a0<a href=\"http:\/\/wiringpi.com\/download-and-install\/\">See here how to do that<\/a><\/li>\n<li>SPI must be enabled on the Raspberry PI.<br \/>\nTo do that then go in terminal and type sudo sudo raspi-config, then go in advanced and enable SPI and at end of that you\u00a0reboot.<\/li>\n<\/ul>\n<h2>Running\u00a0code<\/h2>\n<p>Running the code should give you something like this:<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_FRAME.jpg?ssl=1\"><img data-attachment-id=\"297\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/connecting-max7219_led_matrix-with-spi-bus\/max7219_led_matrix_frame\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_FRAME.jpg?fit=199%2C393&amp;ssl=1\" data-orig-size=\"199,393\" 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;1445382623&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;250&quot;,&quot;shutter_speed&quot;:&quot;0.05&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"MAX7219_LED_MATRIX_FRAME\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_FRAME.jpg?fit=152%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_FRAME.jpg?fit=199%2C393&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-297\" src=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_FRAME.jpg?resize=199%2C393&#038;ssl=1\" alt=\"MAX7219_LED_MATRIX_FRAME\" width=\"199\" height=\"393\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_FRAME.jpg?w=199&amp;ssl=1 199w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/MAX7219_LED_MATRIX_FRAME.jpg?resize=152%2C300&amp;ssl=1 152w\" sizes=\"(max-width: 199px) 100vw, 199px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>And this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/IMG_0159-e1445387976198.jpg?ssl=1\"><img data-attachment-id=\"298\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/connecting-max7219_led_matrix-with-spi-bus\/img_0159\/\" data-orig-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/IMG_0159-e1445387976198.jpg?fit=264%2C515&amp;ssl=1\" data-orig-size=\"264,515\" 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;1445382642&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;250&quot;,&quot;shutter_speed&quot;:&quot;0.058823529411765&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;6&quot;}\" data-image-title=\"IMG_0159\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/IMG_0159-e1445387976198.jpg?fit=154%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/IMG_0159-e1445387976198.jpg?fit=264%2C515&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-298\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/10\/IMG_0159-e1445387976198.jpg?resize=264%2C515&#038;ssl=1\" alt=\"IMG_0159\" width=\"264\" height=\"515\" srcset=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/IMG_0159-e1445387976198.jpg?w=264&amp;ssl=1 264w, https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2015\/10\/IMG_0159-e1445387976198.jpg?resize=154%2C300&amp;ssl=1 154w\" sizes=\"(max-width: 264px) 100vw, 264px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 startup when the Raspberry PI\u00a0booted &hellip; <a href=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/connecting-max7219_led_matrix-with-spi-bus\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Connecting MAX7219_LED_MATRIX with SPI bus<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":94,"menu_order":200,"comment_status":"open","ping_status":"closed","template":"","meta":{"spay_email":""},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Pd75nk-4E","jetpack-related-posts":[{"id":810,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/mfrc-522-rfid-reader-in-xojo-bridged-with-python\/","url_meta":{"origin":288,"position":0},"title":"MFRC-522 RFID reader in Xojo (Bridged with Python)","date":"October 29, 2016","format":false,"excerpt":"In this example we are going to connect to MFRC-522 RFID reader. The MFRC-533 is for 13.56 MHz RF tags. This board like many other boards need fairly complex driver and since I believe Xojo should be about productivity and not always having to start from scratch at re-inventing the\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/10\/MFRC-522Package.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":94,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/","url_meta":{"origin":288,"position":1},"title":"Xojo GPIO","date":"September 19, 2015","format":false,"excerpt":"Guides for GPIO in Xojo \u00a0Infrared motion detection (Updated 1. May 2016) Shows\u00a02 ways of coding: Using Interrupts or simple polling. Sensors: \u00a0HC-SR501,\u00a0ST-00082 Mini,\u00a0Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module Uses:\u00a0Basic GPIO Relay board In this example we \u00a0wire up a relay board and let your Xojo\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":102,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/relay-board\/","url_meta":{"origin":288,"position":2},"title":"Relay board","date":"September 19, 2015","format":false,"excerpt":"In this example we are going to wire up a relay board and let your Xojo code control it. A really board is normally used to control high voltage devices such as lights for example. In my case I will be using them \u00a0to remote control electric heaters in a\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/RelayWiring-300x225.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":674,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/","url_meta":{"origin":288,"position":3},"title":"I2C logic level converter - Building our own","date":"May 29, 2016","format":false,"excerpt":"In this example we are going to create a I2C logic level converter. Disclaimer: We 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. The problem: Some I2C\u2026","rel":"","context":"Similar post","img":{"alt_text":"Be careful about which wires are actually connected and which are not. The SCL wires are crossing others but you see by the dots which they actually connect to.","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2CScheme.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":551,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/pcf8591-analog-to-digital-braking-out-of-the-box\/","url_meta":{"origin":288,"position":4},"title":"PCF8591 Analog To Digital - Braking out of the box","date":"July 16, 2016","format":false,"excerpt":"\u00a0 Yes you heard me right we are braking out of the box! We will be doing some soldering and making our own PCF8591 breakout board. In this example we are going to connect to PCF8591 AD\/DA Converter without using a pre-made breakout board. When connecting to PCF8591 AD\/DA Converter\u2026","rel":"","context":"Similar post","img":{"alt_text":"PCF8591Part2SC","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/07\/PCF8591Part2SC.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":617,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/","url_meta":{"origin":288,"position":5},"title":"BMP180 Barometer sensor","date":"May 22, 2016","format":false,"excerpt":"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\u2026","rel":"","context":"Similar post","img":{"alt_text":"BMP180Soldered","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BMP180Soldered.png?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\/288"}],"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=288"}],"version-history":[{"count":11,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/288\/revisions"}],"predecessor-version":[{"id":373,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/288\/revisions\/373"}],"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=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}