Digital Book Cricket Game with ATtiny 85 using Arduino

The project described here is a digital implementation of “book cricket game” which Indian students normally use to play in their childhood time. The heart of the project is 8 bit MCU from AVR family called ATtiny85. ATtiny85 are small and cheap microcontrollers which are convenient for running simple programs with low footprint. The software used for programming the MCU is Ardunio which is a popular open source IDE.

Arduino Digital Book Cricket Game

Step 1: Design

The overall design is kept to a least for simplicity and ease to use. The main components used in the circuitry are 16X2 LCD which is used to display the characters in 2 lines with maximum of 16 characters in one line, a serial in parallel out shift register HEF4094, ATtiny85, 2 push buttons and 7805 voltage regulator which regulates the voltage supply to maximum of 5 volts. Shift register HEF4094 is used because normally when LCD is used it requires 7 connections to the pins on the display. But if shift register is used the number of connections to the MCU can be reduced to only 3 wires.

Step 2: Circuit Diagram

Circuit Diagram for MCU connection with Shift Register.Pin 0,1,2 of ATtiny 85 goes to IC 4094 and pin 3(ADC) is kept floating.

Step 3: Working

Before starting with the game some random numbers are required. These random numbers can be generated by keeping the ADC channel of the ATtiny85 floating, which means no connection the pin. So that noise is generated and by using the mod 10 value of the noise, integers from 0-9 are generated.

For displaying the data on the LCD, arduino 3 wire LCD libraries are used because it provides an easy way to write the characters on LCD.

2 push switches are used to handle the input from the user. One is RESET switch which is used to reset the MCU and the other is HIT switch through which all the calibration and playing is done.

Components
1x Breadboard
1x 16*2 LCD
1x 7805 regulator
2x Push Button
1x 47K ohm
1x 100 ohm
1x 470 ohm
1x HEF4094BP
1x Attiny 85V

Step 4: STEPS TO PLAY THE GAME:

Schematic Arduino Digital Book Cricket Game

1.  When the power switch is pressed, “Digital Book Cricket” will be displayed.

Step 5: STEPS TO PLAY THE GAME:

2.    Using the HIT switch, number of wickets is set. Here a timer of 10 seconds is used to set the number of wickets. Also a timer of 10 seconds is used to set the number of over.

Step 6: STEPS TO PLAY THE GAME:

3.    When all the basic set ups are over. Player 1 is supposed to bat first. He has to press the HIT button to score runs. He has to continuously press the HIT button until the innings are not over. At the end of the innings the scores are displayed on the screen.

[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]1x HEF4094BP
1x Attiny 85V

Arduino

1x Breadboard
1x 16*2 LCD
1x 7805 regulator[/box]

For more detail: Digital Book Cricket Game with ATtiny 85 using Arduino


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top