Audio Circuit DiagramsClock & Timer Circuit DiagramsLCD-LED DisplayRobotics Circuit Diagrams

Robot Voice Schematic Circuit Diagram

Fans of the film ‘2001 a Space Odyssey’ will no doubt recall the polite yet sinister voice of HAL, the ship’s computer. It stands to reason that all proper robots need a (not necessarily menadng) voice.

Robot Voice Schematic Circuit Diagram

Those of you who imagine that a voice box would require a whole heap of ICs are mis­taken; the ISD2500 ChipCorder family of ICs from Winbond contains almost all the necessary hardware in a single IC to record and playback audio messages. Included on the IC is a microphone preamp and AGC suitable for a low-cost electret type micro­phone, an output amplifier to drive a loud­speaker, memory, an oscillator, an A/D and a D/A converter. There are four basic models; 2560, 2575, 2590 and 25120, the numbers following 25 indicate the avail­able recording time in seconds. The mem­ory capacity of each version is actually the same but longer recording times are achieved by using a lower sampling rate. The chip with the shortest recording time therefore offers the best audio quality.

The simplest circuit required to use the device in playback mode only is shown in Figure 2, the only external components required are just two decoupling capaci­tors. This circuit can be used in the robot whilst the circuit shown in Figure 1 can be used for both recording and playback. A socket for IC1 fitted in both circuits will allow the chip to be moved into the robot once the sounds have been recorded.

Recordings are made by following this sequence.

First switch S3 to record mode (a low on pin 27). A press of S2 now begins the recording which is ended by another press on 52; a third press of 52 starts the next recoding period and so on. This can con­tinue until there is nothing more to record or when LED D2 lights to show that the memory is MI. Playback can be performed by momentarily toggling S1 and switch­ing S3 into ‘play’ mode, now with each press of S2 the recorded messages will be sequentially played back. The recordings can be overwritten by toggling S1, switch­ing S3 to record and then using S2 to start recording from the beginning again.

Some flexibility in the playback mode allows individual messages to be linked together; each recorded message is termi­nated by an EOM (End Of Message) flag when it is stored in the chip. Instead of storing complete phrases like ‘obstacle ahead’ for example it is more efficient to store ‘obstade’ then ‘ahead’, ‘to the right, ‘to the left’ and ‘behind’ and likewise for numbers ‘one’, ‘two’ ‘hundred’ ‘point’ etc allows voicing of the complete range of numbers from these basic elements.

The minimum playback circuit shown in  uses the AO, PD, /CE and /EOM signals  interfaced to the robot miaocontroller. For playback PD is reset to ‘0’ and to play the first message a low puke is Oven on CE. With AO at ‘0’ playback occurs at normal speed but with AO at ‘1’ the chip enters ‘fast forward’ mode where it advances through the message at 800 times its nor­mal playback speed. When the third mes­sage needs to follow the first for example, the processor sets A0 to ‘1’ and pulses /CE low to fast-forward through the second message, waiting for the /EOM flag to go low. Once this occurs AO is reset to ‘0’ and a low pulse on /CE plays back the third message.

The /EOM output pulse can be less than 10 ms wide so it is better to use it to inter­rupt the processor rather than just poll its status. An example C code listing has been written by the author for a 16-bit Texas MSP430 microcontroller interfaced to this chip and is available for free download from the Elektor Electronics website, ref. 070313-11.zip.

Tags

Related Articles

Leave a Reply

Your email address will not be published.

Back to top button
Close
Close