It was two days before the exhibit when we started moving very fast. We had a head, a jaw attached to it, and eyes and eyelids on it. We also had the code for everything except the jaw. We had crafts materials, such as yarn, paint and glue, thanks to Lyn who took me and Juliette to a crafts store on Marathon Monday. We also had the sound files re-recorded in Marie's voice, because... well, it was just more effective when she said it. So here is how everything came together.
The week before Chris visited and showed us how to make the NXT play a sound file. This was great, except the NXT was not really audible even at top volume. So I asked Lyn if he could get us a microphone and speaker set for amplifying the sound. And he did! That was one problem solved. After about 3 hours filing with various instruments, I got the jaw to fit into the skull. Only then was I able to test my codes for playing the sound files. I soon realized that the software wasn't going to work before I fixed the mechanical issues. I had to play around with the gear ratio and decided on 1 to 8. I also had to figure out a way to attach the motor to the skull. I had wanted it to be in the box under the skull, nıcely hidden away. However, carrying the power to the jaw's rod was too complicated for me in that case. So, I drilled two holes on the sides of the skull and put two rods through them. I attached the motor to these rods and built the gears next to and on top of it. This proved to be quite a stable structure. Furthermore, I took off the tape that held the other two motors together and used Lego pieces to stabilize them. This took quite a bit of time and loads of help form Lyn.While I was doing that, Christine and Marie were building a paper-mache head for Wendy. Marie also found a ridicolous little nose for her on the crafts table that we later attached to her face. While the paper-mache was drying, this is how the final mechanism looked:
 |
| Sideview of the finished mechanism |
 |
| Top view into the "skull" |
 |
| Bottom view showing the many pieces making the structure stable |
 |
| The paper-mache head drying next to the box holding the sensors and bricks |
The next day, we all came together to work. I had started to make a wig for Wendy and Christine took that over while I worked on the jaw program. I wrote the code for each phrase separately and tried different angles for different syllables. I ended up getting a code for gently opening and closing the mouth in a generic talking motion which lasted different amounts of time for each phrase. Then, Marie helped me put these in a case structure to alternate between phrases. I did not want to put them in an infinite while loop and create an unpredictable puppet. Instead, I incorporated two sound sensors into our design at the last minute. While Marie and Christine were painting the head an the face, I was getting background noise readings of the Leaky Beaker. Then, Marie and I changed the program so that our puppet would say "Come closer." when the sound level was a little over the background. We also got readings for a conversation and used the average of these values for a speech threshold. When this threshold was reached, Wendy would say "Hi!" or "Hello!" If the sound level remained above the threshold for a period of time after this, she would proceed to say "Hmmm.... interesting!" or alternatively, "Tell me more!", assuming that someone had been talking to her all this time. At this point, her cosmetics were also done. We put her head, her eyebrows and her wig on, and she was ready to go! Well, except her gigantic head. We came up with an idea to cover this up by putting a hat on her head. Surprisingly, she looked pretty good this way, and a lot like Marie!
 |
| Wendy with her makeup on |
 |
| The resemblance is undeniable! |
We were finally ready! We moved Wendy, her box, the speakers, the microphone and my laptop upstairs to the exhibit area. The microphone and speakers needed to be attached to my computer at all times to function. The speakers also needed to be plugged in. We put one speaker on each of the two front corners of our table. The microphone was taped to the NXT producing sound and stowed away under the box. The eyebrows and eyelids were set. Our sign was in front of us. We turned her on!
Wendy did OK but was not very reliable during the exhibit. She had a couple of issues. First of all, the eye code depended on a background reading to detect the motion. This reading changed with every restart. If someone was standing in front of one of the sensors at the first second, then the eyes wouldn't function properly. We had to reset many times until we got a working setup. The talking part was also flawed. People weren't able to tell apart what she was saying. When we explained it to them, they started talking to her but she didn't respond quickly enough because of the wait we had put between the phrases. Some of her parts came off during the resetting process and needed to be fixed. Therefore, we kept taking off her head and fixing her constantly. Marie fixed most of these issue for the Maker Faire the next day. With the eyes tracking properly, she was truly creepy. Despite her imperfections, she provided amusement for a good while. We put her up in the studio, facing the back entry to Science Center so she can happily creep on many others to come.
 |
| Lyn and Marie at the end of the exhibit: Lyn is working that wig! |