In short, this is a game that I made during my Digital III class at school. It shoots ping-pong balls with compressed air

It took me 3 months, and I build it from scratch. I was having 2 partners who were supposed to make two simple things - the target, and the gun stand ... and they couldn't ... loosers. The rest I've developed by myself, which include prety much the entire project

the gun (a PVC pipe) was supposed to rotate left and right with a stepper motor. I made the controller, but the guy failed making the stand ...

the other guy couldn't put two wires in the target for 3 weeks ... ?!?

AND IT WORKS

requirements:

- 8051 based microcontroller
- LCD
- 16-key keypad (has to have a way to enter letters and numbers)
- External memory (RAM)
- ADC or DAC
- DC motor with controllable speed, or Stepper motor, or other special device
- 5 indicators
- 2 switches
- code has to incorporate 2 interrupts
- system should be easy to work with



all met

the system has 512 bytes or RAM, of which 84 are used only, lol. The chip has 2K or RAM though



I'll run ya through the game, it's fun











Here's the demo that runs until you start playing















So, you flip the Switch 1, and game starts







so here's what I entered .... lol








so it shows the players names ..



and the action begins ...



enter pressure in PSI. It works from 1 to 99 PSI If the pressure is less than what you've entered, a small Walmard stype tire compressor starts building pressure in the white cylinder. You see the pressure real time on the 2 displays up top. When the desired value is reached, the system stops the pump, lights up the GREEN light, and you're ready to shoot. So you aim the gun (move it left or right until you think you're gonna hit the target - switch 2 up and you control the stepper motor that moves the gun with the keypad), and fire - the red button opens a solenoid valve, and the air goes out to the gun, and the ping-pong ball shoots out If you hit the limits of the gun movement, a red light will signal you that. The two LEDs are for left and right limit.

If the pressure is over of what you entered, then you can shoot right away with some more pressure. If you want your desired lower pressure than what's already in the cylinder from the previous player, then you shoot a couple of times on empty guy to lower the air pressure, then enter your value, and the system will make it for ya ...

So you shoot and:



oops ... looks like you missed. If you hit, then the yellow LED would light up, and a score point would be added to your score


This repeats for all players (all 3), and the number of game round you wanted to play.

Then:





If two players have same scores, than both names are displayed. If all players have same scores, then all are winners


What you all think