Devantech SP03

Talk about anything you want!
Post Reply
User avatar
Mr_Fixit
Posts: 34
Joined: Sun Jun 19, 2011 12:49 am

Devantech SP03

Post by Mr_Fixit » Thu Jun 30, 2011 7:33 am

Anyone had any luck getting the SP03 working on I2C? Looking at other code samples and the documentation, this is what I have to say custom text:

Code: Select all

  Wire.beginTransmission(0x62);  //Address
  Wire.send(0x00);                  // Command Register
  Wire.send(0x00);                  // NULL
  Wire.send(0x00);                  // Volume (Max)
  Wire.send(0x05);                  // Speed
  Wire.send(0x03);                  // Pitch
  Wire.send("This is a test");      // Text to say
  Wire.send(0x00);                  // NULL
  Wire.endTransmission();           // ***** Hangs here!!! *****
  Wire.beginTransmission(0x62);
  Wire.send(0x00);                  // Command Register
  Wire.send(0x40);                  // Command to say stored buffer text
  Wire.endTransmission();
And this is what I have to say a pre-stored phrase:

Code: Select all

  Wire.beginTransmission(0x62);
  Wire.send(0x00);
  Wire.send(0x02);
  Wire.endTransmission();
I have found that this all hangs on endTransmission no matter what I do.
If anyone has any suggestion/comment/whatever, lets have it. :)

Post Reply