Go Down

Topic: Speakjet and color sensor (Read 469 times) previous topic - next topic

durnik59

Hi first sorry for my english level but i'll try to do the better i can to be understanding.

I have for my last gradue test to do a projet along the year but i take too mutch time and now i have to get some help.

I tried to do a color sensor with a speacker for the blind people to got an good wear styles.

But it not already work and i don't look why.Soo please help me to understand how it work

First for this projet is use : Arduino UNO
-TCS3200 (color sensor)http://www.robotshop.com/eu/capteur-couleurs-tcs3200-dfrobot.html
-VoiceBoxShield + Speakjet PIC (https://www.sparkfun.com/products/9799 +https://www.sparkfun.com/products/9811)

I took a program on this forum and i make some coding for my project:

// speakjet IC
#include <SoftwareSerial.h>
#define txPin 2
#define rxPin 3
SoftwareSerial speakJet =  SoftwareSerial(rxPin, txPin);

char pingSound[] = {20, 96, 21, 114, 22, 88, 23, 5, 252};
char sayThis[] = {20, 96, 21, 120, 22, 120, 23, 12, 148, 135, 165, 151, 8, 148, 135, 165, 151};

int outPin1 = 5;
int outPin2 = 6;
int val=0;

int inPin=A0;

void setup()
{
  Serial.begin(9600);                           
 
  pinMode(txPin, OUTPUT);
  speakJet.begin(9600);
  delay(1000);
 
  pinMode(outPin1, OUTPUT);
  pinMode(outPin2, OUTPUT);
}


void loop()
{
  digitalWrite (outPin1, HIGH);
  digitalWrite (outPin2, HIGH);

  val=pulseIn(inPin,HIGH);
  Serial.println (val) ;
  if(val <=10)
  {
  speakJet.print(sayThis);
  Serial.print ("parle");
  delay (1000);
  }
 

}

Soo this is the start of program at this link u can look when it work he say "parle" mean  speak when the color take less than 10 ( the withe ) but the speacker don't speak ^^'

Soo i don't know if that the programm who do this or the connection of pin ect... I took a picture of my solder
I may do it false i really need help my teatcher don't got enought skill to help mine ( i learn by myself at longer of this year), and is evalued for got the year.

Go Up