The Alpha Geek – Geeking Out

#16 – Sound

Project #16: Sound – Simple Keyboard – Mk04

——

#donluc #sound #synthesizer #simplekeyboard #programming #arduino #fritzing #electronics #microcontrollers #consultant #vlog

——

Simple Keyboard

——

Simple Keyboard

——

Simple Keyboard

——

While frequencies are represented with numbers (Hz), pitch is represented with letters. For example, if you have ever heard an orchestra ‘tune’ at the beginning of a concert, a single player plays an “A” measured at 440Hz. With pitch, we only use the letters A, B, C, D, E, F, and G. These pitches repeat every 8 notes, called an octave. In order to differentiate between which octaves we are referring to when talking about pitch, a number is added after the letter. Simply put in the 19th century and decided that was the case.

One very important aspect of all music theory is that octaves are specifically defined as ‘doubling’ or ‘halving’ a pitch’s frequency. For example, the frequencies 220 Hz, 440 Hz, and 880 Hz are all A’s, but exist in different octaves: A3, A4, and A5 respectively. In Western music theory, we have generally
agreed that within each octave there are 12 equal subdivisions or pitches. So how do we determine where these other notes are ‘tuned’ in relationship to that A440.

Simple Keyboard

This simple keyboard how to use the tone() command to generate different pitches depending on which button is pressed. Connect each button to digital pins 2 => 9, using to ground on each input line. Connect digital pins two wires to the board. The first one black long vertical rows on the side of the breadboard to provide access to ground. The two wire goes from digital pin to one leg of the button. When the button is open (unpressed) there is no connection between the two legs of the button, so the pin is connected to ground and we read a LOW. When the button is closed (pressed), it makes a connection between its two legs. Connect one terminal of your speaker to digital pin 10 through and its other terminal to ground.

The sketch uses an extra file, pitches.h. This file contains all the pitch values for typical notes. This note table on whose work the tone() command was based. You may find it useful for whenever you want to make musical notes. Player plays an NOTE_A4 measured at 440Hz, NOTE_B4 measured at 494Hz, NOTE_C5 measured at 523Hz, NOTE_D5 measured at 587Hz, NOTE_E5 measured at 659Hz, NOTE_F5 measured at 698Hz, NOTE_G5 measured at 784Hz and NOTE_A5 measured at 880Hz.

DL2010Mk03

1 x Arduino Pro Mini 328 – 5V/16MHz
8 x Tactile Button
1 x Audio Jack 3.5mm
1 x SparkFun Audio Jack Breakout
1 x Hamburger Mini Speaker
8 x Wire Solid Core – 22 AWG
1 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 10
KY2 – Digital 2
KY3 – Digital 3
KY4 – Digital 4
KY5 – Digital 5
KY6 – Digital 6
KY7 – Digital 7
KY8 – Digital 8
KY9 – Digital 9
VIN – +5V
GND – GND

DL2010Mk03p.ino

// ***** Don Luc Electronics © *****
// Software Version Information
// Project #16: Sound - Simple Keyboard - Mk04
// 10-03
// DL2010Mk03p.ino 16-04
// 1 x Arduino Pro Mini 328 - 5V/16MHz
// 8 x Tactile Button
// 1 x Audio Jack 3.5mm
// 1 x SparkFun Audio Jack Breakout
// 1 x Hamburger Mini Speaker
// 8 x Wire Solid Core - 22 AWG
// 1 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
#include "pitches.h"

// Mini Speaker
int SPK = 10;

// 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 = 9; 
// 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;

// Software Version Information
String sver = "16-04";

void loop() {

  // Keyboard
  isKeyboard();
  
}

getKeyboard.1no

// 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;
    tone(SPK, NOTE_A4, 20);
    
  }
  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;
    tone(SPK, NOTE_B4, 20);
    
  }
  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;
    tone(SPK, NOTE_C5, 20);
    
  }
  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;
    tone(SPK, NOTE_D5, 20);
    
  }
  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;
    tone(SPK, NOTE_E5, 20);
    
  }
  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;
    tone(SPK, NOTE_F5, 20);
    
  }
  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;
    tone(SPK, NOTE_G5, 20);
    
  }
  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;
    tone(SPK, NOTE_A5, 20);
    
  }
  else
  {
    
    hh = hh - 1;
    
  }

  noTone(SPK);

}

pitches.h

/*****************************************************************
 * Pitches NOTE_B0 <=> NOTE_DS8 - 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

setup.ino

// Setup
void setup() {

  // Setup Keyboard
  setupKeyboard();
  
}

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

  • 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/DLHackster/LucPaquinCVEngMk2020a.pdf

Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
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/luc.paquin/

Don Luc

Project #16: Sound – Frequency and Pitch – Mk03

——

#donluc #sound #synthesizer #programming #arduino #fritzing #electronics #microcontrollers #consultant #vlog

——

Frequency and Pitch

——

Frequency and Pitch

——

Frequency and Pitch

——

Frequency and Pitch

Frequency is how often something happens. Since sound is vibrations, we use frequency to describe how often something is vibrating. Frequency is measured in Hertz (Hz), which is simply how often per second. So, something oscillating at 1 Hz is vibrating once every second. A complete vibration is called a cycle, measured at one full peak and trough of a wave. In the early days of electronic music, the terms cycles per second (cps) was used instead of Hz.

The above picture is a sine wave, the purest representation of a single frequency or vibration. The time it takes for the wave to complete one cycle is the wave’s frequency. More vibrations per second produce higher sounding frequencies and fewer vibrations per second produce lower sounding frequencies. Tuning instruments, science experiments, testing audio equipment, testing your hearing what’s the highest frequency you can hear? Humans perceive frequency of sound waves as pitch. Each musical note corresponds to a particular frequency which can be measured in hertz. An infant’s ear is able to perceive frequencies ranging from 20 Hz to 20,000 Hz. The average adult human can hear sounds between 20 Hz and 16,000 Hz.

Tone

The Arduino is a single-oscillator digital synthesizer. Generates a square wave tone() of the specified frequency on a pin. The pin can be connected to a other speaker. Only one tone can be generated at a time. If the tone is playing on the same pin, the call will set its frequency. the Arduino pin on which to generate the tone. The frequency of the tone in hertz. The duration of the tone in milliseconds. By passing voltage through a potentiometer and into an analog input on your board, it is possible to measure the amount of resistance produced by a potentiometer as an frequency.

DL2010Mk02

1 x Arduino Pro Mini 328 – 5V/16MHz
1 x 1K Potentiometer
1 x Knob
1 x Audio Jack 3.5mm
1 x SparkFun Audio Jack Breakout
1 x Hamburger Mini Speaker
5 x Jumper Wires 3in M/M
2 x Jumper Wires 6in M/M
1 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 6
CAP – Analog A0
VIN – +5V
GND – GND

DL2010Mk02p.ino

// ***** Don Luc Electronics © *****
// Software Version Information
// Project #16: Sound - Frequency and Pitch - Mk03
// 10-02
// DL2010Mk02p.ino 16-03
// 1 x Arduino Pro Mini 328 - 5V/16MHz
// 1 x 1K Potentiometer
// 1 x Knob
// 1 x Audio Jack 3.5mm
// 1 x SparkFun Audio Jack Breakout
// 1 x Hamburger Mini Speaker
// 5 x Jumper Wires 3in M/M
// 2 x Jumper Wires 6in M/M
// 1 x Full-Size Breadboard
// 1 x SparkFun Cerberus USB Cable
// 1 x SparkFun FTDI Basic Breakout - 5V

// Include the Library Code

// Mini Speaker
int SPK = 6;
// Frequency
int iCap = A0;
int iFreg = 0;

// Software Version Information
String sver = "16-03";

void loop() {

  // Frequency
  iFreg = analogRead(iCap);
  iFreg = map(iFreg, 0, 1023, 31, 4978);
  
  // Mini Speaker  
  tone(SPK, iFreg, 20);
    
  // Delay the actual frequency of updates reads for stability
  delay(1);
  
}

setup.ino

// Setup
void setup() {

  // Setup
  
}

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

  • 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/DLHackster/LucPaquinCVEngMk2020a.pdf

Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
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/luc.paquin/

Don Luc

Project #16: Sound – Brownian Noise – Mk02

——

#donluc #sound #programming #arduino #fritzing #electronics #microcontrollers #consultant #vlog

——

Brownian Noise

——

Brownian Noise

——

Brownian Noise

——

Brownian Noise

White noise has equal intensity at equal frequencies. This sounds tinny and harsh to humans. The problem is due to the high frequencies. In order to produce a more pleasant sound, we need to attenuate those high frequencies. This is called a “low pass filter”. Brownian noise is noise with a power density which decreases 6 dB per octave with increasing frequency and, when heard, has a “damped” or “soft” quality compared to white and pink noise.

In science is the kind of signal noise produced by Brownian motion, hence its alternative name of random walk noise. The graphic representation of the sound signal mimics a Brownian pattern. The sound is a low roar resembling a waterfall or heavy rainfall.

Brown Noise Sleep Machine

Brown noise can be produced by integrating white noise. That is, whereas white noise can be produced by randomly choosing each sample independently, Brown noise can be produced by adding a random offset to each sample to obtain the next one. Note that while the first sample is random across the entire range that the sound sample can take on, the remaining offsets from there on are a tenth or thereabouts, leaving room for the signal to bounce around.

This is a pretty common diode. It acts as a flyback, a protective measure to against voltage spikes caused by inductive loads, in this case the speaker. It is basically the same setup, except that an electrolytic decoupling capacitors has been added. I found that 33uF to be suitable. If the output sounds too tinny, which I think is unlikely, then increase the capacitance. As you increase the capacitance, the output volume will go down. So you might try experimenting with a lower capacitance and potentiometer.

DL2010Mk01

1 x Arduino Pro Mini 328 – 5V/16MHz
1 x 1K Potentiometer
1 x Knob
1 x Diode Small Signal – 1N4148
1 x Electrolytic Decoupling Capacitors – 33uF/63V
1 x Audio Jack 3.5mm
1 x SparkFun Audio Jack Breakout
1 x Hamburger Mini Speaker
9 x Jumper Wires 3in M/M
1 x Full-Size Breadboard
1 x SparkFun Cerberus USB Cable
1 x SparkFun FTDI Basic Breakout – 5V

Arduino Pro Mini 328 – 5V/16MHz

SPT – Digital 6
VIN – +5V
GND – GND

DL2010Mk01p.ino

// ***** Don Luc Electronics © *****
// Software Version Information
// Project #16: Sound - Brownian Noise - Mk02
// 09-02
// DL2010Mk01p.ino 16-02
// 1 x Arduino Pro Mini 328 - 5V/16MHz
// 1 x 1K Potentiometer
// 1 x Knob
// 1 x Diode Small Signal - 1N4148
// 1 x Electrolytic Decoupling Capacitors - 33uF/63V
// 1 x Audio Jack 3.5mm
// 1 x SparkFun Audio Jack Breakout
// 1 x Hamburger Mini Speaker
// 9 x Jumper Wires 3in M/M
// 1 x Full-Size Breadboard
// 1 x SparkFun Cerberus USB Cable
// 1 x SparkFun FTDI Basic Breakout - 5V

// Include the Library Code

// Mini Speaker
int SPK = 6;
long randNumber;

// Software Version Information
String sver = "16-02";

void loop() {

  // Mini Speaker
  randNumber = random();
  digitalWrite( SPK , randNumber ); 
    
  // Delay the actual frequency of updates
  delayMicroseconds (50);
  
}

setup.ino

// Setup
void setup() {

  // Connect a speaker between ground
  pinMode(SPK, OUTPUT);
  // Random Seed
  randomSeed(analogRead( SPK ));
  
}

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

  • 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/DLHackster/LucPaquinCVEngMk2020a.pdf

Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
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/luc.paquin/

Don Luc

Project #16: Sound – White Noise – Mk01

——

#donluc #sound #programming #arduino #fritzing #electronics #microcontrollers #consultant #vlog

——

Sound - White Noise

——

Sound - White Noise

——

Sound - White Noise

——

White Noise

In signal processing, white noise is a random signal having equal intensity at different frequencies, giving it a constant power spectral density. In other words, the signal has equal power in any band of a given bandwidth when the bandwidth is measured in Hz. The term is used, with this or similar meanings, in many scientific and technical disciplines, including physics, acoustical engineering, telecommunications, and statistical forecasting. White noise refers to a statistical model for signals and signal sources, rather than to any specific signal.

White noise is commonly used in the production of electronic music, usually either directly or as an input for a filter to create other types of noise signal. A simple example of white noise is a nonexistent radio station (static). White noise is also used to obtain the impulse response of an electrical circuit, in particular of amplifiers and other audio equipment. Computing, white noise is used as the basis of some random number generators.

Sounds from all frequencies we can hear. Tends to sound high pitch and tinny. This tends to be the least pleasant noise.

Simple breakout board for the 3.5mm audio jack, TRS are abbreviations for Tip / Ring / Sleeve. A TRS is often though of as stereo, as the addition of the ring gives us two contacts allowing us a left and right audio channel.

DL2009Mk01

1 x Arduino Pro Mini 328 – 5V/16MHz
1 x Audio Jack 3.5mm
1 x SparkFun Audio Jack Breakout
1 x Hamburger Mini Speaker
3 x Jumper Wires 3in M/M
1 x Half-Size Breadboard
1 x SparkFun Cerberus USB Cable
1 x SparkFun FTDI Basic Breakout – 5V

Arduino Pro Mini 328 – 5V/16MHz

SPT – Digital 6
SPR – Digital 7
VIN – +5V
GND – GND

DL2009Mk01p.ino

// ***** Don Luc Electronics © *****
// Software Version Information
// Project #16: Sound - White Noise - Mk01
// 09-01
// DL2009Mk01p.ino 16-01
// 1 x Arduino Pro Mini 328 - 5V/16MHz
// 1 x Audio Jack 3.5mm
// 1 x SparkFun Audio Jack Breakout
// 1 x Hamburger Mini Speaker
// 3 x Jumper Wires 3in M/M
// 1 x Half-Size Breadboard
// 1 x SparkFun Cerberus USB Cable
// 1 x SparkFun FTDI Basic Breakout - 5V

// Include the Library Code

// Mini Speaker
int Tip = 6;
int Ring = 7;
long randNumber;

// Software Version Information
String sver = "16-01";

void loop() {

  // Mini Speaker
  randNumber = random();
  digitalWrite( Tip , randNumber ); 
  randNumber = random();
  digitalWrite( Ring , randNumber ); 
    
  // Delay the actual frequency of updates
  delayMicroseconds (50);
  
}

setup.ino

// Setup
void setup() {

  // Connect a speaker between ground
  pinMode(Tip, OUTPUT);
  pinMode(Ring, OUTPUT);
  // Random Seed
  randomSeed(analogRead( Tip ));
  randomSeed(analogRead( Ring ));
  
}

Technology Experience

  • Single-Board Microcontrollers (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

  • 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/DLHackster/LucPaquinCVEngMk2020a.pdf

Web: https://www.donluc.com/
Web: http://www.jlpconsultants.com/
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/luc.paquin/

Don Luc

Categories
Archives