Making Music with the Arduino Uno Mike Martin King High School, Riverside, CA PLTW State Conference – February 19, 2015

Slides:



Advertisements
Similar presentations
Lab7: Introduction to Arduino
Advertisements

Intermediate Electronics and Lilypad Where Electronics Meet Textiles Workshop with Lynne Bruning and Troy Robert Nachtigall Sponsored by Spark Fun and.
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Basic DC Motor Circuits
Beginner’s guide.  Look at the staffs ________________________  Bars connect the staffs that are played at the same time.  Look for the choir brace.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
PLTW and Common Core PLTW State Conference, Sacramento, California
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
Intro to Arduino with LilyPad Make a MakerSpace, Artisan’s Asylum Linz Craig, Chris Taylor, Mike Hord & Joel Bartlett.
ELCT 201 week 13 Analog ON/OFF control system conversion to Digital ON/OFF control system.
Beat and Tempo Time Signatures. Beat Beat  is a unit of measurement. The beat is related to the pulse/feel of the music, which is related to the time.
Intro to Programming and Microcontrollers. Activity Group into pairs and sit back-to-back. Pick one person who is going to draw. The other person will.
Beginning Arduino Session 2 AN INTRODUCTION TO HACKING THE WORLD’S MOST POPULAR MICROCONTROLLER PLATFORM
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #13 Gateway To Space ASEN 1400 / ASTR 2500 Class #13 T-53.
Embedded Programming and Robotics
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
BASIC Stamp Editor Once installed, the Stamp Editor will be available on your desktop, and as a menu option under Start  Program Files  Parallax Inc.
Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.
Manufacturing Advanced Design Applications Manufacturing © 2014 International Technology and Engineering Educators Association, STEM  Center for Teaching.
Introduction to the Arduino
Intro to Arduino Programming. Draw your circuits before you build them From Arduino 330 Ohm From Arduino 330 Ohm From Arduino 330 Ohm.
Advanced Design Applications Power and Energy © 2014 International Technology and Engineering Educators Association STEM  Center for Teaching and Learning™
Using Hobby Servos with the Arduino living with the lab © 2012 David Hall.
LECTURE 2 – INPUTS THIS LECTURE WILL INTRODUCE HOW TO INPUT SIGNALS INTO AN ARDUINO.
Making Music with VEX Mike Martin King High School, Riverside, CA
Microprocessors Tutorial 1: Arduino Basics
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
Embedded Programming and Robotics Lesson 11 Arduino Interrupts 1.
Microcontroller basics Embedded systems for mortals.
Vex Robotics program three: using motors and sensors together.
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
Istituto Tecnico Industriale A.Monaco EURLAB Control a Servo Motor If you want to swing an robot arm or … steer a robot you need a special motor (Servo).
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Electronic instrumentation Digitization of Analog Signal in TD
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
Introduction to Electronics Part 1 Stewart Watkiss.
Having fun with code, using Arduino in a middle school CS classroom
Lab 7 Basic 1: Game of Memory
CU ATLAS Practical electronics Motion and Servos
Dr. Kyung Eun Park Summer 2017
Val Manes Department of Math & Computer Science
Microcontroller basics
Introduction to Servos
Microprocessors Tutorial 1: Arduino Basics
Get Your Project Started with Arduino
Introduction to Arduino Microcontrollers
Analog Input through POT
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Continuing with LED’s and Arduino
What is Arduino? By James Tedder.
Arduino 101 Credit(s):
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
CS-4540 Robotics - Lab 05 Switch inputs to the Arduino Uno
CS4101 Introduction to Embedded Systems Lab 8: Arduino DAC and PWM
Topics: Programming Constructs: loops & conditionals Digital Input
Chapter 1 Introduction of Arduino
Beginner’s guide How to Read Music.
Arduino Part 4 Let there be more light.
Ms. Delgado’s Music Class
CTY SAR FCPS Shawn Lupoli, Elliot Tan
LED and a Button.
Arduino 7 Segment Display Lab
Arduino Uno circuit basics
Interface ckt for demo Outputs Inputs V PIN 0 10K PIN 4 GND GND
Arduino程式範例.
Presentation transcript:

Making Music with the Arduino Uno Mike Martin King High School, Riverside, CA PLTW State Conference – February 19, 2015

Introduction Teaching kids to write programming code has become a priority for STEM programs like PLTW. Digital Electronics (DE) has moved from the Parallax Basic Stamp using PBASIC to the Arduino Uno. Many of our PLTW students are also involved with music, whether band, choir, or off-campus. Learning to program music can add another component to an already fun, challenging, and rewarding DE class.

Music Theory Frere Jacques / Brother John 4/4 Time Quarter Notes Half Notes Eighth Notes Measures - Bars What do you notice about the measures and bars?

Music Theory There are 4 groups of notes that are repeated twice. This allows us to simplify our programming.

Programming the Arduino How do we program a note? Frequency – each note must have a different frequency. Middle C – also called C4

Programming the Arduino How do we program a note? Let’s use Variables to represent each frequency. Let’s use Variables to also represent the quarter and half notes.

Programming the Arduino How do we program a note? What command do we use to play a note on the Uno?

Programming the Arduino How do we program a note? How do we ‘loop’ the notes that are being repeated? Let’s use a For loop:

Programming the Arduino How do we program a note? What will a loop look like?

Programming the Arduino How do we program the entire song? Put all of the For loops consecutive: void setup () { for (int i=0; i<2; i++) { body } for (int i=0; i<2; i++) { body } for (int i=0; i<2; i++) { body } for (int i=0; i<2; i++) { body }

Programming the Arduino How do we actually play the song on the Uno? Pin 12 (green wire) to positive Gnd (white wire) to 8-ohm resistor

Using Switches to Play Music Not only can we program the song into the Uno, but we can set up our own “Arduino Keyboard” VEX switches may be the easiest to access, if your school has POE or CIM. Momentary push-button switches can also be used.

Using Switches to Play Music How do I program the Uno to play music with switches?

Using Switches to Play Music How do I program the Uno to play music with switches?

Using Switches to Play Music Project Idea – a full keyboard! File available upon request.