--"wall left, open right", and
--"wall right, open left"
which in turn controls the cockroaches movement (it's not going to move left if it feels a 'wall' on the left.
I recently realized that probably a better way of controlling the cockroaches movements is by just putting one LED on each side of its head, since they run away from light. Just turn both on to make it go forward, and one on to make it turn left or right. LEDs would require a lot less power and mechanical complexity. I'm going to try it out.
Cockroach backpack paradigm being tested, cockroach responded as desired to the backpack commands
Cockroach backpack being tested, nitinol constriction moves antenna flap.
Step 1: Making the Backpack
I used really crappy materials that I had on hand to make the backpack, it could be built a lot better with different materials. Apparently nitinol can be soldered, which I didn't know at the time, so I crimped the nitinol at its ends (pretty friggen annoying).
If you reduce the weight enough you could make it remote controlled (instead of controlled by preprogrammed commands from the basic stamp). See the remote control diagram. You could also add sensors and make the basic stamp use the sensors to control the roach.
Step 2: Making the Backpack Circuit
You can make the backpack remote controlled (see diagram with RF receiver).
You can make the basic stamp issue preprogrammed commands (see diagram without RF receiver)
Or you can make the basic stamp use sensors to make autonomous decisions (no diagram for that).
To reduce weight, I used cardboard and taped the electronic components to it. I wire wrapped the pins of the electronics to each other.
Step 3: Attaching the Backpack
Gently slide it out of its box onto a 'gas stage' (don't know what these are called but look at the photo). This gas stage emits CO2 so the cockroach stays asleep.
Carefully clip off the wings to avoid cutting the exoskeleton. Cut far away from the attachment point and work your way closer so as not to damage anything else.
Put a small drop of super glue onto your backpack and attach it on the second segment (see picture) of the cockroach. DO NOT use too much glue or you will glue the segments together.
Turn off the gas and let the cockroach wake up. Make sure it's in an arena or it might run off with your backpack.
To remove the backpack, knock the cockroach out again, put a tiny bit of solvent (like acetone) on the tip of something and dab it around the edges of the backpack. It will come loose.
Let the cockroack wake up and return it to its cage. See my instructable on how to care for cockroaches: