Video Blog
#17 – Meditation – Glasses LED Meditation – Mk01
——
#donluc #glasses #glassesmeditation #glassesled #glassesledmeditation #neopixels #meditation #arduino #sparkfun #project #programming #software #electronics #microcontrollers #consultant #patreon #vlog #videoblog
——
——
——
——
——
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.
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.
Glasses LED Meditation
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… To find the solution yielding the best results, constructed proof-of-concept prototypes.
DL2102Mk02
1 x Arduino Pro Mini 328 – 5V/16MHz
2 x Breadboard-friendly RGB Smart NeoPixel
3 x Panel Mount 1K potentiometer
3 x Knob
1 x Mountable Slide Switch
1 x USB LiPoly Charger – Single Cell
1 x Lithium Ion Battery – 400mAh
Wire Solid Core – 22 AWG
1 x SparkFun FTDI Basic Breakout – 5V
1 x SparkFun Cerberus USB Cable
Arduino Pro Mini 328
PO0 – Analog A0
PO1 – Analog A1
PO2 – Analog A2
NP1 – Digital 6
VIN – +5V
GND – GND
DL2102Mk02p.ino
// ***** Don Luc Electronics © ***** // Software Version Information // #17 - Meditation - Glasses LED - Mk01 // 02-02 // DL2102Mk02p.ino 17-01 // 1 x Arduino Pro Mini 328 - 5V/16MHz // 2 x Breadboard-friendly RGB Smart NeoPixel // 3 x Panel Mount 1K potentiometer // 3 x Knob // 1 x Mountable Slide Switch // 1 x USB LiPoly Charger - Single Cell // 1 x Lithium Ion Battery - 400mAh // Wire Solid Core - 22 AWG // 1 x SparkFun FTDI Basic Breakout - 5V // 1 x SparkFun Cerberus USB Cable // Include the Library Code // NeoPixel #include <Adafruit_NeoPixel.h> // NeoPixels #define PIN 6 // How many NeoPixels are attached to the Arduino #define NUMPIXELS 2 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); // Panel Mount 1K potentiometer // Brightneed const int sensorPin = A0; // Delay const int sensorDelay = A1; // Number const int sensorNumber = A2; // Variables int sensorValue = 0; // the sensor value int sensorMin = 1023; // minimum sensor value int sensorMax = 0; // maximum sensor value int red = 0; int green = 0; int blue = 0; int x = 0; long delayVal = 0; long xp = 0; int y = 0; int z = 0; // Software Version Information String sver = "17-01"; void loop() { z = analogRead(sensorNumber); y = (z / 127); // range value: switch (y) { case 0: // Blue red = 0; green = 102; blue = 204; neopix(); break; case 1: // Yellow red = 255; green = 255; blue = 0; neopix(); break; case 2: // Pink red = 255; green = 153; blue = 203; neopix(); break; case 3: // White red = 255; green = 255; blue = 255; neopix(); break; case 4: // Green red = 0; green = 255; blue = 0; neopix(); break; case 5: // Orange red = 255; green = 102; blue = 0; neopix(); break; case 6: // Violet red = 204; green = 102; blue = 204; neopix(); break; case 7: xp = analogRead(sensorDelay); delayVal = (1000 * xp); // range value: switch (x) { case 0: // Blue red = 0; green = 102; blue = 204; neopix(); delay(delayVal); // Delay for a period of time (in milliseconds). x = 1; break; case 1: // Yellow red = 255; green = 255; blue = 0; neopix(); delay(delayVal); // Delay for a period of time (in milliseconds). x = 2; break; case 2: // Pink red = 255; green = 153; blue = 203; neopix(); delay(delayVal); // Delay for a period of time (in milliseconds). x = 3; break; case 3: // White red = 255; green = 255; blue = 255; neopix(); delay(delayVal); // Delay for a period of time (in milliseconds). x = 4; break; case 4: // Green red = 0; green = 255; blue = 0; neopix(); delay(delayVal); // Delay for a period of time (in milliseconds). x = 5; break; case 5: // Orange red = 255; green = 102; blue = 0; neopix(); delay(delayVal); // Delay for a period of time (in milliseconds). x = 6; break; case 6: // Violet red = 204; green = 102; blue = 204; neopix(); delay(delayVal); // Delay for a period of time (in milliseconds). x = 0; break; } break; } }
getNeopix.ino
// Neopix void neopix() { for(int i=0; i<NUMPIXELS; i++){ // read the sensor: sensorValue = analogRead(sensorPin); // apply the calibration to the sensor reading sensorValue = map(sensorValue, sensorMin, sensorMax, 0, 255); // in case the sensor value is outside the range seen during calibration sensorValue = constrain(sensorValue, 0, 255); // pixels.Color takes RGB values, from 0,0,0 up to 255,255,255 pixels.setBrightness( sensorValue ); pixels.setPixelColor(i, pixels.Color(red,green,blue)); // This sends the updated pixel color to the hardware. pixels.show(); // Delay for a period of time (in milliseconds). delay(50); } }
setup.ino
// Setup void setup() { // This initializes the NeoPixel library pixels.begin(); }
People can contact us: https://www.donluc.com/?page_id=1927
Technology Experience
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc…)
- Robotics
- Research & Development (R & D)
- Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc…)
- Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc…)
- Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc…)
- Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc…)
- Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc…)
- Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc…)
- eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc…)
Instructor
- PIC Microcontrollers
- Arduino
- Raspberry Pi
- Espressif
- Robotics
- DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
- Linux-Apache-PHP-MySQL
Follow Us
J. Luc Paquin – Curriculum Vitae
https://www.donluc.com/DLE/LucPaquinCVEngMk2021a.pdf
Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
Web: https://www.donluc.com/DLE/
Web: https://www.donluc.com/DLHackster/
Web: https://www.hackster.io/neosteam-labs
Patreon: https://www.patreon.com/DonLucElectronics
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/
Don Luc
Don Luc Electronics – Patreon
——
#donluc #patreon #project #programming #software #electronics #microcontrollers #consultant #vlog
——
——
Don Luc Electronics – Patreon
The Alpha Geek – Geeking Out
Luc
Luc graduated from McGill University, Montréal, Québec with B.Sc. (Biology, Electronic), and a D.D.S. (Doctor of Dental Surgery). He worked in a private dental practice from 1983 to 1992, and started offering IT consulting services in 1983. He is a long time technology enthusiast and founder JLP Consultants, to service large corporate clients such as KPMG Peat Marwick, Fannie Mae (Federal National Mortgage Association), Chase Manhattan Bank foreign trade division (Hong Kong), and Warner Lambert. Over the past 38 years Luc has been working as an independent consultant in technology. He is an expert developer of software for desktop, web and mobile applications as well as a gifted integrator and designer of electronic and robotic hardware of all kind.
Aphasia
September 25th of 2013, Luc suffered a massive stroke that let him with an aphasia condition. Due to loss of blood flow or damaged tissue, sustained during the injury aphasia may become permanent. In a way it was good to be here because I received the best medical attention I could ever have. I had a long way to recover but I managed to improve a lot. I just have an aphasia condition that does not allow me to speak, I can speak words and make myself understand by using the computer, and the good thing is that I did not lose my abilities.
Project
I worked in project in electronics (Sensors, EMF Meters, Environmental (TVOC, eCO2, Temp, Humidity, Pressure and Altitude), Real Time Clock, microSD Card, GPS Receiver, MQ Gas Sensors, Antenna and PIR Motion Sensor, EVP, Ultrasonic Distance Sensor, Human Presence Sensor, Electret Microphone, Sound Detector, 9DOF, Audio Amplifier, Speaker, Geiger Radiation Sensor, Robotics (Unmanned Vehicles), Etc…) at young adult and middle age.
Patreon
Patreon is an American membership platform that provides business tools for content creators to run a subscription service. It helps creators and artists earn a monthly income by providing rewards and perks to their subscribers. Patreon charges a commission of 5 to 12 percent of creators’ monthly income, in addition to payment processing fees.
People can contact us: https://www.donluc.com/?page_id=1927
Technology Experience
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc…)
- Robotics
- Research & Development (R & D)
- Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc…)
- Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc…)
- Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc…)
- Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc…)
- Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc…)
- Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc…)
- eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc…)
Instructor
- PIC Microcontrollers
- Arduino
- Raspberry Pi
- Espressif
- Robotics
- DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
- Linux-Apache-PHP-MySQL
Follow Us
J. Luc Paquin – Curriculum Vitae
https://www.donluc.com/DLE/LucPaquinCVEngMk2021a.pdf
Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
Web: https://www.donluc.com/DLE/
Web: https://www.donluc.com/DLHackster/
Web: https://www.hackster.io/neosteam-labs
Patreon: https://www.patreon.com/DonLucElectronics
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/
Don Luc
Open ltr 2 all of u out there
——
#donluc #writing #electronics #microcontrollers #consultant #vlog
——
——
Today while I was doing some cleanup around the office I came across some letters and messages from people who had contacted me over the past few years either to ask for work or to ask to distribute some of my software products. I had kept them aside as a reminder on how not to do business. It is a pet peeve of mind that when you communicate on business purposes to do it properly and to write well and to try to do your best to use proper grammar and spelling.
I might be showing my age, but it does gets me very mad when I receive some business message that is either very badly written or written as it you are sending a SMS message, email or comments like the title of this post. There are no reason for either ones, especially the first one as nowadays spelling and grammar correctors are ubiquitous on all computer platforms. If somebody wants to find a job or wants to do business with someone it looks very bad on you when you send messages like that as the first impression you make to your prospective client, employer, or partner is one that you cannot even bother to put your thoughts down and write them properly.
Professionally I write thousands of words daily on various subjects and for various purposes, all of it with minimal editing and proofreading, so I am the first person guilty of grammatical and spelling mistakes, but when you come across as if you have no idea of what you are talking about due to poor writing skills or worse you consider business communication no more important than a quick SMS and Viber to your best buddies you will have problems going forward with any goals you might have in mind. This is not just for the younger generations out there, a lot of people of my generation suffer from the same problems.
I deal with people from all over the world daily and I do understand that if English is not your primary language, you might have some problems in communicating perfectly. I know from experience as English is not my mother tongue, French is. I have also spoken English since early childhood, and essentially have studied and worked in English since my late teens so English is my primary language these days, even though that at home now for the past 2-3 years we have switched from using English to using Spanish. I find the same problem with French and Spanish speaking people, that the quality of the written communication has dropped down dramatically over the past 20 years, when it should have increase a lot with all the spelling and grammar correction facilities we now have. It seems that people just don’t care anymore.
Wake up people, you have the tools to communicate in a better and more effective way. If you are too lazy to even take the few second to communicate effectively life will pass you by as where it counts people will think that you are too lazy to work effectively. Also take pride in you language as if you do not use it properly who will? For those like me who communicate mostly in languages that are own, take pride in learning it properly so that you can communicate and work effectively.
Take this advise seriously as we human can make something with our lives and progress with effective communications and those who do not even make the effort to do so will be left behind. It is not just an old consultant like me who says it, it is the entire business world. When faced to choose between two candidates, which one do you think a decision maker will select, the one that sounds like a professional or the one that sounds like some street gang member?
People can contact us: https://www.donluc.com/?page_id=1927
Technology Experience
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc…)
- Robotics
- Research & Development (R & D)
- Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc…)
- Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc…)
- Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc…)
- Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc…)
- Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc…)
- Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc…)
- eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc…)
Instructor
- PIC Microcontrollers
- Arduino
- Raspberry Pi
- Espressif
- Robotics
- DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
- Linux-Apache-PHP-MySQL
Follow Us
J. Luc Paquin – Curriculum Vitae
https://www.donluc.com/DLE/LucPaquinCVEngMk2021a.pdf
Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
Web: https://www.donluc.com/DLE/
Web: https://www.donluc.com/DLHackster/
Web: https://www.hackster.io/neosteam-labs
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/
Don Luc
Meditation
——
#donluc #meditation #electronics #microcontrollers #consultant #vlog
——
——
Luc
Luc graduated from McGill University, Montréal, Québec with B.Sc. (Biology, Electronic), and a D.D.S. (Doctor of Dental Surgery). He worked in a private dental practice from 1983 to 1992, and started offering IT consulting services in 1983. He is a long time technology enthusiast and founder JLP Consultants, to service large corporate clients such as KPMG Peat Marwick, Fannie Mae (Federal National Mortgage Association), Chase Manhattan Bank foreign trade division (Hong Kong), and Warner Lambert. Over the past 38 years Luc has been working as an independent consultant in technology. He is an expert developer of software for desktop, web and mobile applications as well as a gifted integrator and designer of electronic and robotic hardware of all kind.
Temporomandibular Joint Dysfunction
Luc is continuing education numerous certifications temporomandibular joint dysfunction (TMJD). TMJD is an umbrella term covering pain and dysfunction of the muscles of mastication and the temporomandibular joints. The most important feature is pain, followed by restricted mandibular movement, and noises from the temporomandibular joints during jaw movement. Although TMJD is not life-threatening, it can be detrimental to quality of life; this is because the symptoms can become chronic and difficult to manage. Examples include: headache, facial pain, migraine, tension headache, myofascial pain, pain elsewhere, such as the teeth or neck, diminished auditory acuity, etc…
Physiotherapy for TMJD may include the use of transcutaneous electrical nerve stimulation (TENS), which may override pain by stimulation of superficial nerve fibers and lead to pain reduction which extends after the time where the TENS is being actually being applied, possibly due to release of endorphins. Others recommend the use of ultrasound, theorized to produce tissue heating, alter blood flow and metabolic activity at a level that is deeper than possible with surface heat applications. There is tentative evidence that low level laser therapy may help with pain.
Relaxation techniques include progressive muscle relaxation and meditation. It has been suggested that TMJD involves increased sensitivity to external stimuli leading to an increased sympathetic response with cardiovascular and respiratory alterations. Relaxation techniques cause reduced sympathetic activity, including muscle relaxation and reducing sensitivity to external stimuli, and provoke a general sense of well being and reduced anxiety.
Aphasia
September 25th of 2013, Luc suffered a massive stroke that let him with an aphasia condition. Due to loss of blood flow or damaged tissue, sustained during the injury aphasia may become permanent. In a way it was good to be here because I received the best medical attention I could ever have. I had a long way to recover but I managed to improve a lot. I just have an aphasia condition that does not allow me to speak, I can speak words and make myself understand by using the computer, and the good thing is that I did not lose my abilities.
Meditation
Meditation is a practice where an individual uses a technique or focusing the mind on a particular object, thought, activity, song, or video to train attention and awareness, and achieve a mentally clear and emotionally calm and stable state. Luc has been in touch since that time and for the past years has been discussing a method of helping people that control meditation may significantly reduce stress, anxiety, depression, COVID-19, HIV, TMJD, aphasia, ADHD, cancer, and pain; and enhance peace, perception, self-concept, and well-being.
First, for the practice to be successful, one should dedicate the practice, and set out the goal of the meditation session. One may decide to either practice mindfulness of breathing while seated or standing or lying down or walking, or to alternate seated, standing, lying down and walking meditation. Then one may concentrate on the breath going through one’s nose: the pressure in the nostrils on each inhalation, and the feeling of the breath moving along the upper lip on each exhalation.
Scientifically Demonstrated Benefits
Meditators experienced in focused attention meditation showed a decrease in habitual responding recommends practice of 20 minutes twice per day, may illustrate a lessening of emotionally reactive and automatic responding behavior. It has been scientifically demonstrated that mindfulness of breathing enhances connectivity in the brain. The practice of focusing one’s attention changes the brain in ways to improve that ability over time; the brain grows in response to meditation. That practice of mindfulness meditation for two to six months by people undergoing long-term psychiatric or medical therapy could produce small improvements in anxiety, pain, or depression. A scientific statement that meditation may be a reasonable adjunct practice to help reduce the risk of cardiovascular diseases, with the qualification that meditation needs to be better defined in higher-quality clinical research of these disorders.
Deep Meditation System
First Luc researched the scientific principles behind available biofeedback technologies, the ways to design and build the actual sensors and then the vast array of commercially available medical sensor that were waiting to be integrated in a comprehensive solution. Hardware and software solution that uses various biosensors (EEG, ECG, EKG, TENS, EMS, pulse, skin resistance, skin temperature, dissolved blood oxygen, etc.) to facilitate deep meditation in patients. We did the preliminary research, tested various types of sensors to find the solution yielding the best results, constructed proof-of-concept prototypes, and planned production prototypes. 2005 – Meditation EEG, and 2015 – Meditation Glasses LED.
That product will have multiple versions that can be sold to consumers and health professionals alike. This control meditation may significantly reduce stress, anxiety, depression, COVID-19, HIV, TMJD, aphasia, ADHD, cancer, pain, etc… Enhance peace, perception, self-concept, and well-being.
People can contact us: https://www.donluc.com/?page_id=1927
Technology Experience
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc…)
- Robotics
- Research & Development (R & D)
- Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc…)
- Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc…)
- Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc…)
- Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc…)
- Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc…)
- Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc…)
- eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc…)
Instructor
- PIC Microcontrollers
- Arduino
- Raspberry Pi
- Espressif
- Robotics
- DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
- Linux-Apache-PHP-MySQL
Follow Us
J. Luc Paquin – Curriculum Vitae
https://www.donluc.com/DLE/LucPaquinCVEngMk2021a.pdf
Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
Web: https://www.donluc.com/DLE/
Web: https://www.donluc.com/DLHackster/
Web: https://www.hackster.io/neosteam-labs
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/
Don Luc
Project #16: Sound – Microphone SparkFun Sound Detector – Mk15
——
#donluc #microphone #sound #arduino #fritzing #sparkfun #project #programming #software #electronics #microcontrollers #consultant #vlog
——
——
——
——
——
Microphone
A microphone is a device a transducer that converts sound into an electrical signal. Microphones are used in many applications. They are also used in computers for recording voice, speech recognition, VoIP, and for non-acoustic purposes such as ultrasonic sensors or knock sensors.
Electret microphone is a type of electrostatic capacitor-based microphone, which eliminates the need for a polarizing power supply by using a permanently charged material. Unlike other condenser microphones, electret types require no polarizing voltage, but they normally contain an integrated preamplifier, which does require a small amount of power.
SparkFun Sound Detector
SparkFun Item: SEN-12642
The SparkFun Sound Detector is a small and very easy to use audio sensing board with three different outputs. The Sound Detector not only provides an audio output, but also a binary indication of the presence of sound, and an analog representation of its amplitude. The 3 outputs are simultaneous and independent, so you can use as many or as few as you want at once.
The envelope output allows you to easily read amplitude of sound by simply measuring the analog voltage. Gain can be adjusted with a through-hole resistor, to change the threshold of the binary output pin as well.
DL2101Mk03
1 x SparkFun RedBoard Qwiic
1 x SparkFun Sound Detector
3 x Jumper Wires 6in M/M
1 x Half-Size Breadboard
1 x SparkFun Cerberus USB Cable
SparkFun RedBoard Qwiic
MIC – Analog A0
VIN – +5V
GND – GND
DL2101Mk03p.ino
// ***** Don Luc Electronics © ***** // Software Version Information // Project #16: Sound - SparkFun Sound Detector - Mk15 // 01-03 // DL2101Mk03p.ino 16-15 // DL2101Mk03 // 1 x SparkFun RedBoard Qwiic // 1 x SparkFun Sound Detector // 3 x Jumper Wires 6in M/M // 1 x Half-Size Breadboard // 1 x SparkFun Cerberus USB Cable // Include the Library Code // Microphone unsigned int iMic = A0; // Sample window width in mS const int sampleWindow = 250; // Volume unsigned int iVol; // Peak-to-peak level unsigned int peakToPeak = 0; // Max - Min unsigned int signalMax = 0; unsigned int signalMin = 1024; // Convert to volts double volts = 0; // Software Version Information String sver = "16-15"; void loop() { // Microphone isMic(); }
getMic.ino
// getMic // is Microphone void isMic() { // Start of sample window unsigned long start = millis(); // Peak-to-peak level peakToPeak = 0; // Max - Min signalMax = 0; signalMin = 1024; // Collect data for 250 miliseconds while ( millis() - start < sampleWindow ) { iVol = analogRead( iMic ); // This is the max of the 10-bit ADC so this loop will include all readings if (iVol < 1024) { if (iVol > signalMax) { // Save just the max levels signalMax = iVol; } else if (iVol < signalMin) { // Save just the min levels signalMin = iVol; } } } // Max - Min = peak-peak amplitude peakToPeak = signalMax - signalMin; // Convert to volts volts = ( peakToPeak * 3.3 ) / 1024; // Serial Serial.println( volts ); }
setup.ino
// Setup void setup() { // Setup Serial Serial.begin (9600); }
People can contact us: https://www.donluc.com/?page_id=1927
Technology Experience
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc...)
- Robotics
- Research & Development (R & D)
- Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc...)
- Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc...)
- Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc...)
- Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc...)
- Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc...)
- Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc...)
- eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc...)
Instructor
- PIC Microcontrollers
- Arduino
- Raspberry Pi
- Espressif
- Robotics
- DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
- Linux-Apache-PHP-MySQL
Follow Us
J. Luc Paquin – Curriculum Vitae
https://www.donluc.com/DLE/LucPaquinCVEngMk2021a.pdf
Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
Web: https://www.donluc.com/DLE/
Web: https://www.donluc.com/DLHackster/
Web: https://www.hackster.io/neosteam-labs
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/
Don Luc
Project #16: Sound – SparkFun Qwiic MP3 Trigger – Mk14
——
#donluc #project #electronics #microcontrollers #sound #mp3 #sparkfun #consultant #vlog
——
——
——
SparkFun Qwiic MP3 Trigger
Sometimes you just need an MP3 to play. Whether it’s a theme song as you enter the room or a power song when you are working out. The SparkFun Qwiic MP3 Trigger takes care of all the necessary requirements, all you need to do is send a simple I2C command and listen to whatever is on your micro SD card. Utilizing our handy Qwiic system, no soldering is required to connect it to the rest of your system. However, we still have broken out 0.1″-spaced pins in case you prefer to use a breadboard.
When a USB-C cable is connected to the Qwiic MP3 Trigger the contents of the microSD card appears as a jump drive. Simply plug in the Qwiic MP3 Trigger and you’ll be transferring MP3s. Sound output is provided via a 3.5mm headphone jack or poke-home connector allowing an external speaker to be connected without soldering.
We’ve written an extensive Arduino library to make MP3 playing over I2C a breeze. Play tracks, change volume, play next/previous, check if track is playing, stop play, change EQ, and change I2C address are all supported.
- 3.3V
- Volume, EQ setting, and I2C address settings stored in non-volatile memory and loaded at each power-on.
- microSD supports 128MB to 32GB cards.
- Trigger pins 1, 2, 3, and 4.
- Up to 255 tracks can be loaded onto the SD card and triggered via the I2C interface.
- USB-C Connector.
- Qwiic Connector.
T001.mp3
To be, or not to be, that is the question: Whether ’tis nobler in the mind to suffer The slings and arrows of outrageous fortune, Or to take Arms against a Sea of troubles, And by opposing end them: to die, to sleep No more; and by a sleep, to say we end The heart-ache, and the thousand natural shocks That Flesh is heir to?
William Shakespeare – Hamlet
T002.mp3
Two things are infinite: the universe and human stupidity; and I’m not sure about the universe.
Albert Einstein
T003.mp3
If you go to bed at night without learning something new that day, your day is not complete.
Luc Paquin
T004.mp3
Exterminate!
Dalek
People can contact us: https://www.donluc.com/?page_id=1927
Technology Experience
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc…)
- Robotics
- Research & Development (R & D)
- Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc…)
- Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc…)
- Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc…)
- Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc…)
- Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc…)
- Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc…)
- eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc…)
Instructor
- PIC Microcontrollers
- Arduino
- Raspberry Pi
- Espressif
- Robotics
- DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
- Linux-Apache-PHP-MySQL
Follow Us
J. Luc Paquin – Curriculum Vitae
https://www.donluc.com/DLE/LucPaquinCVEngMk2021a.pdf
Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
Web: https://www.donluc.com/DLE/
Web: https://www.donluc.com/DLHackster/
Web: https://www.hackster.io/neosteam-labs
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/
Don Luc
Don Luc Electronics – Project
——
#donluc #project #programming #software #electronics #microcontrollers #consultant #vlog
——
——
——
——
——
Project
Don Luc Electronics websites that were thought to be useful to electronics engineers professionals, geek, hobbyists, hackers and makers. We are experts in designing and programming embedded systems using a wide variety of platforms and microcontrollers.
Whether your needs are a simple design using an off-the-shelf prototyping platform like the PIC microcontrollers, Arduino, Raspberry Pi, Espressif, or you need to integrate a microcontroller into a complex product we are here to help you. Robotics, basic circuit design, programming, the software and gaming. Hopefully it will provide you with a foundation of what you need to know to begin your hobby or career in electronics. We post tutorials regularly in a format that is easy to understand and includes all the information you need to complete a project.
Programming microcontrollers, PIC microcontrollers, Arduino, Raspberry Pi, Espressif, breadboard, solderable breadboard, 555, LED, photography, robotics, unmanned vehicles, lasers, sound, loudspeaker, musical instrument, synthesizer, microphone, microSD, microSD card, servo, stepper, gearmotor, motor, environment, deep meditation eye glasses, GPS, display, battery, lamps, etc…
This project is for everybody. We could sell kits with the parts of the project.
People can contact us: https://www.donluc.com/?page_id=1927
Technology Experience
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc…)
- Robotics
- Research & Development (R & D)
- Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc…)
- Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc…)
- Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc…)
- Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc…)
- Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc…)
- Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc…)
- eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc…)
Instructor
- PIC Microcontrollers
- Arduino
- Raspberry Pi
- Espressif
- Robotics
- DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
- Linux-Apache-PHP-MySQL
Follow Us
J. Luc Paquin – Curriculum Vitae
https://www.donluc.com/DLE/LucPaquinCVEngMk2020a.pdf
Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
Web: https://www.donluc.com/DLE/
Web: https://www.donluc.com/DLHackster/
Web: https://www.hackster.io/neosteam-labs
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/
Don Luc
Don Luc Electronics – Software
——
#donluc #programming #software #electronics #microcontrollers #consultant #vlog
——
——
——
——
——
Software
Software is a collection of data or computer instructions that tell the computer how to work. This is in contrast to physical hardware, from which the system is built and actually performs the work. In computer science and software engineering, computer software is all information processed by computer systems, programs and data.
Professional Graphic Design Software
CorelDRAW (CorelDRAW 1 apha (1988), CorelDraw X8)
Create with passion. Design with purpose. Break down creative barriers with CorelDRAW. Find all the professional vector illustration, layout, photo editing and typography tools you need to create and complete important design projects, from virtually any device.
Corel PHOTO-PAINT (Corel PHOTO-PAINT 1 apha 1988, Corel PHOTO-PAINT X8)
Make the most of your photos with the powerful photo-editing capabilities of Corel PHOTO-PAINT and enjoy an integrated workflow with CorelDRAW.
Real-Time 3D Animation Software
iClone (iClone 2 (2007), iClone 7)
iClone is the fastest real-time 3D animation software in the industry, helping you easily produce professional animations for films, previz, animation, video games, content development, education and art. Integrated with the latest real-time technologies, iClone simplifies the world of 3D Animation in a user-friendly production environment that blends character animation, scene design and cinematic storytelling; quickly turning your vision into a reality.
Character Creator (Character Creator 1 (2007), Character Creator 3)
Elaborate character design tools with a workflow that capitalizes on speed and quality combined with animation-ready rigging to immediately enliven character creations with motion, facial animation, and lip-sync. Generate unlimited character styles with high-detail visual quality via face and body morphs, PBR dynamic materials, and layers of fashion. Shape, appearance, clothes, hair, and accessories just to name a fewÖ and they can all be found in Character Creator, the character builder add-on for iClone. Not only does it generate realistic-looking human characters, but also provides some exceptional stylization options.
Video Editing Software
Pinnacle Studio Ultimate (Pinnacle Studio Ultimate 9 (2009), Pinnacle Studio Ultimate 20)
Advanced video editing and screen recording software. Edit freely across unlimited tracks with complete flexibility. Take control of your edits with enhanced keyframing. Access hundreds of creative effects, plus new graphics and overlays. Tap into pro-caliber tools including enhanced Video Masking, Color Grading and new Title Editor.
Open-Source Transcoder Software
HandBrake (2009)
HandBrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs. Reasons youíll love HandBrake: Convert video from nearly any format. Free and Open Source. Multi-Platform (Windows, Mac and Linux).
Recording And Editing Sounds Software
Audacity (2004)
Audacity is a free and open-source digital audio editor and recording application software, available for Windows, macOS, Linux, and other Unix-like operating systems. In addition to recording audio from multiple sources, Audacity can be used for post-processing of all types of audio by adding effects such as normalization, trimming, and fading in and out.
Text To Speech Software
Convert Text to Speech (2018)
Web: http://www.fromtexttospeech.com/
CAD Software
Fritzing
Fritzing is an open-source initiative to develop amateur or hobby CAD software for the design of electronics hardware, to support designers and artists ready to move from experimenting with a prototype to building a more permanent circuit. The software is created in the spirit of the Processing programming language and the Arduino microcontroller and allows a designer, artist, researcher, or hobbyist to document their Arduino-based prototype and create a PCB layout for manufacturing.
HTML Editor Software
CoffeeCup HTML Editor (2004)
CoffeeCup HTML Editor is an HTML editor. You want to create great websites. Consider the HTML Editor your new best friend. HTML veterans, youíll create standards-compliant sites using powerful tools like code completion and built-in validation. Get ready to utilize resources like comprehensive tag references and vibrant, responsive website templates. Getting to work on your website is lightning quick thanks to a wide range of start options. You can create new HTML or CSS files from scratch, or get a jump-start on a pro design by launching a new project from an existing theme or layout.
Media Player Classic
Media Player Classic (MPC) of free and open-source, compact, lightweight, and customizable media players for 32-bit and 64-bit Microsoft Windows. The original MPC, but provide most options and features available in modern media players. Variations of the original MPC and its forks have been and are, standard media players in the K-Lite Codec Pack and the Combined Community Codec Pack.
Arduino IDE Software
The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. This software can be used with any Arduino board.
Python Software
Ninja-IDE (2015)
NINJA-IDE, is a cross-platform integrated development environment (IDE) designed to build Python applications. It provides tools to simplify Python software development and handles many kinds of situations thanks to its rich extensibility. Some of the current features of the IDE are: Light weight IDE. Common functions such as: file handling, find in files code locator, go to line, tabs, automatic indentation, editor zoom, etc. Multi-platform: Linux, Windows, FreeBSD. Syntax highlighting for a wide variety of languages. Even though it is intended to be mainly a Python IDE, it can also handle several other languages.
Technology Experience
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc…)
- Robotics
- Research & Development (R & D)
- Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc…)
- Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc…)
- Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc…)
- Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc…)
- Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc…)
- Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc…)
- eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc…)
Instructor
- PIC Microcontrollers
- Arduino
- Raspberry Pi
- Espressif
- Robotics
- DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
- Linux-Apache-PHP-MySQL
Follow Us
J. Luc Paquin ñ Curriculum Vitae
https://www.donluc.com/DLE/LucPaquinCVEngMk2020a.pdf
Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
Web: https://www.donluc.com/DLE/
Web: https://www.donluc.com/DLHackster/
Web: https://www.hackster.io/neosteam-labs
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/
Don Luc
Don Luc Electronics – The Alpha Geek – Geeking Out
——
#donluc #microcontrollers #pic #arduino #raspberrypi #espressif #robotics #fritzing #electronics #consultant #vlog
——
——
——
——
With that attitude in mind since childhood it was very difficult not to grow up and become a full-fledged Geek at an early age. That was one of my many interests at the time and I cannot even remember how many different “Geeky” things I have done over the years. In my early teens I was into photography and processing and printing my own B&W photos in a darkroom I had built with the help of my Mom in our basement in Canada. I got into electronics when I could not afford to buy a proper darkroom timer and I saw some article, probably in some electronics magazine, that explained how to build a simple timer that blinks a LED at one second intervals. After a trip, probably to Radio Shack, to buy a 555 timer IC, a LED, resistors, wires, battery, switch and a small perforated circuit board. After that I was hooked on electronics projects from that day.
Don Luc Electronics Websites that were thought to be useful to electronics engineers professionals, geek, hobbyists, hackers and makers. We are experts in designing and programming embedded systems using a wide variety of platforms and microcontrollers.
Whether your needs are a simple design using an off-the-shelf prototyping platform like the PIC microcontrollers, Arduino, Raspberry Pi, Espressif, or you need to integrate a microcontroller into a complex product we are here to help you. Robotics, basic circuit design, programming, the software and gaming. Hopefully it will provide you with a foundation of what you need to know to begin your hobby or career in electronics. We post tutorials regularly in a format that is easy to understand and includes all the information you need to complete a project.
Project
- Programming Microcontrollers
- Photography
- Tripod (Photography, Wireless, Motors and Drivers, Camera Receiver, Display)
- Robotics
- Unmanned Vehicles
- Underwater Vehicle
- Lasers
- Sound
- Musical Instruments
- Synthesizer
- Servo
- Stepper
- Gearmotor
- Motor
- Environment
- Mind Doorway (Deep Meditation Eye Glasses)
- GPS
- Display
- Flex / Force
- Battery
- Lamps
- Dream
- Etc…
This project is for everybody. We could sell kits with the parts of the project.
People can contact us: https://www.donluc.com/?page_id=1927
Don Luc Electronics – The Alpha Geek – Geeking Out
https://www.donluc.com/
WordPress: Writing, microcontrollers, programmers, pictures, video, etc…
https://www.donluc.com/DLE/
ZIP: Writing, microcontrollers, programmers, pictures, video, etc…
Technology Experience
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc…)
- Robotics
- Research & Development (R & D)
- Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc…)
- Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc…)
- Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc…)
- Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc…)
- Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc…)
- Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc…)
- eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc…)
Instructor
- PIC Microcontrollers
- Arduino
- Raspberry Pi
- Espressif
- Robotics
- DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
- Linux-Apache-PHP-MySQL
Follow Us
J. Luc Paquin – Curriculum Vitae
https://www.donluc.com/DLE/LucPaquinCVEngMk2020a.pdf
Web: https://www.donluc.com/
Web: https://www.donluc.com/DLE/
Web: https://www.donluc.com/DLHackster/
Web: https://www.hackster.io/neosteam-labs
Web: http://www.jlpconsultants.com/
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/
Don Luc
Project #16: Sound – Rotary Switch – Mk13
——
#donluc #sound #simplekeyboard #synthesizer #mozzi #adsr #rotaryswitch #programming #arduino #fritzing #electronics #microcontrollers #consultant #vlog
——
——
——
——
——
Wave
In a wave is a propagating dynamic disturbance of one or more quantities, sometimes as described by a wave equation. In physical waves, at least two field quantities in the wave medium are involved. Sound waves are variations of the local pressure and particle motion that propagate through the medium.
Sine Wave
To the human ear, a sound that is made of more than one sine wave will have perceptible harmonics, addition of different sine waves results in a different waveform and thus changes the timbre of the sound. Presence of higher harmonics in addition to the fundamental causes variation in the timbre, which is the reason why the same musical note played on different instruments sounds different.
Rotary Switch – SparkFun Rotary Switch Breakout
This is a single pole, 10 position rotary switch able to select up to 10 different states in a durable package. Unlike our other rotary switch, this model is much more robust and capable of handling larger currents and voltages. Though this switch requires you to use 11 pins and is not breadboard friendly we do offer a breakout board to provide easier access to its capabilities.
This is the SparkFun Rotary Switch Breakout, a very simple board designed to easily provide you access to each pin on our 10-position rotary switches. This breakout allows you to easily add a rotary switch to your next project without having to worry about attaching its unique footprint to a custom board or solderless breadboard. All you need to do is solder the 10-position rotary switch into the breakout and each pin will become available for breadboard or hookup wire compatibility.
DL2011Mk08
1 x Arduino Pro Mini 328 – 5V/16MHz
8 x Tactile Button
1 x Rotary Switch – 10 Position
1 x SparkFun Rotary Switch Breakout
1 x Knob
11 x 1K Ohm
1 x Audio Jack 3.5mm
1 x SparkFun Audio Jack Breakout
1 x Speaker
12 x Wire Solid Core – 22 AWG
9 x Jumper Wires 3in M/M
11 x Jumper Wires 6in M/M
2 x Full-Size Breadboard
1 x SparkFun Cerberus USB Cable
1 x SparkFun FTDI Basic Breakout – 5V
Arduino Pro Mini 328 – 5V/16MHz
SPK – Digital 9
KY2 – Digital 2
KY3 – Digital 3
KY4 – Digital 4
KY5 – Digital 5
KY6 – Digital 6
KY7 – Digital 7
KY8 – Digital 8
KY9 – Digital 10
RO0 – Analog A0
VIN – +5V
GND – GND
DL2011Mk08p.ino
// ***** Don Luc Electronics © ***** // Software Version Information // Project #16: Sound - Rotary Switch - Mk13 // 11-08 // DL2011Mk08p.ino 16-13 // 1 x Arduino Pro Mini 328 - 5V/16MHz // 8 x Tactile Button // 1 x Rotary Switch - 10 Position // 1 x SparkFun Rotary Switch Breakout // 1 x Knob // 11 x 1K Ohm // 1 x Audio Jack 3.5mm // 1 x SparkFun Audio Jack Breakout // 1 x Speaker // 12 x Wire Solid Core - 22 AWG // 9 x Jumper Wires 3in M/M // 11 x Jumper Wires 6in M/M // 2 x Full-Size Breadboard // 1 x SparkFun Cerberus USB Cable // 1 x SparkFun FTDI Basic Breakout - 5V // Include the Library Code // Pitches #include "pitches.h" // Mozzi #include#include #include // Oscillator Tables used for output Waveshape #include // Simple Keyboard // Minimum reading of the button that generates a note const int iKeyboard2 = 2; const int iKeyboard3 = 3; const int iKeyboard4 = 4; const int iKeyboard5 = 5; const int iKeyboard6 = 6; const int iKeyboard7 = 7; const int iKeyboard8 = 8; const int iKeyboard9 = 10; // Button is pressed int aa = 1; int bb = 1; int cc = 1; int dd = 1; int ee = 1; int ff = 1; int gg = 1; int hh = 1; // Frequency int iFreg = 0; int iNoteA = 0; int iNoteB = 0; int iNoteC = 0; int iNoteD = 0; int iNoteE = 0; int iNoteF = 0; int iNoteG = 0; int iNoteAA = 0; // Oscillator Functions declared for output envelope 1 // Sine Wave Oscil <2048, AUDIO_RATE> aSin1(SIN2048_DATA); // ADSR declaration/definition // Comment out to use default control rate of 64 #define CONTROL_RATE 128 ADSR envelope1; // Rotary Switch // Number 1 => 10 int iRotNum = A0; // iRotVal - Value int iRotVal = 0; // Number int z = 0; // Software Version Information String sver = "16-13"; void loop() { // Audio Hook audioHook(); }
getKeyboard.ino
// getKeyboard // setupKeyboard void setupKeyboard() { // Initialize the pushbutton pin as an input pinMode(iKeyboard2, INPUT_PULLUP); pinMode(iKeyboard3, INPUT_PULLUP); pinMode(iKeyboard4, INPUT_PULLUP); pinMode(iKeyboard5, INPUT_PULLUP); pinMode(iKeyboard6, INPUT_PULLUP); pinMode(iKeyboard7, INPUT_PULLUP); pinMode(iKeyboard8, INPUT_PULLUP); pinMode(iKeyboard9, INPUT_PULLUP); } // isKeyboard void isKeyboard() { // Read the state of the pushbutton value if ( digitalRead(iKeyboard2) == LOW ) { // Button is pressed - pullup keeps pin high normally aa = aa + 1; // Rotary Switch isRot(); // ADSR declaration/definition envelope1.noteOn(); aSin1.setFreq( iNoteA ); } else { aa = aa - 1; } // Read the state of the pushbutton value if ( digitalRead(iKeyboard3) == LOW ) { // Button is pressed - pullup keeps pin high normally bb = bb + 1; // Rotary Switch isRot(); // ADSR declaration/definition envelope1.noteOn(); aSin1.setFreq( iNoteB ); } else { bb = bb - 1; } // Read the state of the pushbutton value if ( digitalRead(iKeyboard4) == LOW ) { // Button is pressed - pullup keeps pin high normally cc = cc + 1; // Rotary Switch isRot(); // ADSR declaration/definition envelope1.noteOn(); aSin1.setFreq( iNoteC ); } else { cc = cc - 1; } // Read the state of the pushbutton value if ( digitalRead(iKeyboard5) == LOW ) { // Button is pressed - pullup keeps pin high normally dd = dd + 1; // Rotary Switch isRot(); // ADSR declaration/definition envelope1.noteOn(); aSin1.setFreq( iNoteD ); } else { dd = dd - 1; } // Read the state of the pushbutton value if ( digitalRead(iKeyboard6) == LOW ) { // Button is pressed - pullup keeps pin high normally ee = ee + 1; // Rotary Switch isRot(); // ADSR declaration/definition envelope1.noteOn(); aSin1.setFreq( iNoteE ); } else { ee = ee - 1; } // Read the state of the pushbutton value if ( digitalRead(iKeyboard7) == LOW ) { // Button is pressed - pullup keeps pin high normally ff = ff + 1; // Rotary Switch isRot(); // ADSR declaration/definition envelope1.noteOn(); aSin1.setFreq( iNoteF ); } else { ff = ff - 1; } // Read the state of the pushbutton value if ( digitalRead(iKeyboard8) == LOW ) { // Button is pressed - pullup keeps pin high normally gg = gg + 1; // Rotary Switch isRot(); // ADSR declaration/definition envelope1.noteOn(); aSin1.setFreq( iNoteG ); } else { gg = gg - 1; } // Read the state of the pushbutton value if ( digitalRead(iKeyboard9) == LOW ) { // Button is pressed - pullup keeps pin high normally hh = hh + 1; // Rotary Switch isRot(); // ADSR declaration/definition envelope1.noteOn(); aSin1.setFreq( iNoteAA ); } else { hh = hh - 1; } }
getMozzi.ino
// Mozzi // Update Control void updateControl(){ // Frequency isPitches(); // Keyboard isKeyboard(); } // Update Audio int updateAudio(){ // ADSR declaration/definition envelope1.update(); // Oscillator // >>8 for AUDIO_MODE STANDARD return (int) (envelope1.next() * aSin1.next())>>8; }
getPitches.ino
// Pitches // isPitches void isPitches(){ // Range Frequency Note Low => High switch ( iFreg ) { case 1: // NOTE A1 iNoteA = NOTE_A1; iNoteB = NOTE_B1; iNoteC = NOTE_C2; iNoteD = NOTE_D2; iNoteE = NOTE_E2; iNoteF = NOTE_F2; iNoteG = NOTE_G2; iNoteAA = NOTE_A2; break; case 2: // NOTE A2 iNoteA = NOTE_A2; iNoteB = NOTE_B2; iNoteC = NOTE_C3; iNoteD = NOTE_D3; iNoteE = NOTE_E3; iNoteF = NOTE_F3; iNoteG = NOTE_G3; iNoteAA = NOTE_A3; break; case 3: // NOTE A3 iNoteA = NOTE_A3; iNoteB = NOTE_B3; iNoteC = NOTE_C4; iNoteD = NOTE_D4; iNoteE = NOTE_E4; iNoteF = NOTE_F4; iNoteG = NOTE_G4; iNoteAA = NOTE_A4; break; case 4: // NOTE A4 iNoteA = NOTE_A4; iNoteB = NOTE_B4; iNoteC = NOTE_C5; iNoteD = NOTE_D5; iNoteE = NOTE_E5; iNoteF = NOTE_F5; iNoteG = NOTE_G5; iNoteAA = NOTE_A5; break; case 5: // NOTE A5 iNoteA = NOTE_A5; iNoteB = NOTE_B5; iNoteC = NOTE_C6; iNoteD = NOTE_D6; iNoteE = NOTE_E6; iNoteF = NOTE_F6; iNoteG = NOTE_G6; iNoteAA = NOTE_A6; break; case 6: // NOTE A6 iNoteA = NOTE_A6; iNoteB = NOTE_B6; iNoteC = NOTE_C7; iNoteD = NOTE_D7; iNoteE = NOTE_E7; iNoteF = NOTE_F7; iNoteG = NOTE_G7; iNoteAA = NOTE_A7; break; case 7: // NOTE A7 iNoteA = NOTE_A7; iNoteB = NOTE_B7; iNoteC = NOTE_C8; iNoteD = NOTE_D8; iNoteE = NOTE_E8; iNoteF = NOTE_F8; iNoteG = NOTE_G8; iNoteAA = NOTE_A8; break; } }
getRot.ino
// Rotary Switch // isRot - iRotVal - Value void isRot() { // Rotary Switch z = analogRead( iRotNum ); iRotVal = map(z, 0, 1023, 0, 9); // Range Value switch ( iRotVal ) { case 0: // Sine Wave // Frequency iFreg = 1; break; case 1: // Sine Wave // Frequency iFreg = 2; break; case 2: // Sine Wave // Frequency iFreg = 3; break; case 3: // Sine Wave // Frequency iFreg = 4; break; case 4: // Sine Wave // Frequency iFreg = 5; break; case 5: // Sine Wave // Frequency iFreg = 6; break; case 6: // Sine Wave // Frequency iFreg = 7; break; case 7: // Z envelope1.noteOff(); break; case 8: // Z envelope1.noteOff(); break; case 9: // Z envelope1.noteOff(); break; } }
pitches.h
/***************************************************************** * Pitches NOTE_B0 <=> NOTE_B8 - NOTE_A4 is "A" measured at 440Hz *****************************************************************/ #define NOTE_B0 31 #define NOTE_C1 33 #define NOTE_CS1 35 #define NOTE_D1 37 #define NOTE_DS1 39 #define NOTE_E1 41 #define NOTE_F1 44 #define NOTE_FS1 46 #define NOTE_G1 49 #define NOTE_GS1 52 #define NOTE_A1 55 #define NOTE_AS1 58 #define NOTE_B1 62 #define NOTE_C2 65 #define NOTE_CS2 69 #define NOTE_D2 73 #define NOTE_DS2 78 #define NOTE_E2 82 #define NOTE_F2 87 #define NOTE_FS2 93 #define NOTE_G2 98 #define NOTE_GS2 104 #define NOTE_A2 110 #define NOTE_AS2 117 #define NOTE_B2 123 #define NOTE_C3 131 #define NOTE_CS3 139 #define NOTE_D3 147 #define NOTE_DS3 156 #define NOTE_E3 165 #define NOTE_F3 175 #define NOTE_FS3 185 #define NOTE_G3 196 #define NOTE_GS3 208 #define NOTE_A3 220 #define NOTE_AS3 233 #define NOTE_B3 247 #define NOTE_C4 262 #define NOTE_CS4 277 #define NOTE_D4 294 #define NOTE_DS4 311 #define NOTE_E4 330 #define NOTE_F4 349 #define NOTE_FS4 370 #define NOTE_G4 392 #define NOTE_GS4 415 #define NOTE_A4 440 #define NOTE_AS4 466 #define NOTE_B4 494 #define NOTE_C5 523 #define NOTE_CS5 554 #define NOTE_D5 587 #define NOTE_DS5 622 #define NOTE_E5 659 #define NOTE_F5 698 #define NOTE_FS5 740 #define NOTE_G5 784 #define NOTE_GS5 831 #define NOTE_A5 880 #define NOTE_AS5 932 #define NOTE_B5 988 #define NOTE_C6 1047 #define NOTE_CS6 1109 #define NOTE_D6 1175 #define NOTE_DS6 1245 #define NOTE_E6 1319 #define NOTE_F6 1397 #define NOTE_FS6 1480 #define NOTE_G6 1568 #define NOTE_GS6 1661 #define NOTE_A6 1760 #define NOTE_AS6 1865 #define NOTE_B6 1976 #define NOTE_C7 2093 #define NOTE_CS7 2217 #define NOTE_D7 2349 #define NOTE_DS7 2489 #define NOTE_E7 2637 #define NOTE_F7 2794 #define NOTE_FS7 2960 #define NOTE_G7 3136 #define NOTE_GS7 3322 #define NOTE_A7 3520 #define NOTE_AS7 3729 #define NOTE_B7 3951 #define NOTE_C8 4186 #define NOTE_CS8 4435 #define NOTE_D8 4699 #define NOTE_DS8 4978 #define NOTE_E8 5274 #define NOTE_F8 5588 #define NOTE_FS8 5920 #define NOTE_G8 6272 #define NOTE_GS8 6645 #define NOTE_A8 7040 #define NOTE_AS8 7459 #define NOTE_B8 7902
setup.ino
// Setup void setup() { // Setup Keyboard setupKeyboard(); // Start Mozzi startMozzi( CONTROL_RATE ); // Sets Attack and Decay Levels; assumes Sustain, Decay, and Idle times envelope1.setADLevels(200,200); // Sets Decay time in milliseconds envelope1.setDecayTime(100); // Sustain Time setting for envelope1 envelope1.setSustainTime(32500); }
Sounds
https://www.donluc.com/DLE/sounds.html
Technology Experience
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc…)
- Robotics
- Research & Development (R & D)
- Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc…)
- Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc…)
- Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc…)
- Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc…)
- Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc…)
- Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc…)
- eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc…)
Instructor
- PIC Microcontrollers
- Arduino
- Raspberry Pi
- Espressif
- Robotics
- DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
- Linux-Apache-PHP-MySQL
Follow Us
J. Luc Paquin – Curriculum Vitae
https://www.donluc.com/DLE/LucPaquinCVEngMk2020a.pdf
Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
Web: https://www.donluc.com/DLE/
Web: https://www.donluc.com/DLHackster/
Web: https://www.hackster.io/neosteam-labs
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/
Don Luc