For the automated figure and door, I choose to go with the HS-322HD because it was relatively inexpensive and provided enough torque to suit my needs. I initially connected a small nylon control horn I got from an on-line hobby shop to a cardboard door with hot glue to test the door mechanism and found that when the door stuck a little, the torque from the servo ripped the control horn right off of the cardboard door. Well, that wasn't going to do. If the torque was too much for the cardboard, it would certainly bee too much for a door made of gingerbread. The solution I came up with was to build a small wooden sub-frame from luan. I attached several small nylon hinges onto the wood frame and the small wooden door. This proved to be strong enough to handle the torque from the servo. The idea here is to hot glue this sub-frame to the front inside wall and to hot glue the gingerbread door onto the wooden door so that the wooden door serves as a durable backing to the gingerbread.
The following is a video of the mock gingerbread house I set up:
Ok so we finally got around to assembling and wiring the gingerbread house yesterday. We decided to go with a castle. The reason for this is because the wood sub-frame I built for the door was too large for a "normal" sized gingerbread house. The photo you see below is the wiring in the main house on the second level of the castle. I used hot glue to glue each led in place. The cable wrapped in black electrical tape is the wire trunk for the 12 LEDs. Eight of the LEDs are in the main house and the remaining four were placed in the tower next to the house. The blue cable is the wiring for the LCD display on front of the main house. Both wiring trunks go down to the first level where they connect to the Arduino.
The following is a photo of the first level. Here you can see the two servos, one on the left and one on the right. In the center lies the Arduino.
The following are some photos of the finished house:
Below is a video of the gingerbread house in action:
Although it is a little hard to see, the LCD panel in the front says Merry Christmas in English, Spanish and French.
It's been a couple of years since I've built this project and I should have documented it better at the time so I've updated this page with additional info and source code.
Source code for this can be downloaded here.
I used the original LCD3Wire library and an HD44780 based LCD for the display. The library has has since been updated. The schematic and information on the new library can be found here.