Redesigning Sound

From Wikicliki
Revision as of 19:43, 9 November 2013 by WikiSysop (talk | contribs) (Testing the SD Library)

Jump to: navigation, search

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

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

  • Testing the

Libraries

See also