Show Posts
Pages: 1 ... 6 7 [8] 9
106  Using Arduino / Project Guidance / Re: New to Arduino - Looking for advice on: May 16, 2012, 11:19:43 am
what is the structure made of?
107  Using Arduino / Project Guidance / Re: Reset Transistor: Soldering/Coding advice on: May 16, 2012, 11:11:45 am
Because I'm working from the example code 'musicPlayAll' as it had half of what I needed already working. I figured it would be the best starting place as it is recommended on the Music Shield Wiki.

Have you used this shield before?

Can you help with the problem I am asking about instead of picking apart every other aspect of the sketch?

108  Using Arduino / Project Guidance / Re: Reset Transistor: Soldering/Coding advice on: May 16, 2012, 10:37:17 am
Found this on another forum topic. Do you think it will work for this project?
I'm going to try.

I recently put together a simple sleep library that does exactly what this poster is looking for. You can find it here:

https://github.com/n0m1/Sleep_n0m1

In this library you can set how long the arduino sleeps for by calling the function sleepDelay(milliseconds of sleep). It works pretty much the same as the delay() function but it sleeps the arduino for that time. It works using the watchdog timer so you can even use it in full power down mode. It includes a few examples to get your started. I hope this helps someone out there! Goodluck!
109  Using Arduino / Project Guidance / Re: Reset Transistor: Soldering/Coding advice on: May 16, 2012, 10:08:14 am
I'm not sure how to write it so that it works how I want.

Start in play mode>Play all recordings>Then reset
                           >If tilted> Reset into play mode


Start in record mode> Record until tilted>Reset.



This (I hope) is the barebones code. I need to set up the reset mode but I do not know how.

Sorry if my code is sloppy.

Code:
#include <avr/io.h>
#include "config.h"
#include "filesys.h"
#include "player.h"
#include "vs10xx.h"
#include "record.h"
#include <SoftwareSerial.h>

const int groundpin = 66;           // analog input pin 4 -- ground
const int powerpin = 67;           // analog input pin 5 -- voltage
const int xpin = 65;                // x-axis of the accelerometer
const int ypin = 64;               // y-axis od the accelerometer

SoftwareSerial mySerial(2, 3);

void setup()
{
  Serial.begin(9600);
 
 /*Provide ground and power by using the analog inputs as normal
   digital pins.  This makes it possible to directly connect the
   breakout board to the Arduino. */

  pinMode(groundpin, OUTPUT);
  pinMode(powerpin, OUTPUT);
  digitalWrite(groundpin, LOW);
  digitalWrite(powerpin, HIGH);

 
  InitSPI();
  InitIOForVs10xx();
  InitIOForKeys();
  InitIOForLEDs();
  InitFileSystem();
   Mp3Reset();
}


void loop()
{
  /*
Set X&Y axis to light up an LED if the accelerometer tips past 30 degrees in any direction from flat.
|| means 'or'
< and > mean greater or less than
*/ 

// If at boot the Arduino is tilted past 30 degrees on the X or Y axis, Playback. If not then reset shield and enter recording.
   if (analogRead(xpin) > 589 ||analogRead(xpin) < 433||analogRead(ypin) > 589 ||analogRead(ypin) < 433  )
  {
   Play();     
  }
else
  {
    #if defined(__AVR_ATmega2560__)
   {
        Record();
   }
  #endif
  }
}
110  Using Arduino / Project Guidance / Re: Reset Transistor: Soldering/Coding advice on: May 16, 2012, 09:30:25 am
The PSKey is the play/pause button on the shield.
Code:
while(0 == PSKey);
tells the record function to keep recording until the button is pressed.
 I've taken that code out as I will not use it in my design. Thanks for the pointer.

I think
Code:
Record(); refers to record.h

I have cleaned this up but the reset still doesn't work.
Code:
#include <avr/io.h>
#include "config.h"
#include "filesys.h"
#include "player.h"
#include "vs10xx.h"
#include "record.h"
#include <SoftwareSerial.h>

const int groundpin = 66;           // analog input pin 4 -- ground
const int powerpin = 67;           // analog input pin 5 -- voltage
const int xpin = 65;                // x-axis of the accelerometer
const int ypin = 64;               // y-axis od the accelerometer
const int reset = 54;

SoftwareSerial mySerial(2, 3);

void setup()
{
  Serial.begin(9600);
 
 /*Provide ground and power by using the analog inputs as normal
   digital pins.  This makes it possible to directly connect the
   breakout board to the Arduino. */

  pinMode(groundpin, OUTPUT);
  pinMode(powerpin, OUTPUT);
  pinMode(reset, OUTPUT);
  digitalWrite(groundpin, LOW);
  digitalWrite(powerpin, HIGH);
  digitalWrite(reset, LOW);
 
  InitSPI();
  InitIOForVs10xx();
  InitIOForKeys();
  InitIOForLEDs();
  InitFileSystem();
   Mp3Reset();
}


void loop()
{
  /*
Set X&Y axis to light up an LED if the accelerometer tips past 30 degrees in any direction from flat.
|| means 'or'
< and > mean greater or less than
*/ 

// If the Arduino tilts past 30 degrees on the X or Y axis, Playback. If not, Record.
   if (analogRead(xpin) > 589 ||analogRead(xpin) < 433||analogRead(ypin) > 589 ||analogRead(ypin) < 433  )
  {
   while(0);
   Play();     
  }
else
  {
  #if defined(__AVR_ATmega2560__)
   // If within 30 degrees on X and Y during boot, enter recording.
   
   {
        delay(20);
delay(20);
        Record();
        delay(10000);
        digitalWrite(reset, HIGH);
        delay(7000);
        digitalWrite(reset, LOW);
   }
  #endif
  }
}
111  Using Arduino / Project Guidance / Re: Reset Transistor: Soldering advice on: May 16, 2012, 08:46:37 am
I have tried adding a reset of pin 54 (on the mega) like this

Code:
const int reset = 54;
void setup()
{
  pinMode(reset, OUTPUT);
  digitalWrite(reset, LOW);
}

void loop()
{
   if (analogRead(xpin) > 589 ||analogRead(xpin) < 433||analogRead(ypin) > 589 ||analogRead(ypin) < 433  )
  {
   Play(); 
   while(0);   
  }
else
  {
  #if defined(__AVR_ATmega1280__)|| defined(__AVR_ATmega2560__)
   // If play/stop button is pressed during boot, enter recording.
   
   {
        delay(20);
        while(0 == PSKey);
delay(20);
        Record();
        delay(3000);
        digitalWrite(reset, HIGH);
        delay(5000);
   }
  #endif
  }}

Into here as displayed
Code:
#include <avr/io.h>
#include "config.h"
#include "filesys.h"
#include "player.h"
#include "vs10xx.h"
#include "record.h"
#include <SoftwareSerial.h>

const int groundpin = 66;             // analog input pin 4 -- ground
const int powerpin = 67;              // analog input pin 5 -- voltage
const int xpin = A11;                  // x-axis of the accelerometer
const int ypin = A10;                  // y-axis od the accelerometer
const int reset = 54;

SoftwareSerial mySerial(2, 3);//pin2-Rx,pin3-Tx(note: pin3 is actually later used as volume down input(not needed))

void setup()
{
  Serial.begin(9600);
  //Serial.println("Hello test!");
 
  // Provide ground and power by using the analog inputs as normal
  // digital pins.  This makes it possible to directly connect the
  // breakout board to the Arduino.
  pinMode(groundpin, OUTPUT);
  pinMode(powerpin, OUTPUT);
  pinMode(reset, OUTPUT);
  digitalWrite(groundpin, LOW);
  digitalWrite(powerpin, HIGH);
  digitalWrite(reset, LOW);
 
  InitSPI();

  InitIOForVs10xx();

  InitIOForKeys();
 
  InitIOForLEDs();

  InitFileSystem();

  //VsSineTest();

  Mp3Reset();
}



void loop()

{
    // print the sensor values:
  Serial.print(analogRead(xpin));
  // print a tab between values:
  Serial.print("\t");
  Serial.print(analogRead(ypin));
  // print a tab between values:
  Serial.print("\t");
  Serial.println();
 
  /*
Set X&Y axis to light up an LED if the accelerometer tips past 30 degrees in any direction from flat.
|| means 'as well as'
< and > mean greater or less than
*/ 

// If the bottle tips past 30 degrees on the X or Y axis, record. If not, Playback.
   if (analogRead(xpin) > 589 ||analogRead(xpin) < 433||analogRead(ypin) > 589 ||analogRead(ypin) < 433  )
  {
   Play(); 
   while(0);   
  }
else
  {
  #if defined(__AVR_ATmega1280__)|| defined(__AVR_ATmega2560__)
   // If play/stop button is pressed during boot, enter recording.
   
   {
        delay(20);
        while(0 == PSKey);
delay(20);
        Record();
        delay(3000);
        digitalWrite(reset, HIGH);
        delay(5000);
   }
  #endif
  }
}

but it doesn't seem to do anything.
112  Using Arduino / Project Guidance / Re: Reset Transistor: Soldering advice on: May 16, 2012, 08:20:56 am
The seeeduino music shield needs to be reset to activate the record mode.

I want to set it so that it records, resets after 10 seconds and if it's tilted over 30 degrees it plays back the recording.
I have almost all of the code working but it still needs to be reset physically which is an impossibility for this project (it's going to be sealed inside a bottle).
Code:
#include <avr/io.h>
#include "config.h"
#include "filesys.h"
#include "player.h"
#include "vs10xx.h"
#include "record.h"
#include <SoftwareSerial.h>

const int groundpin = 66;             // analog input pin 4 -- ground
const int powerpin = 67;              // analog input pin 5 -- voltage
const int xpin = A11;                  // x-axis of the accelerometer
const int ypin = A10;                  // y-axis od the accelerometer

SoftwareSerial mySerial(2, 3);//pin2-Rx,pin3-Tx(note: pin3 is actually later used as volume down input(not needed))

void setup()
{
  Serial.begin(9600);
  //Serial.println("Hello test!");
 
  // Provide ground and power by using the analog inputs as normal
  // digital pins.  This makes it possible to directly connect the
  // breakout board to the Arduino.
  pinMode(groundpin, OUTPUT);
  pinMode(powerpin, OUTPUT);
  digitalWrite(groundpin, LOW);
  digitalWrite(powerpin, HIGH);
 
  InitSPI();

  InitIOForVs10xx();

  InitIOForKeys();
 
  InitIOForLEDs();

  InitFileSystem();

  //VsSineTest();

  Mp3Reset();
}



void loop()

{
    // print the sensor values:
  Serial.print(analogRead(xpin));
  // print a tab between values:
  Serial.print("\t");
  Serial.print(analogRead(ypin));
  // print a tab between values:
  Serial.print("\t");
  Serial.println();
 
  /*
Set X&Y axis to light up an LED if the accelerometer tips past 30 degrees in any direction from flat.
|| means 'as well as'
< and > mean greater or less than
*/ 

// If the bottle tips past 30 degrees on the X or Y axis, record. If not, Playback.
   if (analogRead(xpin) > 589 ||analogRead(xpin) < 433||analogRead(ypin) > 589 ||analogRead(ypin) < 433  )
  {
   Play(); 
   while(0);   
  }
else
  {
  #if defined(__AVR_ATmega1280__)|| defined(__AVR_ATmega2560__)
   // If play/stop button is pressed during boot, enter recording.
   
   {
        delay(20);
        while(0 == PSKey);
delay(20);
        Record();
   }
  #endif
  }
}
113  Using Arduino / Project Guidance / Reset Transistor: Soldering/Coding advice on: May 16, 2012, 08:13:01 am
Hi,
How would you go about soldering this to the reset button on the arduino so that pin 24 can trigger a reset?
114  Using Arduino / Audio / Re: Seeeduino Music Shield: Possibility of digital trigger record? on: May 15, 2012, 10:02:42 am
I currently have the accelerometer's angle effecting the record or play functions when the arduino is reset.
I want the reset to be controlled by the accelerometer as well.
A0 is used for Reset of VS1053.
Is it possible to reset the shield with this?
http://seeedstudio.com/wiki/Music_Shield#Pins_usage_on_Arduino

Here is my code and project.
Code:
#include <avr/io.h>
#include "config.h"
#include "filesys.h"
#include "player.h"
#include "vs10xx.h"
#include "record.h"
#include <SoftwareSerial.h>

const int groundpin = 66;             // analog input pin 4 -- ground
const int powerpin = 67;              // analog input pin 5 -- voltage
const int xpin = A11;                  // x-axis of the accelerometer
const int ypin = A10;                  // y-axis od the accelerometer

SoftwareSerial mySerial(2, 3);//pin2-Rx,pin3-Tx(note: pin3 is actually later used as volume down input(not needed))

void setup()
{
  Serial.begin(9600);
  //Serial.println("Hello test!");
 
  // Provide ground and power by using the analog inputs as normal
  // digital pins.  This makes it possible to directly connect the
  // breakout board to the Arduino.
  pinMode(groundpin, OUTPUT);
  pinMode(powerpin, OUTPUT);
  digitalWrite(groundpin, LOW);
  digitalWrite(powerpin, HIGH);
 
  InitSPI();

  InitIOForVs10xx();

  InitIOForKeys();
 
  InitIOForLEDs();

  InitFileSystem();

  //VsSineTest();

  Mp3Reset();
}



void loop()

{
    // print the sensor values:
  Serial.print(analogRead(xpin));
  // print a tab between values:
  Serial.print("\t");
  Serial.print(analogRead(ypin));
  // print a tab between values:
  Serial.print("\t");
  Serial.println();
 
  /*
Set X&Y axis to light up an LED if the accelerometer tips past 30 degrees in any direction from flat.
|| means 'as well as'
< and > mean greater or less than
*/ 

// If the bottle tips past 30 degrees on the X or Y axis, record. If not, Playback.
   if (analogRead(xpin) > 589 ||analogRead(xpin) < 433||analogRead(ypin) > 589 ||analogRead(ypin) < 433  )
  {
   Play(); 
   while(0);   
  }
else
  {
  #if defined(__AVR_ATmega1280__)|| defined(__AVR_ATmega2560__)
   // If play/stop button is pressed during boot, enter recording.
   
   {
  delay(20);
while(0 == PSKey);
delay(20);
        Record();
   }
  #endif
  }
}


115  Using Arduino / Audio / Re: Seeeduino Music Shield: Possibility of digital trigger record? on: May 14, 2012, 07:03:49 pm
I'm going to try

Code:
void (*softReset) (void) = 0; //declare reset function @ address 0
softReset();

and

Code:
//digitalPin 7 is connected to the RESET pin on Arduino
//NOTE: you CANNOT program the board while they are connected
//by default digitalPin 13 will blink upon reset, so stick an LED in there

int interval = 5000;
long int time = 0;

void setup(){
  digitalWrite(7, HIGH); //We need to set it HIGH immediately on boot
  pinMode(7,OUTPUT);     //We can declare it an output ONLY AFTER it's HIGH
                         // (( HACKHACKHACKHACK ))
  Serial.begin(9600);    //So you can watch the time printed
}


void loop(){

  time = millis();
 
  Serial.println(time);
 
  if(time > interval){
    Serial.println("RESET!");
    digitalWrite(7, LOW); //Pulling the RESET pin LOW triggers the reset.
  }
}
http://www.forums.adafruit.com/viewtopic.php?f=8&t=15435

And rig up something to keep a current running through the Play/Pause control until just after the reset.

I'm not sure what yet.

Suggestions would be appreciated.
116  Using Arduino / Audio / Seeeduino Music Shield: Possibility of digital trigger record? on: May 14, 2012, 03:43:08 pm
Hi,
I have encountered a problem I lack the direction to fix. I need a push in the right direction.

I want the record function of a seeeduino music shield to be triggered by an accelerometer via a Arduino MEGA. The problem being the record function is currently set so that you have to
Quote
Press play/stop knob before pressing the RESET button of Arduino.
Release RESET button for a second and then release play/stop knob.
When the music shield is beginning to record, the green and red LEDs will blink synchronous.
Press play/stop knob will stop recording.
http://seeedstudio.com/wiki/Music_Shield

The demo code for the shield is
Code:
#include <avr/io.h>
#include "config.h"
#include "filesys.h"
#include "player.h"
#include "vs10xx.h"
#include "record.h"
#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3);//pin2-Rx,pin3-Tx(note: pin3 is actually later used as volume down input)

void setup()
{
  Serial.begin(9600);
  //Serial.println("Hello test!");
  mySerial.begin(19200);// used for receiving command data from the iPod dock.
  
  InitSPI();

  InitIOForVs10xx();

  InitIOForKeys();
  
  InitIOForLEDs();

  InitFileSystem();

  //VsSineTest();

  Mp3Reset();
  
}


void loop()
{
#if defined(__AVR_ATmega1280__)|| defined(__AVR_ATmega2560__)
   // If play/stop button is pressed during boot, enter recording.
   if (0== PSKey)
   {
   delay(20);
while(0 == PSKey);
delay(20);
        Record();
   }
#endif

   Play();  
   while(1);
}

I'm trying to integrate it into this accelerometer code that will currently 'do something' when the arduino is tilted past 30 Degrees on the x or y axis. If there is a way of doing it with an 'if' statement then I am already set up for that.
Code:

// these constants describe the pins. They won't change:
const int groundpin = 66;             // analog input pin 4 -- ground
const int powerpin = 67;              // analog input pin 5 -- voltage
const int xpin = A11;                  // x-axis of the accelerometer
const int ypin = A10;                  // y-axis
const int zpin = A9;                  // z-axis (only on 3-axis models)

void setup()
{
  // initialize the serial communications:
  Serial.begin(9600);
  
  // Provide ground and power by using the analog inputs as normal
  // digital pins.  This makes it possible to directly connect the
  // breakout board to the Arduino.  If you use the normal 5V and
  // GND pins on the Arduino, you can remove these lines.
  pinMode(groundpin, OUTPUT);
  pinMode(powerpin, OUTPUT);
  digitalWrite(groundpin, LOW);
  digitalWrite(powerpin, HIGH);
}

void loop()
{
  // print the sensor values:
  Serial.print(analogRead(xpin));
  // print a tab between values:
  Serial.print("\t");
  Serial.print(analogRead(ypin));
  // print a tab between values:
  Serial.print("\t");
  Serial.print(analogRead(zpin));
  Serial.println();
  // delay before next reading:
  delay(100);
  
  if (analogRead(xpin) > 589 ||analogRead(xpin) < 433||analogRead(ypin) > 589 ||analogRead(ypin) < 433  )
 {
  
 }
else
{
  
}
}

The problem being I do not know how and I need a hint from someone with more experience than myself.

Might I have to write or edit some library pages?
 
Is it the hardware on the Music Shield that is already set to record in this way? If so, can it be changed within the Arduino 1.0 software?

I'm not sure where to go from here. Thank you in advance for any light you can shed on this subject.

Stu
117  Using Arduino / Programming Questions / Re: Error Compiling - Help please. on: May 13, 2012, 09:31:35 am
Cheers for the reply.

This also helped.

http://www.jjoe64.com/2011/12/adk-arduino-wprogramh-not-found.html
118  Using Arduino / Programming Questions / Error Compiling - Help please. on: May 13, 2012, 09:19:18 am
Hi Everyone,
Hope you're enjoying your Sundays.

Code:
#include <avr/io.h>
#include "config.h"
#include "filesys.h"
#include "player.h"
#include "vs10xx.h"
#include "record.h"
#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3);//pin2-Rx,pin3-Tx(note: pin3 is actually later used as volume down input)

void setup()
{
  Serial.begin(9600);
  //Serial.println("Hello test!");
  mySerial.begin(19200);// used for receiving command data from the iPod dock.
  
  InitSPI();

  InitIOForVs10xx();

  InitIOForKeys();
  
  InitIOForLEDs();

  InitFileSystem();

  //VsSineTest();

  Mp3Reset();
  
}


void loop()
{
#if defined(__AVR_ATmega1280__)
   // If play/stop button is pressed during boot, enter recording.
   if (0== PSKey)
   {
   delay(20);
while(0 == PSKey);
delay(20);
        Record();
   }
#endif

   Play();

   while(1);
  
}


brings up this

Quote
In file included from C:\Program Files\arduino-1.0\libraries\music_v1_13/filesys.h:5,
                 from music.cpp:4:
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:5:22: error: WProgram.h: No such file or directory
In file included from C:\Program Files\arduino-1.0\libraries\music_v1_13/filesys.h:5,
                 from music.cpp:4:
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:19: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:20: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:21: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:22: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:52: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:53: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:56: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:58: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:61: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:73: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:74: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:75: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:76: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:77: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:78: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:89: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:90: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:91: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:92: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:93: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:94: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:95: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:108: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:109: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:112: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:114: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:117: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:129: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:130: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:131: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:132: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:133: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:134: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:145: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:146: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:147: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:148: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:149: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:150: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:151: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:158: error: 'byte' does not name a type
In file included from music.cpp:4:
C:\Program Files\arduino-1.0\libraries\music_v1_13/filesys.h:10: error: 'byte' does not name a type

When trying to upload the sample code for the Seeeduino music shield. Any idea what the problem is?

Thanks in advance, You're all ace.
119  Using Arduino / Project Guidance / Re: Controlling an ISD1932 Voice Recorder with an Accelerometer - Advice please. on: April 08, 2012, 07:21:59 pm
I want the BOB-10653 to record when the device is tilted past 30 degrees and play when it tilts back. Is this even possible? I'm having great difficulty getting it to work at all.

I want one recording only.
I'm using a 100k resistor on the ROSC at the moment.

 Apart from that I don't know if I should use Address or Direct as I do not understand the Data Sheet.
I could do with some advice on where to go from here.
120  Using Arduino / Project Guidance / Re: Help me- on: April 07, 2012, 01:31:25 pm
What am i supposed to set s0 and s1 to do?
Pages: 1 ... 6 7 [8] 9