Now it's time to hook up the servo motor to the CPX and test out your code!
The servo has three wires joined to a 3-pin female connector. Plug the male header pins on the ends of the alligator clip wires into this connector. To avoid confusion, choose wires that match the color of the servo wires.
A simple way to remember this:
If the servo wires don't reach the CPX, use female/male extension jumper wires to make them longer.
Test out your code to be sure it does what you want it to.
One issue you may find is that the servo arm extension hits the lid with a loud noise and the lid bounces.
You can dampen both effects by putting some padding on the lid where the arm hits it. A piece of peel-and-stick craft foam works well.
To make the box open, you want the person to move their hand over the CPX. This will block the light, telling the light sensor to trigger the servo, sound, and lights.
For best results, you may want to place a desk lamp pointing down towards the CPX. That way, you'll know there will be a measurable difference between the light and the shadow of someone's hand.
How can you trick someone into reaching out over the CPX without tipping them off that something is about to startle them? One idea is to draw a fake-looking button and write "Press Here" on it. Tape it to the lamp or somewhere that will make the person reach across the control box and block the light. They probably won't even reach the button before the lid flips open and the CPX starts playing its song!