Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Number Guessing Game

By Ashutosh Bhatt June 14, 2013

The number guessing game is quite simple. In this game the player thinks any number between 1 to 99 and then if same number is displayed on screen, he wins otherwise player looses the game. This simple circuit is based on two IC's namely NE555 which is a timer IC. In this number guessing game circuit we are utilizing it astable mode. And another one that we are using is 4026, which is a decade counter/divider IC. It converts the input into numeric display without any decoder IC which can be seen on 7 segment display.

 

In this number guessing game circuit, NE555 astable generates a clock for the circuit, which provides a oscillating wave to the output pin 3 of IC1. The time period of counter can be calculated by following formula :
T = 0.7 (R1 + 2*R2)*C1.
Assemble the circuit properly as shown in circuit diagram. Connect the pin 3 of both the IC1 and IC2 to supply, to on the display. If pin 3 is connected to ground we will not get display on 7 segment output. Also connect the pin 15 which is a reset pin to ground so that when counting reaches to 99 it will reset the counter to zero. Lastly, connect the pin 2 to ground if this pin is held high then counter will not advance. Now apply power supply. Zero will be displayed on both the 7 segment display. And counter starts counting by receiving pulse from IC3. As NE555 is wired in astable mode it is generating continuous pulses which make the clock pin1 of IC1 high after every specific period of time. After receiving the clock pulse, 4026 IC counter advances and 1 will be displayed on common cathode of 7 segment displays. When second pulse is encountered it will again make the pin 1 of IC1 high and 2 will be displayed and similar phenomenon occurs till count reaches 9. When it reaches 9, one cycle is completed. As you can see from circuit diagram, pin 5 is a divide by 10 output pin means after every 10 input pin 5 goes high. This property can be utilized to connect more numbers of 4026. In short we can cascade many 4026 to increase the number of 7 segment display. 
That’s why we have connected the pin 5 of IC1 to pin 1 of IC2  to cascade another IC, after every 10th pulse it will go high to provide a clock pulse to IC2 to advance its counter, therefore we will receive a 1 on 7 segment common cathode display2 . Unit place number are displayed on display1 and tens place numbers are displayed on display2.  After completion of each cycle, tens place advances one. Similarly you can add N numbers of 4026 IC with 7 segment display. Cover the display and ask everyone who are playing to assume a number. Switch on S1 and when anybody says stop, switch off S1.  See the number displayed on the screen, if same number is there which a player has assumed then he or she has won the game otherwise lost the game. In this you can also vary the speed of numbers which are displaying on 7 segment display by using a variable resistor in place of R2 in the range from 5K to 50K. 4026 IC is very sensitive to atmosphere you can also utilize this feature just remove the NE555 IC and add a wire at pin 1 of IC1. Touch this with your finger and you will see that counter has advanced and you can play. Try using it on other applications.
 

Circuit Diagrams

Circuit-Diagram-Number-Guessing-Game

Project Components

  • Capacitor
  • Resistor
  • Seven Segment Display

Project Video


Filed Under: 555 Timers, Electronic Projects
Tagged With: 555 timer circuit, game circuit, number guessing game
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Right Half Plane Zero
  • dc-dc converter in series
  • Single ended measuring ports and balanced antenna
  • Thermal modelling of repetitive power pulse
  • Permittivity and Permealibility in CST

RSS Electro-Tech-Online.com Discussions

  • Fun with AI and swordfish basic
  • Microinverters and storeage batteries?
  • FFC connector white
  • Is AI making embedded software developers more productive?
  • Can I make two inputs from one??

Featured – LoRa/LoRaWan Series

  • What is the LoRaWAN network and how does it work?
  • Understanding LoRa architecture: nodes, gateways, and servers
  • Revolutionizing RF: LoRa applications and advantages
  • How to build a LoRa gateway using Raspberry Pi
  • How LoRa enables long-range communication
  • How communication works between two LoRa end-node devices

Recent Articles

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe