Hardware Reference
In-Depth Information
❍
You could connect multiple soft toys, each with diferent voices, and have a conversa-
tion. (Hint: Create
chick0 = chicken.Chicken(pfio,0)
and
chick1 =
chicken.Chicken(pfio,1)
and then wire a diferent chicken up to each relay.)
❍
You could control more motors in your soft toy and make it dance if it detects certain
hash tags.
❍
If you're really adventurous, you could replace the
espeak.py
module completely
with a module that splits simple phrases up into words and plays a sound recording of
yourself saying each of the words for a more natural sound. Chapter 17, “he Techno-
Bird Box, a Wildlife Monitor”, uses the
split
function, and Chapter 5, “Ping”, shows
how to play sounds.