Go Down

Topic: speakjet (Read 1 time) previous topic - next topic

ljbeng

I have the speakjet connected to the arduino.  I can put the speakjet in demo mode and hear all the jibberish.  If I put it in normal mode, I cannot get it to say anything.   I can reset the chip and hear "ready" but it will not say what I send serial.  I was worried the baud rate was somehow changed so I did the sonar ping thing and you can see that in my commented out code below.  I know pin 7 is sending serial data to rcx but only by looking at a volt meter dip during the serial send.  I don't have a scope to actually look at the data stream.  I do not know what I am doing wrong....
Some of the code below is "deparation" coding attempts since nothing is working.

Code: [Select]

#include <SoftwareSerial.h>

int rst = 14;
int m1 = 15;
int m0 = 16;

SoftwareSerial speakjet(6,7);


void setup() {
  // put your setup code here, to run once:

pinMode(7,OUTPUT);
pinMode(6,INPUT);
speakjet.begin(9600);
pinMode(rst,OUTPUT);
pinMode(m1,OUTPUT);
pinMode(m0,OUTPUT);

digitalWrite(rst,LOW);
digitalWrite(m1,HIGH);
digitalWrite(m0,LOW);
delay(1000);
digitalWrite(rst,HIGH);
delay(1000);
/*
digitalWrite(m1,LOW);
delay(400);
digitalWrite(m1,HIGH);
delay(3000);
speakjet.write(0x55);
delay(1000);
digitalWrite(rst,LOW);
digitalWrite(m0,LOW);
delay(100);
digitalWrite(rst,HIGH);
*/

}

void loop() {
  // put your main code here, to run repeatedly:
digitalWrite(rst,LOW);
delay(100);
digitalWrite(rst,HIGH);
delay(4000);
speakjet.println("what is the color of red?");
delay(4000);
}

durnik59

First sorry for my english

I got the same problem did you use the voiceboxshield and TTS or only TTS?

If you got voiceboxshield and TTS did you do the solder? I did it but i think with the revision the shematic change may it the causes of no-sound.

For imformation or if you can i have donne the test before i solder the TTS on voicebox ( soo only voicebox) and it worked but the voice where not good.

ljbeng

This is just the tts chip on my own board.  I can hear the demo sounds but if I send serial text, it never says anything.

ljbeng

I have another clue.... If I run the R2D2 example, I hear bleeps and blurps so the serial is working BUT...

I will not speak anything if I just send it some text to speak...????

Code: [Select]

    char playTone[] = {210,207,6,209,208,227,218,202,203, 4,224,223,222,221,255};   
    Serial.println(playTone); //WORKS!
    delay(3000);
     Serial.println("hello r 2 d 2"); //Does NOT WORK
    delay(4000);

Megaionstorm

Does this work ?

Code: [Select]
char say[] = {20, 96, 21, 114, 22, 88, 23, 5, 183, 7, 159, 146, 164, 152, 174, 128, 128};
Serial.println(say);
Mein Arduino Projekte Blog:
http://ardu-megatank.blogspot.de/

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy