SP0256-017 says some numbers and plays little melodies
30/12/2011I just received an SP0256-017 purchased on Ebay as the one on this picture from Flickr.
This version of the SP0256 was designed for talking clocks. I work with the help of a dedicated EPROM which hold the code for the numbers (without the EPROM, it can say the numbers from 0 to 10 but then it hangs). This version cannot says the allophones as it’s bigger brother the SP0256-AL2 variant
I found the data sheet here but the quality of the scan is quite poor. I used the schematics from the SP0256 to understand what to do.
The sound are quite funny and I couldn’t resist posting a little message just to let you ear this chip.
|
I just coded a loop to ear this table.
/* SP0256-017
* demo all 36 sounds
*/
// Arduino - SPO
// Pin 9 - 8
// Pin 10 - 20
// Pin 0,7 - Datas
#define SBY 9
#define ALD 10
void setup()
{
for (int p=0; p<=8; p++) {
pinMode(p, OUTPUT);
}
pinMode(ALD, OUTPUT);
pinMode(SBY, INPUT);
digitalWrite(ALD, HIGH);
}
void loop()
{
for (int p=0; p<=36; p++) {
PORTD = p;
// Set !ADL=0 for 2usec to tell the chip to read
digitalWrite(ALD, LOW);
delayMicroseconds(2);
digitalWrite(ALD, HIGH);
// Wait for SBYto comme to 1 (standby) to indicate chip is done speaking
while (digitalRead(SBY) == 0);
delay(100);
}
delay(2000); // delay 2 sec between test
}


