miro_gt
12-13-2006, 11:44 PM
In short, this is a game that I made during my Digital III class at school. It shoots ping-pong balls with compressed air :D
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 :D
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
:D
all met
the system has 512 bytes or RAM, of which 84 are used only, lol. The chip has 2K or RAM though
:D
I'll run ya through the game, it's fun
http://www.we-todd-did-racing.com/files/971611_a6nfl/D3%20-%20Front%20Page%20-%20653.jpg
http://www.we-todd-did-racing.com/files/971613_mzo5s/D3%20-%20Back%20-%20662.jpg
http://www.we-todd-did-racing.com/files/971614_bpkhz/D3%20-%20Back%20-%20659.jpg
http://www.we-todd-did-racing.com/files/971612_efg0t/D3%20-%20All%20systems%20-%20569.jpg
http://www.we-todd-did-racing.com/files/971615_zzivu/D3%20-%20Board%20with%20wires%20-%20573.jpg
Here's the demo that runs until you start playing
http://www.we-todd-did-racing.com/files/971616_czwhl/D3%20-%20Demo%201%20-%20647.jpg
http://www.we-todd-did-racing.com/files/971617_icf5j/D3%20-%20Demo%202%20-%20646.jpg
http://www.we-todd-did-racing.com/files/971618_aysjo/D3%20-%20Demo%203%20-%20648.jpg
http://www.we-todd-did-racing.com/files/971619_ltmgs/D3%20-%20Demo%204%20-%20718.jpg
http://www.we-todd-did-racing.com/files/971620_zperp/D3%20-%20Demo%205%20-%20717.jpg
http://www.we-todd-did-racing.com/files/971621_vablz/D3%20-%20Demo%206%20-%20644.jpg
http://www.we-todd-did-racing.com/files/971622_hovbi/D3%20-%20Demo%207%20-%20645.jpg
So, you flip the Switch 1, and game starts :D :D
http://www.we-todd-did-racing.com/files/971625_ggn7m/D3%20-%20Game%20Starts%20-%20713.jpg
http://www.we-todd-did-racing.com/files/971624_k8tlp/D3%20-%20Game%20Rounds%20-%20696.jpg
http://www.we-todd-did-racing.com/files/971628_d9yan/D3%20-%20Player%201%20name%20-%20697.jpg
so here's what I entered .... lol
http://www.we-todd-did-racing.com/files/971626_838sz/D3%20-%20Player%201%20done%20-%20698.jpg
http://www.we-todd-did-racing.com/files/971629_ifmsm/D3%20-%20Player%202%20done%20-%20699.jpg
http://www.we-todd-did-racing.com/files/971630_ynwen/D3%20-%20Player%203%20done%20-%20701.jpg
so it shows the players names ..
http://www.we-todd-did-racing.com/files/971631_krsgl/D3%20-%20Players%20names%20-%20702.jpg
and the action begins ...
http://www.we-todd-did-racing.com/files/971627_yic9t/D3%20-%20Player%201%20load%20-%20704.jpg
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 :D 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:
http://www.we-todd-did-racing.com/files/971633_dztrw/D3%20-%20Score%20-%20710.jpg
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:
http://www.we-todd-did-racing.com/files/971623_bi9d0/D3%20-%20Game%20Over%20-%20722.jpg
http://www.we-todd-did-racing.com/files/971635_7mbav/D3%20-%20Winner%20-%20714.jpg
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 :D :D :D :D :D
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 :D
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
:D
all met
the system has 512 bytes or RAM, of which 84 are used only, lol. The chip has 2K or RAM though
:D
I'll run ya through the game, it's fun
http://www.we-todd-did-racing.com/files/971611_a6nfl/D3%20-%20Front%20Page%20-%20653.jpg
http://www.we-todd-did-racing.com/files/971613_mzo5s/D3%20-%20Back%20-%20662.jpg
http://www.we-todd-did-racing.com/files/971614_bpkhz/D3%20-%20Back%20-%20659.jpg
http://www.we-todd-did-racing.com/files/971612_efg0t/D3%20-%20All%20systems%20-%20569.jpg
http://www.we-todd-did-racing.com/files/971615_zzivu/D3%20-%20Board%20with%20wires%20-%20573.jpg
Here's the demo that runs until you start playing
http://www.we-todd-did-racing.com/files/971616_czwhl/D3%20-%20Demo%201%20-%20647.jpg
http://www.we-todd-did-racing.com/files/971617_icf5j/D3%20-%20Demo%202%20-%20646.jpg
http://www.we-todd-did-racing.com/files/971618_aysjo/D3%20-%20Demo%203%20-%20648.jpg
http://www.we-todd-did-racing.com/files/971619_ltmgs/D3%20-%20Demo%204%20-%20718.jpg
http://www.we-todd-did-racing.com/files/971620_zperp/D3%20-%20Demo%205%20-%20717.jpg
http://www.we-todd-did-racing.com/files/971621_vablz/D3%20-%20Demo%206%20-%20644.jpg
http://www.we-todd-did-racing.com/files/971622_hovbi/D3%20-%20Demo%207%20-%20645.jpg
So, you flip the Switch 1, and game starts :D :D
http://www.we-todd-did-racing.com/files/971625_ggn7m/D3%20-%20Game%20Starts%20-%20713.jpg
http://www.we-todd-did-racing.com/files/971624_k8tlp/D3%20-%20Game%20Rounds%20-%20696.jpg
http://www.we-todd-did-racing.com/files/971628_d9yan/D3%20-%20Player%201%20name%20-%20697.jpg
so here's what I entered .... lol
http://www.we-todd-did-racing.com/files/971626_838sz/D3%20-%20Player%201%20done%20-%20698.jpg
http://www.we-todd-did-racing.com/files/971629_ifmsm/D3%20-%20Player%202%20done%20-%20699.jpg
http://www.we-todd-did-racing.com/files/971630_ynwen/D3%20-%20Player%203%20done%20-%20701.jpg
so it shows the players names ..
http://www.we-todd-did-racing.com/files/971631_krsgl/D3%20-%20Players%20names%20-%20702.jpg
and the action begins ...
http://www.we-todd-did-racing.com/files/971627_yic9t/D3%20-%20Player%201%20load%20-%20704.jpg
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 :D 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:
http://www.we-todd-did-racing.com/files/971633_dztrw/D3%20-%20Score%20-%20710.jpg
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:
http://www.we-todd-did-racing.com/files/971623_bi9d0/D3%20-%20Game%20Over%20-%20722.jpg
http://www.we-todd-did-racing.com/files/971635_7mbav/D3%20-%20Winner%20-%20714.jpg
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 :D :D :D :D :D