Electronic Cricket Game V2

by lonesoulsurfer in Circuits > LEDs

4178 Views, 27 Favorites, 0 Comments

Electronic Cricket Game V2

Electronic Handheld Cricket Game
DCFA481E-7692-4F90-8A75-F4A401791A92.gif
FGI2O5RL33AVVC5.jpg
DSC_2025.JPG
DSC_2026.JPG
30CA9951-9D42-4333-B3EE-8EE114543ED2.gif
DSC_2070.JPG

Build your own electronic, handheld cricket game! Cricket Test matches are known for being played over 5 days and sometimes there’s still not a winner – 5 days!!! In honor of the noble game, I decided to build my own electronic cricket match handheld game so I could play it anytime I wanted (with the added benefit of nice, quick matches)

The electronic game itself is pretty straight forward, score as many runs as possible before you go out! I usually give myself 3 outs before I call game over. There are a few cricket terms added to the board which will hopefully help anyone who is keen to learn a little more about the game. I've included a bit of a glossary in the last step and also instructions on how to play the game.

The board I designed in Eagle and all of the components are soldered directly to the board so no need for any messy wires. Version one was all done on prototype board and was a real pain. There were wires everywhere and it was glitchy. This new version was a breeze to put together and works perfectly.

If you are new to soldering then this project would be great to hone your soldering skills. I have provided all of the gerber files (the files you need to get your own board printed) and have provided a step below on how to get boards printed.

Hackster.io did a review on this project which you can find here

Supplies

DSC_1943.JPG
DSC_1961.JPG
DSC_1959.JPG
DSC_1957.JPG
DSC_1998.JPG
DSC_1991.JPG
DSC_2006.JPG

I have put together a parts list below. This list can also be found as a spreadsheet in my Google Drive. I have also added the gerber files, schematic and board in there as well. More on those in the next steps.

PARTS:

  1. PCB - see the next step on how to get your own printed
  2. 9V battery
  3. 9V battery holder (one that is made for PCB connection) - eBay
  4. Tactile momentary switches X 3 - eBay
  5. SPDT Sliding switches X 2 - eBay
  6. Capacitors
  7. 1uf - eBay
  8. 3.3uf- eBay
  9. 10uf - eBay
  10. 1nf X 2 - eBay
  11. Resistors - Buy these in assorted lots - it's cheaper and you get a large variety - eBay
  12. 12K x 2
  13. 20K
  14. 10k X 2
  15. Trimmer Pot 5K (3362P) - eBay
  16. 7 Segment display (common cathode) X 2 - eBay
  17. IC's
  18. 555 - eBay
  19. 4017 - eBay
  20. 4026 X 2 - eBay
  21. IC Sockets
  22. 8 Pin X 1 - eBay
  23. 16 Pin X 3 - eBay
  24. 3mm LED's X 8 (I used 6 yellow and 2 red) - eBay

Getting the PCB Printed

Presentation1.jpg
DSC_1932.JPG
DSC_1934.JPG

The first thing you will need to do is to get the PCB printed. It's very easy to get the board printed up and cheap as well. I like to use JPLPCB (not affiliated at all) who do a good job at printing the boards. You could also use PCB Way or Osh Park who also provide a quality product. I have decided to include this step as it can be a little daunting if it's the the first time organising a board to be printed.

STEPS:

1. The first thing you will need to do is to save the zipped gerber file in my Google drive. Save the file called: Electronic Cricket Game -Gerber file to your computer

2. Next, go to the JPLPCB website and click on the 'quote now' button

3. Add the saved gerber file (see the first image provided)

4. It will take a little bit to download but once it has you'll see the front and back of the board.

5. Lastly add to shopping cart and checkout. You'll need to decide on how you want it sent as well. i usually pick the quickest option (air) but it is the most expensive.

That's it! Now just sit back and wait for the boards to arrive.

How It All Works

Schematic.jpg
Electronic Cricket - PCB.jpg

If you take a look at the schematic you'll see that there is in actual fact 2 circuits. The first one which is the scoreboard circuit and the second one is the game circuit.

Scoreboard circuit

Let's start with the 555 timer IC. This has been wired as a monostable Multivibrator which gives a 'high' pulse and acts like a switch and counts the numbers on the 7 segment display. There is a switch connected to pin 2 which allows you to cycle through the numbers on the 7 segment display.

IC 4026 is a seven segment display decade counter which is used to drive a 7 segment display with input clock pulse. The 555 timer gives the clock pulse and is fed into the pin 1 of the first 4026. Two 7 segment displays are stringed together (which is why there are 2 4026 IC's) which allows for the counters to go right up to 99. Also included is a reset button to make the 7 segment display show '00' once the game is over

Game Circuit

The game circuit is a well known circuit which uses a 4017 decade counter to drive LED's. There are 2 IC's used so Let's start with the 555 timer again. This time it is wired up as an astable multivibrator and has been configured to allow the LED's to mover fast or slow. This allows you to either play the game so the LED's are moving very fast across the board or at a slower pace (which means you can judge better when an LED will come on).

The output from the 555 timer passes into the input of IC2 which is a Johnson Decade counter 4017. It has 10 outputs which 8 outputs are used. Output 9 ( pin9) is tied to the reset pin 15 to repeat the cycle.

When the tactile switch connected to pin 6 on the 555 is pressed, the LED's will randomly start to flash. When released one LED will be lit and this what the outcome is. For example, if it lands on boundary, then you scored 4 runs.

Adding Components to the PCB

DSC_1935.JPG
DSC_1937.JPG
DSC_1944.JPG
DSC_1948.JPG
DSC_1951.JPG
DSC_1966.JPG
DSC_1970.JPG
DSC_1972.JPG

Soldering the components on to a PCB is the fun bit. The best advice that I can give you is to firstly, make sure you have a semi decent soldering iron and good quality solder. second, always start with the lowest height components and work up. Usually that means starting with the resistors.

The board I designed is 2 sided. One side has all of the electrical components and the other the controls and scoreboard for playing the game. You will want to start with the component side first

STEPS

  1. Fist, start with the resistors. There aren't many to add so will be easy to do
  2. Next, I like to add the IC sockets. To ensure that they are soldered in flat, solder into place pin1 and then pin 9 on the IC. check to make sure it is sitting flat and if so, solder the rest of the legs to the PCB
  3. Now you can solder on the rest of the components like the caps etc
  4. To be able to control the brightness of the LED's I have included a 5K trimmer pot
  5. DON'T solder on the battery holder yet. Leave this to last as there are LED's that need to be soldered on under the battery holder and you need to do this first

Adding the Switches, LED's & 7 Segment Displays to the PCB

DSC_1979.JPG
led-polarity.jpg
DSC_1983.JPG
DSC_1986.JPG
DSC_1992.JPG
DSC_1999.JPG
DSC_2001.JPG
DSC_2008.JPG
DSC_2065.JPG

Now that you have all of the components connected, you need to flip the board and start to connect all of the parts to the front section.

STEPS:

  1. First, solder into place the tactile switches - there are 3 to add
  2. Next add the LED's. take note of the polarity and ensure that you solder these in correctly. The Ground leg (cathode) needs to be aligned to the right LED hole on the PCB. Use different colours for runs (I used yellow) and wickets (I used red)
  3. The 7 segment displays can be added next.
  4. Once all the components have been added to the front side, you can go ahead and solder into place the battery holder. I added a little bit of superglue to the feet of the battery holder to keep it in place

How to Play - Electronic Cricket

How to Play.jpg
45E11540-F889-4188-82C9-3D5D0D359DE6.gif
DSC_2050.JPG
DSC_2027.JPG
DSC_2047.JPG

The game itself is easy to play however, there may be some cricket terms that might seem weird to people new to the game so here's a glossary for each.

Losing a wicket - this is when the batsman goes out and a new batsman comes into play. I usually make it 3 wickets and then the game is over

Bowled - This is when the blower hits the wickets and the batsman is out

Caught - This is where the batsman has hit the ball and it has been caught on the full and the batsman is out

Boundary - Ball hits the fence around the oval and automatically scores 4 runs

Sixer - Ball is hit on the full over the fence

No Ball - Bowler goes over the line with he's foot when bowling, batsman scores 1 run

How to play

  1. Turn on the game
  2. Decide whether you want to have the LED's move fast or slow. Slow makes the game easier.
  3. Reset the score to 00. You can do this by hitting the reset button. If it doesn't go back to 00, then hold the 'run' button and hit reset again
  4. The LED's will be jumping all around. To play the game, hit the play button. This will freeze the LED's and only one will be on. This is the outcome of the ball being 'bowled'
  5. Use the 'run' button to add the score to the scoreboard
  6. I set the wickets at 3 - so as soon as I have 3 wickets, then the game is over. Your score is the amount of runs you make over 3 wickets.