As an admitted newbie to PBASIC and Stamps, I practice the LBSA (Learn By Stumbling Around) method of education.
I'm trying to figure out how to pass a variable to the Emic chip. I can get the chip to speak text strings but what I want is to be able to have it announce the value of a constantly changing variable (the distance being returned by an ultrasonic transducer).
The Emic is actually pretty easy to use, and the demo code should help you through what you're looking to do. If you run into trouble, post your code and what you want it to do -- lots of us will jump in and help you out.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Jon Williams Applications Engineer, Parallax
Dallas, TX· USA
I pulled it out of the bag, hooked up as per manual on a homework board and had a fine demo in just a few minutes. I sent the output to an internal speaker I pulled from a broken PC.
My students really enjoyed the show-and-tell.· I let them modify the code and those·middle school boys were quick to test and point out that the pronunciation of various profanities was clear but not with the right street inflection. At least they are learning something in the process.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
As an admitted newbie to PBASIC and Stamps, I practice the LBSA (Learn By Stumbling Around) method of education.
I'm trying to figure out how to pass a variable to the Emic chip. I can get the chip to speak text strings but what I want is to be able to have it announce the value of a constantly changing variable (the distance being returned by an ultrasonic transducer).
Any pointers would be appreciated.
Thanks again.
You can insert a value as text into a string by using the DEC modifier.· For example:
Say_Temp:
· SEROUT Tx, Baud, [noparse][[/noparse]Say, "The current temperature is ", DEC tempF, " degrees.", EOM]
· RETURN
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Post Edited (Jon Williams) : 4/14/2005 2:15:07 PM GMT
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
My students really enjoyed the show-and-tell.· I let them modify the code and those·middle school boys were quick to test and point out that the pronunciation of various profanities was clear but not with the right street inflection. At least they are learning something in the process.
Thanks for the out loud laugh.
Jack