Skip to content

DB 9 Connector to the Fish

Mark Niemann-Ross edited this page Jan 4, 2017 · 2 revisions

I'm using a custom-built wooden box to contain all the circuitry. Because of the way the box is constructed, I need to be able to disconnect the fish from the Raspberry Pi to slide the top open. To do this, I opted to use a surplus DB9 connector (actually a DE-9, but usually incorrectly named DB9). These are easy to obtain and cheap. Before I mounted the fish, I connected the motor wires to the female end of the DB9, then mounted a male DB9 receiver in the circuit box.

I used a male DB9 from a serial port with ribbon cable already connected. I initially worried about how this connection would pin out, but realized that it didn't matter. I just made the connection, then used a Multimeter to check the actual circuit path.

The fish motors go through the DB-9 to a ribbon cable and appear next to the breadboard as a female ribbon connector. I can use simple jumper cables to connect between the fish motors and circuits on the breadboard.

Here's the pin-out at the ribbon connector, although this is primarily for my own reference. There isn't anything sacred about this layout.

left right
+ Mouth - Tail
+ Head + Tail
nc nc
nc - Head
xxx - Mouth