Difference between revisions of "Redesigning Sound"

From Wikicliki
Jump to: navigation, search
(Testing the Accelerometer)
(Fixing up the Audio Jack)
Line 177: Line 177:
 
=== WORKING AUDIO OUTPUT FOR ARDUINO CIRCUIT ===
 
=== WORKING AUDIO OUTPUT FOR ARDUINO CIRCUIT ===
 
[[File:workingaudio.png]]
 
[[File:workingaudio.png]]
 +
* Adapted from: http://apcmag.com/arduino-project-5-digital-audio-player.htm
 
* iTunes Conversion:
 
* iTunes Conversion:
 
** Click > Edit > Preferences > Import Settings
 
** Click > Edit > Preferences > Import Settings

Revision as of 17:17, 11 November 2013

Process

Tutorial with Yuri, 31 oct

  • surround haptics - sound / haptic / visual / feedback
  • usb sound output for playing back sounds

Guides / Tutorials / Gear

Interesting links

Brainstorming, 31 oct

Bucket of links

Tutorial with Mike, 1 nov

  • Recommended to use triple axis accelerometer - ADXL362 - already has arduino library written for it
  • accelerometer only measures acceleration. think of acceleration in terms of integration, velocity, position...
  • with regards to printing our own pcb - can do laser cut or acetate / pcb toner transfer
  • sound - look up trigger mp3 with sd card slot
  • also think about amplifier and power source

Weekend + Tutorial with Mike and Dave, 4 Nov 2013

4 Nov 2013

  • Walkie Talkie and Baby Monitor were tested but had too short a range to be useful

ACTION PLAN

LOBBY TO-DO
Description: Muzak that blends into an annoying sound if there are too many people in the lobby.
Goal: Make people leave if they are too many.

  1. Lasers
  2. Mirror arrangement
  3. Light Sensors Soldering
  4. Laser/Light Testing in Lobby
  5. Speaker soldering/set up
  6. Script for Sound
  7. Sound Design


LIFT TO-DO
Description: Inside-out lift
Goal: Making the inaudible AUDIBLE

  1. Accelerometer Soldering
  2. Accelerometer Testing in Lift
  3. Record Lift door timings
  4. SD Card Module Soldering
  5. SD Card Testing
  6. Laser and Light Sensor arrangement
  7. Speakers soldering/set up
  8. External Power for both arduino and speaker.
  9. Sound Design
  10. Script for Sound

Testing the Accelerometer

ADXL362wat.png

Using another accelerometer

Testing RC Switch

Testing the SD Library

Sdcardarduino.png

  • next goal: audio playback of wav file on sd card reader......

WORKING SCRIPT FOR PLAYING BACK A WAV FILE ON THE SD CARD READER!!!!

#include <SD.h>
//#define SD_ChipSelectPin 10
#include <TMRpcm.h>
const int chipSelect = 4;

TMRpcm tmrpcm;
char mychar;

void setup(){
  
  tmrpcm.speakerPin = 9;
  
   Serial.begin(9600);
  Serial.print("Initializing SD card...");
  // make sure that the default chip select pin is set to
  // output, even if you don't use it:
  pinMode(10, OUTPUT);
  
  // see if the card is present and can be initialized:
  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or not present");
    // don't do anything more:
    return;
  }
  Serial.println("card initialized.");
  
  if (SD.exists("SS.WAV")) {
    Serial.println("SS.WAV exists.");
  }
  else {
    Serial.println("SS.WAV doesn't exist.");  
  }  
  
   tmrpcm.play("SS.WAV");
}
    
void loop(){
 return;}

Testing the Wifi shield

  • Result: Does not connect to Eduroam because its WPA2 Enterprise. :-(
  • Solution: Project wifi network from smartphone.

Wifiarduino.png

Fixing up the Audio Jack

Audiojack.png Audiosocket.png

WORKING AUDIO OUTPUT FOR ARDUINO CIRCUIT

Workingaudio.png

  • Adapted from: http://apcmag.com/arduino-project-5-digital-audio-player.htm
  • iTunes Conversion:
    • Click > Edit > Preferences > Import Settings
    • Change the dropdown to WAV Encoder and Setting: Custom > 16.000kHz, 8-bit, Mono
    • Right click any file in iTunes, and select "Create WAV Version"
    • Copy file to SD card using computer

Combining the accelerometer and the audio

  • Error: "DMP Initialization failed (code 1)"
  • The DMP, or Digital Motion Processor, is an internal processing unit contained within the MPU-6050 and its successors (MPU-6150, MPU-9150, possibly more in the future). The processor has been described by InvenSense employees as a sort of limited CPU, or alternatively as an enhanced ALU (arithmetic logic unit), which is built with an instruction set designed for very specific 3D math operations necessary for orientation calculation. There is currently no known resource for understanding what this instruction set is or how it works.

Libraries

See also