{"id":14716,"date":"2016-06-23T10:00:09","date_gmt":"2016-06-23T17:00:09","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=14716"},"modified":"2021-06-16T14:09:33","modified_gmt":"2021-06-16T21:09:33","slug":"pmod-monthly-july-beaglebone-black-rainbow-ruler","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/pmod-monthly-july-beaglebone-black-rainbow-ruler\/","title":{"rendered":"Pmod Monthly July: BeagleBone Black Rainbow Ruler"},"content":{"rendered":"<figure id=\"attachment_14722\" aria-describedby=\"caption-attachment-14722\" style=\"width: 472px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-14722\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Pmod-Rainbow-Ruler.jpg\" alt=\"Pmod Rainbow Ruler\" width=\"472\" height=\"280\" data-wp-pid=\"14722\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Pmod-Rainbow-Ruler.jpg 921w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Pmod-Rainbow-Ruler-600x356.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Pmod-Rainbow-Ruler-768x455.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Pmod-Rainbow-Ruler-800x474.jpg 800w\" sizes=\"auto, (max-width: 472px) 100vw, 472px\" \/><figcaption id=\"caption-attachment-14722\" class=\"wp-caption-text\">Figure 1: <a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW <\/a>front panel showing the RGB LED illuminated green in accordance with the y-axis experiencing close to 1 g of gravitational acceleration. Similarly, blue is paired with the x-axis and red is paired with the z-axis.<\/figcaption><\/figure>\n<p><a href=\"https:\/\/www.youtube.com\/playlist?list=PLSTiCUiN_BoLTVkl4PqO9kwnYwGBKnd03\">Pmod Monthly<\/a>\u00a0is our YouTube-hosted monthly video series that features cool projects using Digilent peripheral\u00a0modules, or\u00a0<a href=\"https:\/\/digilent.com\/shop\/pmod-peripheral-modules\/\">Pmods<\/a>. Each month, we offer the featured Pmods at a 30% discount\u00a0for the duration of that month\u00a0to encourage people to get their hands dirty and give these projects a try. And yes! The discount still applies on top of the\u00a0<a href=\"https:\/\/digilent.com\/shop\/pmod-peripheral-modules\/\">Pmod Summer Sale<\/a>!<\/p>\n<hr \/>\n<p><strong>Our featured project for the month of July is\u2026<\/strong><\/p>\n<hr \/>\n<p>The<a href=\"http:\/\/www.instructables.com\/id\/Raspberry-Pi-Rainbow-Ruler\/\"> Raspberry Pi Rainbow Ruler!<\/a> This project changes the color of an RGB LED depending on the acceleration measured by the <a href=\"https:\/\/digilent.com\/shop\/pmodacl2-3-axis-mems-accelerometer\/\">PmodACL2<\/a> MEMS accelerometer. The<a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\"> LabVIEW<\/a> front panel is also updated to reflect the measurements of the red, green, and blue colors as well as the expected LED color, as can be seen in Figure 1.<\/p>\n<p>In a <a href=\"https:\/\/digilent.com\/blog\/raspberry-pi-rainbow-ruler\/\">previous blog post<\/a>, Dharsan discussed the Raspberry Pi 2 version of this project. However, it will also work with the BeagleBone Black (BBB), so whichever handheld embedded Linux board you fancy, this project will work for you! And what&#8217;s more, the BBB could be used to illuminate the LED with a PWM signal, allowing for a wider range of colors. Check out <a href=\"http:\/\/www.instructables.com\/id\/Raspberry-Pi-Rainbow-Ruler\/?ALLSTEPS\">Dharsan\u2019s Instructable<\/a> on the Raspberry Pi 2 edition.<\/p>\n<figure id=\"attachment_14723\" aria-describedby=\"caption-attachment-14723\" style=\"width: 702px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-14723 size-large\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Rainbow-Ruler-code-1024x338.jpg\" alt=\"Rainbow Ruler code\" width=\"702\" height=\"232\" data-wp-pid=\"14723\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Rainbow-Ruler-code.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Rainbow-Ruler-code-600x198.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Rainbow-Ruler-code-768x254.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Rainbow-Ruler-code-800x264.jpg 800w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><figcaption id=\"caption-attachment-14723\" class=\"wp-caption-text\">Figure 2: LabVIEW code for the Raspberry Pi Rainbow Ruler project showing VIs for LINX and the PmodACL2.<\/figcaption><\/figure>\n<p>The hardware used includes a <a href=\"https:\/\/digilent.com\/shop\/labview-physical-computing-kit-for-raspberry-pi-2\/\">Raspberry Pi 2<\/a>, a\u00a0<a href=\"https:\/\/digilent.com\/shop\/pmodacl2-3-axis-mems-accelerometer\/\">PmodACL2<\/a>, an RGB LED, and a\u00a0<a href=\"https:\/\/digilent.com\/shop\/digilent-pcb-ruler\/\">Digilent PCB Ruler<\/a>. The software used is\u00a0<a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW <\/a>and <a href=\"https:\/\/www.labviewmakerhub.com\/doku.php?id=libraries:linx:start\">LabVIEW MakerHub LINX<\/a>, which provides easy-to-use LabVIEW VIs for interacting with the Raspberry Pi and other common embedded platforms like the BeagleBone Black.\u00a0The PmodACL2 is one of the many sensors offered in the <a href=\"https:\/\/digilent.com\/shop\/pmod-peripheral-modules\/\">Digilent Pmod line<\/a>. It uses the <a href=\"http:\/\/www.analog.com\/en\/products\/mems\/mems-accelerometers\/adxl362.html\">Analog Devices ADXL362<\/a> MEMS accelerometer chip, which is capable of up to 12 bits of resolution as well as useful features like activity\/inactivity monitoring and free-fall detection. In order to get the PmodACL2 working with LabVIEW, Dharsan has written a sub VI that targets the PmodACL2 for easy drag-and-drop into a larger program. A total of 12 Pmod sub VIs have been added to LINX, including the <a href=\"https:\/\/digilent.com\/shop\/pmodals-ambient-light-sensor\/\">PmodALS<\/a> ambient light sensor and <a href=\"https:\/\/digilent.com\/shop\/pmodgps-gps-receiver\/\">PmodGPS<\/a>. And more are being created all the time! Check out another one of Dharsan\u2019s Instructables on <a href=\"http:\/\/www.instructables.com\/id\/Plug-and-Play-Pmods-Using-LabVIEW\/\">Plug and Play Pmods<\/a> to see additional examples.<\/p>\n<figure id=\"attachment_14724\" aria-describedby=\"caption-attachment-14724\" style=\"width: 356px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-14724\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Pmod_ACL2.png\" alt=\"Pmod_ACL2\" width=\"356\" height=\"356\" data-wp-pid=\"14724\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Pmod_ACL2.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Pmod_ACL2-150x150.png 150w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Pmod_ACL2-300x300.png 300w\" sizes=\"auto, (max-width: 356px) 100vw, 356px\" \/><figcaption id=\"caption-attachment-14724\" class=\"wp-caption-text\">Figure 3: PmodACL2 3-axis MEMS accelerometer.<\/figcaption><\/figure>\n<p>In order to purchase the<a href=\"https:\/\/digilent.com\/shop\/pmodacl2-3-axis-mems-accelerometer\/\"> PmodACL2<\/a> at an\u00a0even further discounted price, you simply need to watch our Raspberry Pi Rainbow Ruler video that will be released on July 1st to discover the promo code. Once you have the code, simply enter it in during checkout from our\u00a0<a href=\"https:\/\/digilent.com\/shop\/\">store<\/a>\u00a0to receive an additional 30% off of the PmodACL2. In addition, we will be offering the PmodACL2 for only $10 with purchase of the <a href=\"https:\/\/digilent.com\/shop\/labview-physical-computing-kit-for-raspberry-pi-2\/\">LabVIEW Physical Computing Kit<\/a>. This means users can get LabVIEW Home, the Raspberry Pi 2 and PmodACL2 all for under $100!<\/p>\n<p>We hope you enjoy this project. Make sure to watch the video to see it in action! If you create your own version, please let us know in the comments below. We might even include it on our\u00a0<a href=\"http:\/\/reference.blog.digilentinc.com\/\">Wiki<\/a>\u00a0as a community project!<\/p>\n<p>Check out these links for some other community projects using the Digilent PmodACL2.<\/p>\n<p><a href=\"http:\/\/www.instructables.com\/id\/Float-a-Ping-Pong-Ball-at-Will\/?ALLSTEPS\">Floating Ping Pong Ball<\/a><\/p>\n<p><a href=\"http:\/\/www.digilentdesigncontest.com\/2015-eu-contest-entries.html\">mARM &#8211; Intelligent Arm<\/a><\/p>\n<p><a href=\"http:\/\/www.digilentdesigncontest.com\/2015-eu-contest-entries.html\">Assist Glove &#8211; A Patient Aid Device<\/a><\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-14716 jlk' data-task='like' data-post_id='14716' data-nonce='aa0ba4060c' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-14716 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-14716 jlk' data-task='unlike' data-post_id='14716' data-nonce='aa0ba4060c' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-14716 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-14716 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Talesa reveals the Pmod Monthly project for July!<\/p>\n","protected":false},"author":26,"featured_media":14723,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[38],"tags":[],"ppma_author":[4491],"class_list":["post-14716","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-expansion-modules"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/Rainbow-Ruler-code.jpg","authors":[{"term_id":4491,"user_id":26,"is_guest":0,"slug":"talesab","display_name":"Talesa Bleything","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/4ebebd593afbf3d758e9127934708634ab09aeaa7fcfcf6151f4e9ceb9cf6d0e?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/14716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=14716"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/14716\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/14723"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=14716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=14716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=14716"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=14716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}