Pages: [1]   Go Down
Author Topic: speakjet  (Read 1033 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#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);
}
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
    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);
Logged

0
Offline Offline
Edison Member
*
Karma: 20
Posts: 1980
Wo ein Wille ist, da ist auch ein Weg !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does this work ?

Code:
char say[] = {20, 96, 21, 114, 22, 88, 23, 5, 183, 7, 159, 146, 164, 152, 174, 128, 128};
Serial.println(say);
Logged

Mein Arduino Projekte Blog:
http://ardu-megatank.blogspot.de/

Pages: [1]   Go Up
Jump to: