Fast-game

Fast-game

 

 

fast

 

This is the first mini-game that I have designed and build.

The game is about being faster than your opponent. The players each have a button, which they will have to press as fast as possible when the "GO!"-LED lights up. The fastest gets a point, and the first to get 3 points win the game! If you cheat by pressing the button before the "GO!" signal your opponent will get the point.

 

 

Click below to watch my Youtube video about this game!

 

 

 

 

 

Everything you will need to build it yourself can be found at the bottom of the page.



This game uses the PIC16F628a microcontroller. I have written the source-code in C, but the HEX-file can also be downloaded.

 

You will need a PIC programmer, the official, most recent programmer is the PICKit3 from Microchip, but you can find cheap DIY programmers by searching Google. I can recommend the JDM programmer, this is the only DIY I have tried but it did the job..

 

The voltages on your RS-232 port have to be exact though, else it will not work.
Link: Multi PIC Programmer 5 Ver.2  (The programmer is not my design, all rights belong to the original creator!)

 

 


 

Materials list:

 

1x     PIC16F628a (U1)

1x     18-Pin DIP socket (optional, place @ U1)

3x     Momentary switches (S1, S2, S3)  (I used 1 low profile for the "start" button S3. Pin spacing are 12.5 mm by 5 mm)

5x     20 mA LEDs (I used red for the "GO" D3, and green for the points D1, D2, D4, D5)

8x     Resistors ( R2, R3, R4, R5 = 270 ohm and R1 = 1x 180 ohm. ) ( R6,R7,R8 can be any value between 5k and 100k )

1x     7805 5v regulator (U2)

2x     Capacitors (C1, C2 = 100 uF 35v, anything >10 uF will do )

1x     Jumper link / wire (between pin 14 of the PIC and 5V. See image at the top, or watch the video)

 


 

 

 

Downloads:

Number of downloads: 185

Source code

Number of downloads: 171

Number of downloads: 158

Number of downloads: 159

Number of downloads: 171