{"id":4225,"date":"2024-12-30T12:27:39","date_gmt":"2024-12-30T20:27:39","guid":{"rendered":"https:\/\/www.donluc.com\/?p=4225"},"modified":"2024-12-30T12:27:39","modified_gmt":"2024-12-30T20:27:39","slug":"christmas-and-elecrow","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=4225","title":{"rendered":"Christmas and Elecrow"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4225-1\" width=\"720\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk4W-1.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk4W-1.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk4W-1.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #Arduino #Christmas #SantaClaus #Display #Elecrow #Project #Patreon #Electronics #Microcontrollers #IoT #Fritzing #Programming #Consultant<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk04a.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk04a.jpg\" alt=\"Christmas and Elecrow\" width=\"720\" height=\"738\" class=\"alignnone size-full wp-image-4228\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk04a.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk04a-293x300.jpg 293w\" 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\/2024\/12\/DL2412Mk04b.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk04b.jpg\" alt=\"Christmas and Elecrow\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-4229\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk04b.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk04b-300x200.jpg 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\/2024\/12\/DL2412Mk04c.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk04c.jpg\" alt=\"Christmas and Elecrow\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-4230\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk04c.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2024\/12\/DL2412Mk04c-300x200.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>Christmas &#8211; Santa Claus<\/strong><\/p>\n<p>Santa Claus is a legendary figure originating in Western Christian culture who is said to bring gifts during the late evening and overnight hours on Christmas Eve. Christmas elves are said to make the gifts in Santa&#8217;s workshop, while flying reindeer pull his sleigh through the air. The popular conception of Santa Claus originates from folklore traditions surrounding the 4th-century Christian bishop Saint Nicholas, the patron saint of children. Saint Nicholas became renowned for his reported generosity and secret gift-giving.<\/p>\n<p><strong>Tracking<\/strong><\/p>\n<p>A Servo that to track Santa Claus&#8217; yearly journey.<\/p>\n<p><strong>DL2412Mk04<\/strong><\/p>\n<p>1 x Crowduino Uno-SD<br \/>\n1 x Crowtail &#8211; Base Shield<br \/>\n1 x Crowtail &#8211; 9G Servo 2.0 (180 Degree Rotation)<br \/>\n1 x Crowtail &#8211; Linear Potentiometer &#8211; V2.0<br \/>\n1 x Crowtail &#8211; MP3 Player 2.0<br \/>\n1 x Crowtail &#8211; I2C LCD<br \/>\n1 x Crowtail &#8211; LED (Green)<br \/>\n1 x MicroSD 2 GB<br \/>\n1 x Insignia Speakers<br \/>\n1 x USB Battery Pack<br \/>\n1 x USB Mini-B Cable<\/p>\n<p><strong>Crowduino Uno-SD<\/strong><\/p>\n<p>SCL &#8211; A5<br \/>\nSDA &#8211; A4<br \/>\nVOL &#8211; A0<br \/>\nMP3 &#8211; 2<br \/>\nMP3 &#8211; 3<br \/>\nSER &#8211; 6<br \/>\nLEG &#8211; 5<br \/>\nVIN &#8211; +5V<br \/>\nGND &#8211; GND<\/p>\n<p><strong>DL2412Mk04p<\/strong><\/p>\n<p><strong>DL2412Mk04p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/****** Don Luc Electronics \u00a9 ******\r\nSoftware Version Information\r\nChristmas and Elecrow\r\nChristmas\r\nDL2412Mk04p.ino\r\nDL2412Mk04\r\n1 x Crowduino Uno-SD\r\n1 x Crowtail - Base Shield\r\n1 x Crowtail - 9G Servo 2.0 (180 Degree Rotation)\r\n1 x Crowtail - Linear Potentiometer - V2.0\r\n1 x Crowtail - MP3 Player 2.0\r\n1 x Crowtail - I2C LCD\r\n1 x Crowtail - LED (Green)\r\n1 x MicroSD 2 GB\r\n1 x Insignia Speakers\r\n1 x USB Battery Pack\r\n1 x USB Mini-B Cable\r\n*\/\r\n\r\n\/\/ Include the Library Code\r\n\/\/ Software Serial\r\n#include &lt;SoftwareSerial.h&gt;\r\n\/\/ MP3 Player\r\n#include &lt;MP3Player_KT403A.h&gt;\r\n\/\/ Servo\r\n#include&lt;Servo.h&gt;\r\n\/\/ Wire\r\n#include &lt;Wire.h&gt;\r\n\/\/ Liquid Crystal\r\n#include &quot;LiquidCrystal.h&quot;\r\n\r\n\/\/ Liquid Crystal\r\n\/\/ Connect via i2c\r\nLiquidCrystal lcd(0);\r\n\r\n\/\/ MP3 Player\r\nSoftwareSerial mp3(2, 3);\r\n\r\n\/\/ Linear Potentiometer\r\nint LinearPot = A0;\r\nint LinearPotValue = 0;\r\nint z = 0;\r\n\r\n\/\/ LED Green\r\nint LedGreen =  5;\r\n\/\/ LED Green On Off\r\nint zzz = 1;\r\n\r\n\/\/ Create servo object to control a servo\r\nServo myservo;\r\n\/\/ iServo\r\nint iServo = 6;\r\n\/\/ Servo zz\r\nint zz = 0;\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;Christmas&quot;;\r\n\r\nvoid loop() {\r\n\r\n  \/\/ Volume\r\n  isVolume();\r\n\r\n  \/\/ isServo\r\n  isServo();\r\n\r\n}\r\n<\/pre>\n<p><strong>getDisplay.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ getDisplay\r\n\/\/ Crowtail- I2C LCD\r\n\/\/ Display UID\r\nvoid isDisplayUID(){\r\n\r\n  \/\/ Set up the LCD&#039;s number of rows and columns: \r\n  lcd.begin(16, 2);\r\n  \/\/ Print a message to the LCD.\r\n  \/\/ Cursor\r\n  lcd.setCursor(0, 0);\r\n  lcd.print(&quot;Don Luc Electron&quot;);\r\n  \/\/ Cursor\r\n  lcd.setCursor(0, 1);\r\n  \/\/ Print a message to the LCD.\r\n  lcd.print( sver );\r\n\r\n}\r\n\/\/ isDisplay Green On\r\nvoid isDisplayGOn(){\r\n\r\n  \/\/ Print a message to the LCD\r\n  \/\/ Clear\r\n  lcd.clear();\r\n  \/\/ Cursor\r\n  lcd.setCursor(0, 0);\r\n  lcd.print(&quot;Christmas&quot;);\r\n  \/\/ Cursor\r\n  lcd.setCursor(0, 1);\r\n  \/\/ Print a message to the LCD\r\n  lcd.print( &quot;Led Green On&quot; );\r\n  \r\n}\r\n\/\/ isDisplay Green Off\r\nvoid isDisplayGOff(){\r\n\r\n  \/\/ Print a message to the LCD\r\n  \/\/ Clear\r\n  lcd.clear();\r\n  \/\/ Cursor\r\n  lcd.setCursor(0, 0);\r\n  lcd.print(&quot;Christmas&quot;);\r\n  \/\/ Cursor\r\n  lcd.setCursor(0, 1);\r\n  \/\/ Print a message to the LCD\r\n  lcd.print( &quot;Led Green Off&quot; );\r\n  \r\n}\r\n<\/pre>\n<p><strong>getServo.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Servo\r\n\/\/ isServo\r\nvoid isServo(){\r\n\r\n  \/\/ Servo zz\r\n  zz -= 1;\r\n\r\n  if ( zz == 0 ) {\r\n    \r\n    \/\/ Servo zz\r\n    zz = 100;\r\n\r\n    \/\/ LED Green On Off\r\n    if ( zzz == 1 ) { \/\/ Led Green On\r\n\r\n      \/\/ Led Green On\r\n      Serial.println(&quot;Led Green On&quot;);\r\n      digitalWrite(LedGreen, HIGH);\r\n      \/\/ Servo Write\r\n      myservo.write(-90);\r\n      \/\/ isDisplay Green On\r\n      isDisplayGOn();\r\n      zzz = 2;\r\n      \r\n    } else if ( zzz == 2 ) { \/\/ Led Green Off\r\n\r\n       \/\/ Led Green Off\r\n      Serial.println(&quot;Led Green Off&quot;);\r\n      digitalWrite(LedGreen, LOW);\r\n      \/\/ Servo Write\r\n      myservo.write(90);\r\n      \/\/ isDisplay Green Off\r\n      isDisplayGOff();\r\n      zzz = 1;\r\n      \r\n    }\r\n \r\n }\r\n\r\n}\r\n<\/pre>\n<p><strong>getVolume.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Volume\r\n\/\/ is Volume\r\nvoid isVolume(){\r\n\r\n  \/\/ Linear Potentiometer\r\n  \/\/ Allowable Volume values \u200b\u200bare 0 to 30\r\n  LinearPotValue = analogRead( LinearPot );\r\n  z = map(LinearPotValue, 0, 1023, 0, 30);\r\n  \/\/ Volume\r\n  SetVolume(z);\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 \r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/ Initialize the LED Green\r\n  pinMode(LedGreen, OUTPUT);      \r\n\r\n  \/\/ MP3 Player\r\n  \/\/ MP3 Player module is configured to talk at 9600 bauds\r\n  mp3.begin(9600);\r\n\r\n  \/\/ Small delay\r\n  delay(100);\r\n\r\n  \/\/ We configure the library to use the SD card\r\n  SelectPlayerDevice(0x02);\r\n\r\n  \/\/ Index of the song between 0 and 65535\r\n  \/\/ Play Loop\r\n  PlayLoop();\r\n\r\n  \/\/ Attaches the iServo\r\n  myservo.attach(iServo);\r\n\r\n  \/\/ Servo zz\r\n  zz = 101;\r\n  \r\n  \/\/ Display UID\r\n  isDisplayUID();\r\n\r\n  \/\/ Delay 5 Second\r\n  delay( 5000 );\r\n\r\n}\r\n<\/pre>\n<p>&#8212;&#8212;<\/p>\n<p><strong>People can contact us:<\/strong> https:\/\/www.donluc.com\/?page_id=1927<\/p>\n<p><strong>Electronics, IoT, Teacher, Instructor, R&#038;D and Consulting<\/strong><\/p>\n<ul>\n<li>Programming Language<\/li>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi, Arm, Silicon Labs, Espressif, Etc&#8230;)<\/li>\n<li>IoT<\/li>\n<li>Wireless (Radio Frequency, Bluetooth, WiFi, Etc&#8230;)<\/li>\n<li>Robotics<\/li>\n<li>Automation<\/li>\n<li>Camera and Video Capture Receiver Stationary, Wheel\/Tank and Underwater Vehicle<\/li>\n<li>Unmanned Vehicles Terrestrial and Marine<\/li>\n<li>Machine Learning<\/li>\n<li>Artificial Intelligence (AI)<\/li>\n<li>RTOS<\/li>\n<li>Sensors, eHealth Sensors, Biosensor, and Biometric<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<li>Consulting<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>Luc Paquin \u2013 Curriculum Vitae &#8211; 2024<\/strong><br \/>\nhttps:\/\/www.donluc.com\/luc\/<\/p>\n<p><strong>Web:<\/strong> https:\/\/www.donluc.com\/<br \/>\n<strong>Facebook:<\/strong> https:\/\/www.facebook.com\/neosteam.labs.9\/<br \/>\n<strong>YouTube:<\/strong> https:\/\/www.youtube.com\/@thesass2063<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\/<br \/>\n<strong>Patreon:<\/strong> https:\/\/patreon.com\/DonLucElectronics59<br \/>\n<strong>DFRobot:<\/strong> https:\/\/learn.dfrobot.com\/user-10186.html<br \/>\n<strong>Hackster.io:<\/strong> https:\/\/www.hackster.io\/neosteam-labs<br \/>\n<strong>Elecrow:<\/strong> https:\/\/www.elecrow.com\/share\/sharepj\/center\/no\/760816d385ebb1edc0732fd873bfbf13<br \/>\n<strong>TikTok:<\/strong> https:\/\/www.tiktok.com\/@luc.paquin8<br \/>\n<strong>Twitch:<\/strong> https:\/\/www.twitch.tv\/lucpaquin<br \/>\n<strong>LinkedIn:<\/strong> https:\/\/www.linkedin.com\/in\/jlucpaquin\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #DonLucElectronics #DonLuc #Arduino #Christmas #SantaClaus #Display #Elecrow #Project #Patreon #Electronics #Microcontrollers #IoT #Fritzing #Programming #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Christmas &#8211; Santa Claus Santa Claus is a legendary figure originating in Western Christian culture who is said to bring gifts during the late evening and overnight hours on Christmas Eve. Christmas elves are said &#8230; <a title=\"Christmas and Elecrow\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=4225\" aria-label=\"Read more about Christmas and Elecrow\">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":[75,50,49,38,368,59,115,5,138,287,58,10],"tags":[6,92,370,102,4,87,369,19,85,24,139,9,27,97,33,34,108],"class_list":["post-4225","post","type-post","status-publish","format-standard","hentry","category-servo","category-arduino","category-consultant","category-digitalelectronics","category-elecrow","category-fritzing","category-e-mentor","category-microcontrollers","category-patreon","category-program","category-arduino-programming","category-projects","tag-arduino","tag-battery","tag-christmas-and-elecrow","tag-components","tag-consultant","tag-display","tag-elecrow","tag-electronics","tag-fritzing","tag-microcontroller","tag-patreon","tag-programming","tag-projects-2","tag-servo","tag-technology","tag-video-blog","tag-vlog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4225","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=4225"}],"version-history":[{"count":2,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4225\/revisions"}],"predecessor-version":[{"id":4510,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4225\/revisions\/4510"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}