Go Down

Topic: I2C interface with SP03 (Read 1 time) previous topic - next topic

Mr_Fixit

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:

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:

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.

CrossRoads

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

wayneft

Are you sure the address is 0x62 not 0xC4 ?
I2C GPS Shield

Checkout my Open Source GPS Tracker on Kickstarter

johnwasser

http://www.robotstorehk.com/SP03Tech.pdf

Did you include the required I2C pull-up resistors in your circuit?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

CrossRoads

Are these available in the US? Looks like a neat board.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up