Human Sensing Beam 2014. Low resolution image and Sound Image 8 x 8 pixels Sound: 8 notes in an octave (13) GFU&feature=relmfu.

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 6 Digital Inputs
Advertisements

EMS1EP Lecture 8 Pulse Width Modulation (PWM)
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.
How to use Arduino By: Andrew Hoffmaster.
Embedded Sumo 1T4 – 1T5 UTRA.
Basic DC Motor Circuits
Re-programming the Simon Says with Arduino Linz Craig, Brian Huang.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2012 David Hall.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
Introduction.
1 Ultrasonic Distance Sensor. 2 How it Works The distance sensor emits short bursts of sound and listens for this sound to echo off of nearby objects.
Embedded Programming and Robotics
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Microprocessors Tutorial 1: Arduino Basics
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Introduction to the Arduino
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
Using Hobby Servos with the Arduino living with the lab © 2012 David Hall.
Microprocessors Tutorial 1: Arduino Basics
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
MAKE: AN ELECTRONICS WORKSHOP
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Arduino Training New Mexico Mathematics, Engineering, and Science Achievement (NM MESA) Getting Started.
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.
Microcontroller basics Embedded systems for mortals.
Embedded systems and sensors 1 Part 2 Interaction technology Lennart Herlaar.
1 Introduction to Haptics Introduction to the Hapkit board Allison M. Okamura Stanford University.
ME 120: Arduino Programming Arduino Programming Part II ME 120 Mechanical and Materials Engineering Portland State University
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Microcontroller basics Embedded systems for mortals.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
What is the difference between PSD and CCD sensor technology?
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
Assist. Prof. Rassim Suliyev - SDU 2017
Microcontroller basics
Dr. Kyung Eun Park Summer 2017
Microcontroller basics
Microprocessors Tutorial 1: Arduino Basics
Ultrasonic Distance Sensor
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
How to avoid catching things on fire.
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.
Ultrasonic Distance Sensor
Digital Theremin with LED
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Welcome to Digital Electronics using the Arduino Board
CSCI1600: Embedded and Real Time Software
Chapter 1 Introduction of Arduino
Arduino Part 4 Let there be more light.
Sensors and actuators Sensors Resistive sensors
1 To go to the next slide, click this button instead. A random slide will come up.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Lab #1: Getting Started.
Arduino Uno circuit basics
CSCI1600: Embedded and Real Time Software
Setting up a basic program with Arduino
Introduction to Arduinos
Arduino程式範例.
Ultrasonic Distance Sensor
Presentation transcript:

Human Sensing Beam 2014

Low resolution image and Sound Image 8 x 8 pixels Sound: 8 notes in an octave (13) GFU&feature=relmfu GFU&feature=relmfu

Musical Scale Notes are specific sounds A melody is a sequence of these sounds Melody has “meaning” Note sequence Rythm Brain does a good job “remembering” sequences specific sounds

Sound Scapes “unspecific sounds” and iconic sounds – Noise – Background “canvas” of life – Uncontrolled sound – No coding sound – But also “meaning”: bird sound, water sound, wind, applause: “iconic” sounds

Difference melody - iconic Melody is coded: can be low res – MIDI, very low filesize Iconic is uncoded: high res – HD, lots of memory Arduino can do – melody, – a bit of clicking, – but no really bird sounds, no MP3

Arduino Sound Quality: 8 bits (Arcade game sound) If coded (melody): length no problem If random clicks:no problem If MP3: not possible (few seconds bad quality) – That is without extra electronics

Reinforced Arduino Sound Shields 1 – Attach amplifier – Improve Volume – No improvement in Quality (still 8 bits) Sound Shields 2 – Attach external memory – Improve volume, storage capacity – Improve quality

This Workshop Arduino Just attach an 8 Ohm speaker – With a capacitor to avoid short cutting a PIN Sound library, sound scale: melody Sound click: some random sounds Tone Sirene

Melody Script Arduino script environment Examples, Melody

Script Melody NOTE sequence NOT duration PIN 8 for speaker But speaker has 2 PINS: Add: Pinmode(9, OUTPUT); digitalWrite(9, LOW); In setup(){ }

Hardware Speaker Capacitor To digital PIN 8 + To digital PIN 9 GND (coded GND PIN)

Experiment with Melody script Add Notes Change note duration Change speed Make different melodies (search internet) – Short – Significant, eg Beethoven 5th theme Experiment with fast “texture”, upbeat style

Sound 2 Use Click: digitalWrite(8, HIGH) and LOW In between delay(milliseconds) command See script in next slide:

Sound scape Code for (int i= 0; i< 1000; i++) { clickSound(); } clickSound(){ digitalWrite(8, HIGH); delay(1); digitalWrite(8, LOW); delay(1); }

Problem: delay(1) = 1 millisecond, not fast enough Special fastest command: __asm__("nop\n\t"); But this is too fast! Toooooo high notes. Make this command slower with another for loop: for(int i2 = 0 ; i2<beats ;i2++) __asm__("nop\n\t");

No you can go high pitch: for(int i2 = 0 ; i2<beats ;i2++) __asm__("nop\n\t"); Instead of “delay(.. )” (double for loops) Change “beats” inside the loop for obtaining sirenes

Experiments Alternate melody with sirenes Sequential programming Block 1: melody1 Block 2: sirene1, say “up” Block 3: melody2 Block 4: sirene2, say “down” Try to make “sense” sound

If statement Forking possibilities Instead of 4 blocks repeating: choice Choice can be: – human input, push button, paper button – Sensor input, digital or analog Needed for us: analog input

Analog PINS, 6 of them Input range Normally used for sensors – light (LDR) – Temperature – Pollution Capacitive sensor: electrostatic charge

Breadboard

Smart Connections Standardized!