Let’s start with his voice! (Part 3 – Wiring)
The wiring of the Raspberry Pi to the Arduino and the Arduino to HERO’s speech board is described in this section. Unfortunately, I’m actually a couple steps passed this at the time of writing and am trying to catch up on the history of what I have done. This means that the wiring I’m describing comes from memory, as I’m not ready to disassemble my current circuit. (You’ve been warned 😉 )
For the wiring of the Pi to the Arduino, the excellent blog post (http://blog.oscarliang.net/raspberry-pi-arduino-connected-i2c/) helped tremendously.
It shows:
RPI Arduino (Uno/Duemillanove) -------------------------------------------- GPIO 0 (SDA) <--> Pin 4 (SDA) GPIO 1 (SCL) <--> Pin 5 (SCL) Ground <--> Ground
Please note the Arduino is plugged into a 12V power supply.
The connection from the Arduino to the HERO speech board is set up as follows:
Arduino HERO Speech
-----------------------------------
Vin <--> P502 Pin 13
Ground <--> P502 Pin 14
Pin 2 <--> P501 Pin 3 (Strobe)
Pin 3 <--> P501 Pin 4 (Acknowledge/Request)
Pin 4 <--> P501 Pin 11 (Power)
Pin 8 <--> P501 Pin 10 (Phoneme 0)
Pin 9 <--> P501 Pin 9
(Phoneme 1)
Pin 10
<-->
P501 Pin 8
(Phoneme 2)
Pin 11
<-->
P501 Pin 7
(Phoneme 3)
Pin 12
<-->
P501 Pin 6
(Phoneme 4)
Pin 13
<-->
P501 Pin 5
(Phoneme 5)
Finally, P502 Pin 12 is connected to the positive lead of a speaker, and the negative is tied to the ground.
I’m currently in the process of trying to minimize the circuit, and in the process of experimenting with a shift register to control the various inputs HERO’s speech board, but more on that at a later date. For now, this should cover the gist of the wiring.