{"id":2608,"date":"2021-02-16T11:44:39","date_gmt":"2021-02-16T19:44:39","guid":{"rendered":"http:\/\/www.donluc.com\/?p=2608"},"modified":"2021-02-16T11:44:39","modified_gmt":"2021-02-16T19:44:39","slug":"17-meditation-glasses-led-meditation-mk01","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=2608","title":{"rendered":"#17 &#8211; Meditation &#8211; Glasses LED Meditation &#8211; Mk01"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-2608-1\" width=\"720\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#donluc #glasses #glassesmeditation #glassesled #glassesledmeditation #neopixels #meditation #arduino #sparkfun #project #programming #software #electronics #microcontrollers #consultant #patreon #vlog #videoblog<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02a.png\" alt=\"Glasses LED Meditation\" width=\"720\" height=\"524\" class=\"alignnone size-full wp-image-2610\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02a.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02a-300x218.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02b.png\" alt=\"Glasses LED Meditation\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2611\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02b.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02b-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02c.png\" alt=\"Glasses LED Meditation\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2612\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02c.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02c-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02d.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02d.png\" alt=\"Glasses LED Meditation\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2613\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02d.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/02\/DL2102Mk02d-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p>Me, Luc suffered on 2013 a massive stroke that let me with an aphasia condition. In 2014 I could speak words and make myself understand by using the computer, and the good thing is that I did not lose my abilities. In 2015 Norma, my wife, was doing meditation and praying and an invocation or act that seeks to activate a rapport with an object of worship through deliberate communication. In the narrow sense, the term refers to an act of supplication or intercession directed towards a deity or a deified ancestor. More generally, prayer can also have the purpose of thanksgiving or praise, and in comparative religion is closely associated with more abstract forms of meditation and with charms or spells.<\/p>\n<p>In this view, the ultimate goal of prayer is to help train a person to focus on divinity through philosophy and intellectual contemplation (meditation). This approach was taken by the other medieval rationalists. Meditation engages thought, imagination, emotion, and desire. This mobilization of faculties is necessary in order to deepen our convictions of faith, prompt the conversion of our heart, and strengthen our will to follow. Some modalities of alternative medicine employ prayer. <\/p>\n<p><strong>Glasses LED Meditation <\/strong><\/p>\n<p>First Luc researched the scientific principles behind available biofeedback technologies, the ways to design and build the actual sensors Meditation Glasses LED. Arduino Pro Mini, RGB Smart NeoPixel, potentiometer, slide switch, USB LiPoly charger, lithium ion battery, wire, Etc&#8230; To find the solution yielding the best results, constructed proof-of-concept prototypes.<\/p>\n<p><strong>DL2102Mk02<\/strong><\/p>\n<p>1 x Arduino Pro Mini 328 &#8211; 5V\/16MHz<br \/>\n2 x Breadboard-friendly RGB Smart NeoPixel<br \/>\n3 x Panel Mount 1K potentiometer<br \/>\n3 x Knob<br \/>\n1 x Mountable Slide Switch<br \/>\n1 x USB LiPoly Charger &#8211; Single Cell<br \/>\n1 x Lithium Ion Battery &#8211; 400mAh<br \/>\nWire Solid Core &#8211; 22 AWG<br \/>\n1 x SparkFun FTDI Basic Breakout &#8211; 5V<br \/>\n1 x SparkFun Cerberus USB Cable<\/p>\n<p><strong>Arduino Pro Mini 328<\/strong><\/p>\n<p>PO0 &#8211; Analog A0<br \/>\nPO1 &#8211; Analog A1<br \/>\nPO2 &#8211; Analog A2<br \/>\nNP1 &#8211; Digital 6<br \/>\nVIN &#8211; +5V<br \/>\nGND &#8211; GND<\/p>\n<p><strong>DL2102Mk02p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ ***** Don Luc Electronics \u00a9 *****\r\n\/\/ Software Version Information\r\n\/\/ #17 - Meditation - Glasses LED - Mk01\r\n\/\/ 02-02\r\n\/\/ DL2102Mk02p.ino 17-01\r\n\/\/ 1 x Arduino Pro Mini 328 - 5V\/16MHz\r\n\/\/ 2 x Breadboard-friendly RGB Smart NeoPixel\r\n\/\/ 3 x Panel Mount 1K potentiometer\r\n\/\/ 3 x Knob\r\n\/\/ 1 x Mountable Slide Switch\r\n\/\/ 1 x USB LiPoly Charger - Single Cell\r\n\/\/ 1 x Lithium Ion Battery - 400mAh\r\n\/\/ Wire Solid Core - 22 AWG\r\n\/\/ 1 x SparkFun FTDI Basic Breakout - 5V\r\n\/\/ 1 x SparkFun Cerberus USB Cable\r\n\r\n\/\/ Include the Library Code\r\n\/\/ NeoPixel\r\n#include &lt;Adafruit_NeoPixel.h&gt;\r\n\r\n\/\/ NeoPixels\r\n#define PIN 6\r\n\/\/ How many NeoPixels are attached to the Arduino\r\n#define NUMPIXELS 2\r\nAdafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);\r\n\r\n\/\/ Panel Mount 1K potentiometer\r\n\/\/ Brightneed\r\nconst int sensorPin = A0;\r\n\/\/ Delay\r\nconst int sensorDelay = A1;\r\n\/\/ Number\r\nconst int sensorNumber = A2;\r\n\r\n\/\/ Variables\r\nint sensorValue = 0;         \/\/ the sensor value\r\nint sensorMin = 1023;        \/\/ minimum sensor value\r\nint sensorMax = 0;           \/\/ maximum sensor value\r\nint red = 0;\r\nint green = 0;\r\nint blue = 0;\r\nint x = 0;\r\nlong delayVal = 0;\r\nlong xp = 0;\r\nint y = 0;\r\nint z = 0;\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;17-01&quot;;\r\n\r\nvoid loop() {\r\n \r\n  z = analogRead(sensorNumber);\r\n  y = (z \/ 127);\r\n  \r\n  \/\/ range value:\r\n  switch (y) {\r\n    case  0:\r\n      \/\/ Blue\r\n      red = 0;\r\n      green = 102;\r\n      blue = 204;        \r\n      neopix();\r\n      break;\r\n    case 1:\r\n      \/\/ Yellow\r\n      red = 255;\r\n      green = 255;\r\n      blue = 0;        \r\n      neopix();\r\n      break;\r\n    case 2:\r\n      \/\/ Pink\r\n      red = 255;\r\n      green = 153;\r\n      blue = 203;        \r\n      neopix();\r\n      break;\r\n    case 3:\r\n      \/\/ White\r\n      red = 255;\r\n      green = 255;\r\n      blue = 255;        \r\n      neopix();\r\n      break;  \r\n    case 4:\r\n      \/\/ Green\r\n      red = 0;\r\n      green = 255;\r\n      blue = 0;        \r\n      neopix();\r\n      break;\r\n    case 5:\r\n      \/\/ Orange\r\n      red = 255;\r\n      green = 102;\r\n      blue = 0;        \r\n      neopix();\r\n      break;\r\n    case 6:\r\n      \/\/ Violet\r\n      red = 204;\r\n      green = 102;\r\n      blue = 204;        \r\n      neopix();\r\n      break;     \r\n    case 7:\r\n        xp = analogRead(sensorDelay);\r\n        delayVal = (1000 * xp);\r\n        \/\/ range value:\r\n        switch (x) {\r\n          case 0:\r\n            \/\/ Blue\r\n            red = 0;\r\n            green = 102;\r\n            blue = 204;        \r\n            neopix();\r\n            delay(delayVal); \/\/ Delay for a period of time (in milliseconds).\r\n            x = 1;\r\n            break;\r\n          case 1:\r\n            \/\/ Yellow\r\n            red = 255;\r\n            green = 255;\r\n            blue = 0;        \r\n            neopix();\r\n            delay(delayVal); \/\/ Delay for a period of time (in milliseconds).\r\n            x = 2;\r\n            break;\r\n          case 2:\r\n            \/\/ Pink\r\n            red = 255;\r\n            green = 153;\r\n            blue = 203;        \r\n            neopix();\r\n            delay(delayVal); \/\/ Delay for a period of time (in milliseconds).\r\n            x = 3;\r\n            break;\r\n          case 3:\r\n            \/\/ White\r\n            red = 255;\r\n            green = 255;\r\n            blue = 255;        \r\n            neopix();\r\n            delay(delayVal); \/\/ Delay for a period of time (in milliseconds).\r\n            x = 4;\r\n            break;  \r\n          case 4:\r\n            \/\/ Green\r\n            red = 0;\r\n            green = 255;\r\n            blue = 0;        \r\n            neopix();\r\n            delay(delayVal); \/\/ Delay for a period of time (in milliseconds).\r\n            x = 5;\r\n            break;\r\n          case 5:\r\n            \/\/ Orange\r\n            red = 255;\r\n            green = 102;\r\n            blue = 0;        \r\n            neopix();\r\n            delay(delayVal); \/\/ Delay for a period of time (in milliseconds).\r\n            x = 6;\r\n            break;\r\n          case 6:\r\n            \/\/ Violet\r\n            red = 204;\r\n            green = 102;\r\n            blue = 204;        \r\n            neopix();\r\n            delay(delayVal); \/\/ Delay for a period of time (in milliseconds).\r\n            x = 0;\r\n            break;      \r\n          }\r\n          break; \r\n  }\r\n\r\n}\r\n<\/pre>\n<p><strong>getNeopix.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Neopix\r\nvoid neopix() {\r\n  \r\n  for(int i=0; i&lt;NUMPIXELS; i++){\r\n \r\n     \/\/ read the sensor:\r\n    sensorValue = analogRead(sensorPin);\r\n\r\n    \/\/ apply the calibration to the sensor reading\r\n    sensorValue = map(sensorValue, sensorMin, sensorMax, 0, 255);\r\n\r\n    \/\/ in case the sensor value is outside the range seen during calibration\r\n    sensorValue = constrain(sensorValue, 0, 255); \r\n    \r\n    \/\/ pixels.Color takes RGB values, from 0,0,0 up to 255,255,255\r\n    pixels.setBrightness( sensorValue );\r\n    pixels.setPixelColor(i, pixels.Color(red,green,blue)); \r\n    \/\/ This sends the updated pixel color to the hardware.\r\n    pixels.show(); \r\n    \/\/ Delay for a period of time (in milliseconds).\r\n    delay(50); \r\n    \r\n  }\r\n  \r\n}\r\n<\/pre>\n<p><strong>setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Setup\r\nvoid setup() {\r\n  \r\n    \/\/ This initializes the NeoPixel library\r\n    pixels.begin();\r\n    \r\n}\r\n<\/pre>\n<p><strong>People can contact us:<\/strong> https:\/\/www.donluc.com\/?page_id=1927<\/p>\n<p><strong>Technology Experience<\/strong><\/p>\n<ul>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc&#8230;)<\/li>\n<li>Robotics<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<li>Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc&#8230;)<\/li>\n<li>Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc&#8230;)<\/li>\n<li>Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc&#8230;)<\/li>\n<li>Social Media Programming &#038; Integration (Facebook, Twitter, YouTube, Pinterest, etc&#8230;)<\/li>\n<li>Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc&#8230;)<\/li>\n<li>Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc&#8230;)<\/li>\n<li>eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc&#8230;)<\/li>\n<\/ul>\n<p><strong>Instructor<\/strong><\/p>\n<ul>\n<li>PIC Microcontrollers<\/li>\n<li>Arduino<\/li>\n<li>Raspberry Pi<\/li>\n<li>Espressif<\/li>\n<li>Robotics<\/li>\n<li>DOS, Windows, OSX, Linux, iOS, Android, Multi-OS<\/li>\n<li>Linux-Apache-PHP-MySQL<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>J. Luc Paquin \u2013 Curriculum Vitae<\/strong><br \/>\nhttps:\/\/www.donluc.com\/DLE\/LucPaquinCVEngMk2021a.pdf<\/p>\n<p><strong>Web:<\/strong> https:\/\/www.donluc.com\/<br \/>\n<strong>Web:<\/strong> http:\/\/www.jlpconsultants.com\/<br \/>\n<strong>Web:<\/strong> https:\/\/www.donluc.com\/DLE\/<br \/>\n<strong>Web:<\/strong> https:\/\/www.donluc.com\/DLHackster\/<br \/>\n<strong>Web:<\/strong> https:\/\/www.hackster.io\/neosteam-labs<br \/>\n<strong>Patreon:<strong\/> https:\/\/www.patreon.com\/DonLucElectronics<br \/>\n<strong>Facebook:<\/strong> https:\/\/www.facebook.com\/neosteam.labs.9\/<br \/>\n<strong>YouTube:<\/strong> https:\/\/www.youtube.com\/channel\/UC5eRjrGn1CqkkGfZy0jxEdA<br \/>\n<strong>Twitter:<\/strong> https:\/\/twitter.com\/labs_steam<br \/>\n<strong>Pinterest:<\/strong> https:\/\/www.pinterest.com\/NeoSteamLabs\/<br \/>\n<strong>Instagram:<\/strong> https:\/\/www.instagram.com\/neosteamlabs\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #donluc #glasses #glassesmeditation #glassesled #glassesledmeditation #neopixels #meditation #arduino #sparkfun #project #programming #software #electronics #microcontrollers #consultant #patreon #vlog #videoblog &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Me, Luc suffered on 2013 a massive stroke that let me with an aphasia condition. In 2014 I could speak words and make myself understand by using the computer, and the &#8230; <a title=\"#17 &#8211; Meditation &#8211; Glasses LED Meditation &#8211; Mk01\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=2608\" aria-label=\"Read more about #17 &#8211; Meditation &#8211; Glasses LED Meditation &#8211; Mk01\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[135,47,50,38,59,5,138,58,10,43],"tags":[86,6,102,4,19,85,140,136,24,9,27,109,33,34,108],"class_list":["post-2608","post","type-post","status-publish","format-standard","hentry","category-meditation","category-adafruit","category-arduino","category-digitalelectronics","category-fritzing","category-microcontrollers","category-patreon","category-arduino-programming","category-projects","category-sparkfun","tag-adafruit","tag-arduino","tag-components","tag-consultant","tag-electronics","tag-fritzing","tag-glasses-led-meditation","tag-meditation","tag-microcontroller","tag-programming","tag-projects-2","tag-sparkfun","tag-technology","tag-video-blog","tag-vlog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2608"}],"version-history":[{"count":25,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2608\/revisions"}],"predecessor-version":[{"id":4533,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2608\/revisions\/4533"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}