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