{"id":3301,"date":"2022-12-31T06:15:57","date_gmt":"2022-12-31T14:15:57","guid":{"rendered":"https:\/\/www.donluc.com\/?p=3301"},"modified":"2022-12-31T06:15:57","modified_gmt":"2022-12-31T14:15:57","slug":"programming-and-coding","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=3301","title":{"rendered":"Programming and Coding"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-3301-1\" width=\"720\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #SparkFunRedBoard #Coding #Movement #9DOF #Magnetometer #Accelerometer #Gyroscope #Arduino #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03a.png\" alt=\"Programming and Coding\" width=\"720\" height=\"524\" class=\"alignnone size-full wp-image-3303\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03a.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03a-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\/2022\/12\/DL2211Mk03b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03b.png\" alt=\"Programming and Coding\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-3304\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03b.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03b-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\/2022\/12\/DL2211Mk03c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03c.png\" alt=\"Programming and Coding\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-3305\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03c.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/12\/DL2211Mk03c-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>Programming and Coding<\/strong><\/p>\n<p>Most of the development in the world is all because of technology. Technology has grown much faster than everything else. All the technology is developed because of coding and programming. Programming and coding hold a vital role in development. It also includes developments from small projects to big projects.<\/p>\n<p>The programming vs coding difference lies in the very definition of both processes. Programming is the general process of creating a program that follows certain standards and performs a certain task. Coding, on the other hand, is a part of programming that deals strictly with converting the language we understand into binary commands for the machine.<\/p>\n<p>As we have discussed before in our discussion on programming vs coding, coding is just a part of programming. Yet, it still requires some time and skill to learn. Programming languages are very different from natural languages, and their syntax can sometimes be very confusing. The hardest languages are low-level ones that are close to actual processor instructions.<\/p>\n<p><strong>Programming<\/strong><\/p>\n<p>Programmers, on the other hand, need to review documentation and perform analysis besides coding which requires extra tools. You can find various code analysis tools, code generators, databases and testing frameworks in their inventory. Programming is passing the instructions and information to the computer that describes how a program should be carried out. Programming helps computers to perform certain actions. Various types of programming languages available in the market, like C, C++, Java, Python, etc., help develop new and creative technology.<\/p>\n<p><strong>Coding<\/strong><\/p>\n<p>Since coding is a simple act of translation, you don\u2019t need much to perform it. In most cases, a simple text editor would suffice. Coding is a process of establishing a successful communication between a software program and the computer hardware. The compilers translate the program into assembly language. The coding process converts the assembly language to Binary Coded Signals.<\/p>\n<p>Computer systems are electronic devices that rely on binary coded signals for communication and functioning. The two types of binary coded signals are o\u2019s and 1\u2019s. These signals are generated using switches and transistors. In the process of coding the high-level language and the assembly level languages are translated into binary codes and the communication between the computer hardware and software application is established.<\/p>\n<p><strong>Microcontrollers &#8211; Arduino  IDE<\/strong><\/p>\n<p>Since the launch of the Arduino open-source platform, the brand has established themselves at the center of an expansive open-source community. The Arduino ecosystem is comprised of a diverse combination of hardware and software. The versatility of Arduino and its simple interface makes it a leading choice for a wide range of users around the world from hobbyists, designers, and artists to product prototypes.<\/p>\n<p>Arduino code is written in C++ with an addition of special methods and functions, which we\u2019ll mention later on. C++ is a human-readable programming language. When you create a &#8220;Sketch&#8221;, the name given to Arduino code files. The Arduino Integrated Development Environment (IDE) is the main text editing program used for Arduino programming. It is where you\u2019ll be typing up your code before uploading it to the board you want to program. Arduino coding it is processed and compiled to machine language.<\/p>\n<p><strong>DL2211Mk03<\/strong><\/p>\n<p>1 x SparkFun RedBoard Qwiic<br \/>\n1 x SparkFun Micro OLED (Qwiic)<br \/>\n1 x Qwiic Cable &#8211; 100mm<br \/>\n1 x SparkFun 9 Degrees of Freedom &#8211; Sensor Stick<br \/>\n1 x SparkFun Cerberus USB Cable<\/p>\n<p><strong>SparkFun RedBoard Qwiic<\/strong><\/p>\n<p>SDA &#8211; Analog A4<br \/>\nSCL &#8211; Analog A5<br \/>\nVIN &#8211; +3.3V<br \/>\nGND &#8211; GND<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>DL2211Mk03p.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\nProject #25 - Movement - 9-DOF - Mk04\r\n25-04\r\nDL2210Mk06p.ino\r\n1 x SparkFun RedBoard Qwiic\r\n1 x SparkFun Micro OLED (Qwiic)\r\n1 x Qwiic Cable - 100mm\r\n1 x SparkFun 9 Degrees of Freedom - Sensor Stick\r\n1 x SparkFun Cerberus USB Cable\r\n*\/\r\n\r\n\/\/ Include the Library Code\r\n\/\/ Two Wire Interface (TWI\/I2C)\r\n#include &lt;Wire.h&gt;\r\n\/\/ SparkFun Micro OLED\r\n#include &lt;SFE_MicroOLED.h&gt;\r\n\/\/ Includes and variables for IMU integration\r\n\/\/ Accelerometer\r\n#include &lt;ADXL345.h&gt;\r\n\/\/ Magnetometer\r\n#include &lt;HMC58X3.h&gt;\r\n\/\/ MEMS Gyroscope\r\n#include &lt;ITG3200.h&gt;\r\n\/\/ Debug\r\n#include &quot;DebugUtils.h&quot;\r\n\/\/ FreeIMU\r\n#include &lt;CommunicationUtils.h&gt;\r\n#include &lt;FreeIMU.h&gt;\r\n\r\n\/\/ Set the FreeIMU object\r\nFreeIMU my3IMU = FreeIMU();\r\n\r\n\/\/ Yaw Pitch Roll\r\nfloat ypr[3];\r\nfloat Yaw = 0;\r\nfloat Pitch = 0;\r\nfloat Roll = 0;\r\n\r\n\/\/ SparkFun Micro OLED\r\n#define PIN_RESET 9\r\n#define DC_JUMPER 1\r\n\/\/ I2C declaration\r\nMicroOLED oled(PIN_RESET, DC_JUMPER);\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;25-04&quot;;\r\n\r\nvoid loop() {\r\n\r\n  \/\/ isFreeIMU\r\n  isFreeIMU();\r\n  \r\n  \/\/ Micro OLED\r\n  isMicroOLED();\r\n\r\n  \/\/ One delay in between reads\r\n  delay(1000);\r\n  \r\n}\r\n<\/pre>\n<p><strong>getFreeIMU.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ FreeIMU\r\n\/\/ isFreeIMU\r\nvoid isFreeIMU(){\r\n\r\n  \/\/ FreeIMU\r\n  \/\/ Yaw Pitch Roll\r\n  my3IMU.getYawPitchRoll(ypr);\r\n  \/\/ Yaw\r\n  Yaw = ypr[0];\r\n  \/\/ Pitch\r\n  Pitch = ypr[1];\r\n  \/\/ Roll\r\n  Roll = ypr[2];\r\n\r\n}\r\n<\/pre>\n<p><strong>getMicroOLED.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ SparkFun Micro OLED\r\n\/\/ Setup Micro OLED\r\nvoid isSetupMicroOLED() {\r\n\r\n  \/\/ Initialize the OLED\r\n  oled.begin();\r\n  \/\/ Clear the display&#039;s internal memory\r\n  oled.clear(ALL);\r\n  \/\/ Display what&#039;s in the buffer (splashscreen)\r\n  oled.display();\r\n\r\n  \/\/ Delay 1000 ms\r\n  delay(1000);\r\n\r\n  \/\/ Clear the buffer.\r\n  oled.clear(PAGE);\r\n  \r\n}\r\n\/\/ Micro OLED\r\nvoid isMicroOLED() {\r\n\r\n  \/\/ Text Display FreeIMU\r\n  \/\/ Clear the display\r\n  oled.clear(PAGE);\r\n  \/\/ Set cursor to top-left\r\n  oled.setCursor(0, 0);\r\n  \/\/ Set font to type 0\r\n  oled.setFontType(0);\r\n  \/\/ FreeIMU\r\n  oled.print(&quot;FreeIMU&quot;);\r\n  oled.setCursor(0, 12);\r\n  \/\/ Yaw\r\n  oled.print(&quot;Y: &quot;);\r\n  oled.print(Yaw);\r\n  oled.setCursor(0, 25);\r\n  \/\/ Pitch\r\n  oled.print(&quot;P: &quot;);\r\n  oled.print(Pitch);\r\n  oled.setCursor(0, 39);\r\n  \/\/ Roll\r\n  oled.print(&quot;R: &quot;);\r\n  oled.print(Roll);\r\n  oled.display();\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  \/\/ Give display time to power on\r\n  delay(100);\r\n  \r\n  \/\/ Set up I2C bus\r\n  Wire.begin();\r\n\r\n  \/\/ Setup Micro OLED\r\n  isSetupMicroOLED();\r\n\r\n  \/\/ Pause\r\n  delay(5);\r\n  \/\/ Initialize IMU\r\n  my3IMU.init();\r\n  \/\/ Pause\r\n  delay(5);\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>Technology Experience<\/strong><\/p>\n<ul>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc&#8230;)<\/li>\n<li>IoT<\/li>\n<li>Wireless (Radio Frequency, Bluetooth, WiFi, Etc&#8230;)<\/li>\n<li>Robotics<\/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>RTOS<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<\/ul>\n<p><strong>Instructor, E-Mentor, STEAM, and Arts-Based Training<\/strong><\/p>\n<ul>\n<li>IoT<\/li>\n<li>PIC Microcontrollers<\/li>\n<li>Arduino<\/li>\n<li>Raspberry Pi<\/li>\n<li>Espressif<\/li>\n<li>Robotics<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>Luc Paquin \u2013 Curriculum Vitae &#8211; 2023<\/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\/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; #DonLucElectronics #DonLuc #SparkFunRedBoard #Coding #Movement #9DOF #Magnetometer #Accelerometer #Gyroscope #Arduino #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Programming and Coding Most of the development in the world is all because of technology. Technology has grown much faster than everything else. All the technology is developed because of coding and programming. Programming &#8230; <a title=\"Programming and Coding\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=3301\" aria-label=\"Read more about Programming and Coding\">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":[50,49,38,59,5,58,43],"tags":[251,6,260,102,87,19,85,252,246,24,249,9,259,109,33,34],"class_list":["post-3301","post","type-post","status-publish","format-standard","hentry","category-arduino","category-consultant","category-digitalelectronics","category-fritzing","category-microcontrollers","category-arduino-programming","category-sparkfun","tag-accelerometer","tag-arduino","tag-coding","tag-components","tag-display","tag-electronics","tag-fritzing","tag-gyroscope","tag-magnetometer","tag-microcontroller","tag-movement","tag-programming","tag-programming-and-coding","tag-sparkfun","tag-technology","tag-video-blog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/3301","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=3301"}],"version-history":[{"count":3,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/3301\/revisions"}],"predecessor-version":[{"id":4358,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/3301\/revisions\/4358"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}