View previous topic :: View next topic |
Author |
Message |
rajm
Joined: 06 Nov 2012 Posts: 29
|
speakjet ic with pic |
Posted: Wed May 08, 2013 4:26 am |
|
|
hi
i got speakjet ic to get voice output. in this text is serially transmitted from controller to ic to speak, but i dont know how to start coding using ccs compiler.. kindly help me to write.
regards |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Wed May 08, 2013 5:09 am |
|
|
Can you post a link to the ic, and quote your compiler version No. & chosen PIC etc.
Please try to make it easy for us to help you.
Mike |
|
|
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Wed May 08, 2013 9:55 am |
|
|
Hi,
Here is the Users Guide for the Speakjet chip: http://www.sparkfun.com/datasheets/Components/General/speakjet-usermanual.pdf
It appears that simple ASCII commands/data are all that the Speakjet requires, so simple printf statements should make it work. I looked at this synthesized voice solution a while back for a project, but judged the voice quality to be sub-standard, so I went with the 'EMIC' module from Parallax instead, at, albeit, four times the price!
John |
|
|
rajm
Joined: 06 Nov 2012 Posts: 29
|
|
|
jgschmidt
Joined: 03 Dec 2008 Posts: 184 Location: Gresham, OR USA
|
|
Posted: Wed May 08, 2013 10:34 pm |
|
|
Hi,
What is it you're having problems with?
The serial connection to the chip?
What codes to send to get a certain sound?
Connecting to a speaker?
I use a similar chip, the SoundGin/Babblebot, because it's better for making music, but it follows similar principles. I found Arduino libraries that I converted to CCS. The header files were the most useful.
Basic steps I followed were:
1) Make sure the PIC is generating serial output at the desired baud rate. I test with a terminal emulator on my PC. If you use the INVERT option on the #USE RS232 statement, you can go directly into the receive pin without needing a MAX232 or similar chip. Don't forget the ground connection. Pins 2 & 5 respectively on my 9-pin connection. This is just part of my standard debugging setup.
You will find many, many posts here relating to serial comms.
2) Verify the Speakjet is correctly connected to headphones or an amplifier circuit such as a LM386 by wiring up the Demo/Test configuration from the manual.
3) Now connect the transmit pin from the PIC to the Receive pin of the SpeakJet and try sending some simple commands. (Remember to remove the INVERT from the #USE RS232 statement.)
4) If you need help understanding how to perform complex tasks, google speakjet and you'll find lots of resources.
Happy coding... _________________ Jürgen
www.jgscraft.com |
|
|
|