Offline
Newbie
Karma: 0
Posts: 8
|
 |
« on: January 21, 2013, 04:17:24 pm » |
We are designing 3 lightswitches to connect to a speaker so that each switch plays a different sound. For example (Switch 1) will be a beeper noise, (Switch 2) will make the speaker say "YES", and (Switch 3) will make the speaker say "NO". I am having trouble writing a code for this, and also figuring out how to hook everything up to the Arduino Uno (using certain pins). My mentor stated it would be best to write up a circuit to figure out what pins will connect where, but I don't really understand the pins and which to use for PMW. Please help with either writing a circuit or a code! Deadline is soon! Need help now!!
|
|
|
|
|
Logged
|
|
|
|
|
Indiana, US
Offline
Full Member
Karma: 12
Posts: 161
|
 |
« Reply #1 on: January 21, 2013, 04:20:16 pm » |
Do you have the switches, and how are you intending to make the sounds?
|
|
|
|
|
Logged
|
There are 10 types of people in the world, those that understand binary, and those that don't.
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #2 on: January 21, 2013, 04:26:26 pm » |
Two duplicates deleted. Do not cross-post.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #3 on: January 21, 2013, 04:32:54 pm » |
I took the speaker out of a "Staples That was Easy" button and yes I have 3 lightswitches from home depot.
|
|
|
|
|
Logged
|
|
|
|
|
Indiana, US
Offline
Full Member
Karma: 12
Posts: 161
|
 |
« Reply #4 on: January 21, 2013, 04:37:56 pm » |
How are you saying the words? Do you have a sound device, or does the Staples button make the sounds you need?
|
|
|
|
|
Logged
|
There are 10 types of people in the world, those that understand binary, and those that don't.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #5 on: January 21, 2013, 04:43:02 pm » |
I found this site online and thought this would be our best bet in speech. http://code.google.com/p/tinkerit/wiki/CantarinoOtherwise I honestly don't know.
|
|
|
|
|
Logged
|
|
|
|
|
Indiana, US
Offline
Full Member
Karma: 12
Posts: 161
|
 |
« Reply #6 on: January 21, 2013, 04:51:25 pm » |
From your link... Cantarino is a software speech synthesiser for Arduino. It is still a work in progress I'd start thinking of a plan B if this doesn't work. Now, that all said, why don't you describe your assignment so we can understand what you're doing, rather than asking for us to: Please help with either writing a circuit or a code! Deadline is soon! Need help now!! Also, you should become familiar with: http://arduino.cc/en/Tutorial/HomePage
|
|
|
|
|
Logged
|
There are 10 types of people in the world, those that understand binary, and those that don't.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #7 on: January 21, 2013, 04:59:51 pm » |
My assignment is to design a speech synthesizer for a child with cerebral palsy so that he is able to answer questions in class. there will be three light switches for him to press. one with a buzzer (which would be like a child raising his hand). one that will say yes and another for no to answer the question.
|
|
|
|
|
Logged
|
|
|
|
|
Indiana, US
Offline
Full Member
Karma: 12
Posts: 161
|
 |
« Reply #8 on: January 21, 2013, 05:10:55 pm » |
That sounds like an excellent project.
Speech synthesis can be tricky. Have you considered using green or red lights as indicators first? Maybe yellow for " I don't know"
|
|
|
|
|
Logged
|
There are 10 types of people in the world, those that understand binary, and those that don't.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #9 on: January 21, 2013, 05:25:07 pm » |
Do you mean green or red lights to tell the teacher yes or no instead of actually speaking them aloud?
|
|
|
|
|
Logged
|
|
|
|
|
Indiana, US
Offline
Full Member
Karma: 12
Posts: 161
|
 |
« Reply #10 on: January 21, 2013, 07:05:11 pm » |
Yes, maybe try this first to get your switches and logic working before trying to get a voice synth to work.
|
|
|
|
|
Logged
|
There are 10 types of people in the world, those that understand binary, and those that don't.
|
|
|
|
|