Need help with speakjet project
kicknitinkc
Posts: 28
I am basically using a bs2, speakjet chip, an lm386 op amp, and an 8 ohm speaker.
This is the circuit I'm using straight from the user's manual:
(ignore the picaxe comment)
This the op-amp circuit I am using:
I am having issues with this circuit. When I flip the on switch of the board of education, the speaker will play the first two serout commands and then just pause after that. I can still hear that the speaker has power so I'm thinking it may be an issue with the BS2. Maybe too much power is being drained by the op-amp? How can I fix this? Your input is greatly appreciated.
Thanks,
Sam
This is the circuit I'm using straight from the user's manual:
(ignore the picaxe comment)
This the op-amp circuit I am using:
I am having issues with this circuit. When I flip the on switch of the board of education, the speaker will play the first two serout commands and then just pause after that. I can still hear that the speaker has power so I'm thinking it may be an issue with the BS2. Maybe too much power is being drained by the op-amp? How can I fix this? Your input is greatly appreciated.
Thanks,
Sam
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
It looks like you're just sending a bunch of phonemes to the SpeakJet (open loop) without checking for any feedback from the SpeakJet. It has a 64-byte buffer so you should be ok for the first pass case but it would be a problem if you start sending a lot of text to the chip. You can use the buffer half full signal from the SpeakJet as a way to throttle the amount of data you send to it.
From the original description there really isn't any way to tell for sure what the issue is. To start I would connect an LED to one of the other un-used pins and within your code you can toggle that pin. At least that way you can tell if the Stamp is still processing. You'll need to start testing otherwise it is all purely speculation. If you have a meter I would also measure the current draw of the whole circuit and if it seems high try to pinpoint the issue by removing power to your amp circuit first and then the SpeakJet. Are you powering everything from a 5V supply?
I've used the SpeakJet quite a bit and it is a good chip. You can find out some more about how that chip is used if you pickup the December 2007 issue of SERVO. It has an article on using the SpeakJet to replace an older SC-01 speech chip.
Good luck,
Robert
http://www.techlib.com/electronics/audioamps.html
http://www.rason.org/Projects/icamps/icamps.htm
Try to·download this code to your BS2, the code that I have attached here, is a·Parallax demonstration·code, for SpeakJet Demo Borard's.
You may have to change some of the·Pins·connections at your BS2 to SpeakJets circuit.··
Time to tackle the next pieces of my project: data logging, ir detection, motor control, and LCD.
·At your code, you have declared·the flow control Pin (rdy PIN 4),·but you are not using·it,·at the SEROUT line!
part of your code:
tx·PIN·15
rdy·PIN·4· '<
flow control Pin
SEROUT·TX,·$0054,·[noparse][[/noparse]WW,UX,NO,VV,OW,LO,TT]
In the other codes for -SpeakJet-·(as the one I have attached before) the SEROUT line looks like this:
SEROUT Tx\Rdy, Baud, [noparse][[/noparse]element]
Wouldn't be a problem, with·no·flow control at the SEROUT line?
SEROUT Tx\rdy,
·
Functions explained as Tpin and Fpin
in·SpeakJet case, Tpin=Tx and Fpin= rdy
·
Sam
here's the code if you don't want to download it:
Post Edited (kicknitinkc) : 5/7/2010 2:50:06 AM GMT
I think I'll try your progeram codes, first the part you have write for the SpeakJet,
then I may go further and try the rest, who knows, maybe it could stop me to smoke!
Don't you want to put your project at the Completed Projects?
Keep the Good work
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔