Pages: [1]   Go Down
Author Topic: Speakjet and color sensor  (Read 458 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
-VoiceBoxShield + Speakjet PIC ( +

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()
  pinMode(txPin, OUTPUT);
  pinMode(outPin1, OUTPUT);
  pinMode(outPin2, OUTPUT);

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

  Serial.println (val) ;
  if(val <=10)
  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.

Pages: [1]   Go Up
Jump to: