Our assignment was to make a board that interfaces an input device with an output device.
To remake the carnival game I decided to add a step response input to the hello LCD board. I added the header and resistor in cad.py. The screenshot is below and the .cad file is here.
I then used Jonathan Ward’s mini PCB mill to mill out my board. It worked great!
After a light sanding with some fine grit sandpaper I went ahead and stuffed the board.
The numbers on the 10-pin header in the .cad file correspond directly to the pin numbers on the back of the LCD. You can see how they connect in the picture below.
I loaded the original LCD code to make sure everything was working correctly before I started making changes. For the first iteration I pulled off the resistor connected to the step response header, powered the PB2 pin and coded in an interrupt for when the PA7 pin flipped. You can see the code here. The LCD shows “Don’t touch the wires!” until the two wires touch and then it reads “You lose. Start Over!”
Here is the game!