Now for the fun stuff. Let's add some electronics to this contraption!
Mount Servo Motor
Mark placement of motor with a pencil.
Use hot glue to stick the motor in place.
Bend paper clip at point where it will connect to servo arm.
Trim excess off paper clip.
Poke the end of the paper clip through the servo arm. Our gate is now motorized!
Connect servo to Servo port 1 and alligator clip to Touch pad 1. The other end of the alligator clip will connect to your capacitive touch pad which can be placed anywhere outside the box.
Now is also a good time to connect your battery pack which will power the servo motor.
Cut out a small section from the sheet of Pyralux PCB material (or other conductive substance). This will be the trigger for the servo motor.
Clip the other end of the alligator clip to the copper Pyralux. This trigger can be placed anywhere on the outside of the box.
When the cat touches this pad, it will change the capacitance of the pad. As it is connected to the Crickit via a wire with alligator clips, the change in capacitance will register on the Crickit capacitive touch input.
If you'd like to add a tray to catch treats as they're dispensed, a large shipping tube or something similar works well.
Cut tube down the middle.
Using hot glue, stick one half of tube to bottom of box.