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

Shooting Game Using IC555

By Ajit Matthew April 26, 2022

 

This is a simple shooting game comprising of an infrared pulse emitter and receiver. There are 8 white leds and one green led which will light up periodically. The player has to shoot at the receiver when the green led lights up. This is a simple beginner’s project and can be used to make more complicated projects like “LASER TAG GAME”

COMPONENTS

·         IC NE555 ( x3)

·         IC CD4017B ( x1)

·         IC CD4011B ( x1)

·         IR module GPIU561 ( x1)

·         Transistor BC547B ( x2)

·         Red LED ( x8)

·         Green LED ( x2)

·        IR LED with reflector ( x1)

·         Musical Buzzer

·         9V battery

·        Switch (On/Off type)

·         Switch (Push-to-ON type)

·         Resistors:

(470k? x2) ; ( 22k? x2) ; ( 100k? x1) ; (150? x4) ; (180? x1) ; (10k? x1) ;

(4.7k? x1)

·         Capacitors

(100µF,10V)x1 ; (10 µF,10V)x1 ; (10 µF, 16V)x1 ; (0.01 µF x3) ; (0.047 µF x1)

(0.0022 µF x1)

WORKING

This project involves 2 major circuits:

1. The infrared pulse generator:

Infrared gun (transmitter) for this electronic game is built around IC1 timer (NE555) wired as an astable multivibrator with a centre frequency of about 35 kHz.

As shown in the figure below, adding the resistor RB and connecting the trigger input to the threshold input causes the timer to self-trigger and run as a multivibrator. The capacitor C charges through RA and RB and then discharges through RB only. Therefore the duty cycle is controlled by the values of RA and RB.

Charge and discharge times (and, therefore, frequency and duty cycle) are independent of the supply voltage.

IC555 based Shooting Game

The figure below shows the typcal waveforms generated during astable operation. The output high level duration tH and low level duration tL can be calculated as follows:

tH = 0.693 (RA + RB) C

tL = 0.693 (RB) C

From this we get,

Period = tH + tL = 0.693 (RA + 2RB) C

Frequency = 1.44/(C (RA + 2RB))

Astable Multivibrator

From the circuit diagram, it can be observed that in the case of this particular pulse generator, the frequency is determined by the components R1, R2 and C2.

Inputs 2 and 6 have been connected together causing the timer to self trigger and run as an astable multivibrator. Pin 5 is used to control the trigger and threshold levels.

The output (a square pulse) is obtained from pin number 3 on the IC.

In this case, RA = 10k?, RB = 4.7k? and C = 0.0022?F. Thus the pulse frequency for these particular values is found to be 33.7 kHz – which is close to our chosen frequency of 35 kHz.

The duty cycle is found to be 0.242 (using the above formula). 

2. The receiver circuit:

The receiver circuit has 3 main ICs – 2 NE555s (one wired as an astable multivibrator and the other for monostable operation) and 1 CD4017B (decade counter).

For monostable operation, any of these timers can be connected as shown in the figure below. If the output is low, application of a negative-going pulse to the trigger (TRIG) sets the flip-flop (Q goes low), drives the output high, and turns off Q1. Capacitor C then is charged through RA until the voltage across the capacitor reaches the threshold voltage of the threshold (THRES) input. If TRIG has returned to a high level, the output of the threshold comparator resets the flip-flop (Q goes high), drives the output low, and discharges C through Q1.

 

IC 555 circuits

Monostable operation is initiated when TRIG voltage falls below the trigger threshold. Applying a falling trigger pulse to the RESET and TRIG simultaneously discharges C and reinitiates the cycle, commencing on the rising edge of the reset pulse.

 Receiver Circuit

 

IC 555 based shooting game

IC 2 (see circuit diagram below) is used for monostable operation. When the IR module receives an infrared pulse from the pulse generator, its output goes low. The resulting falling edge to the input (pin 2) of IC 2 triggers the IC and causes its output (at pin 3) to go high.

The other main IC in this circuit is the CD4017B decade counter. This is a 5 stage divide-by-10 Johnson counter with 10 decoded output bits and a carryout bit.

This counter is cleared to its zero count by a logical “1” on its reset line. This counter advances on the rising edge of the clock signal when the clock enable signal is in the logical “0” state.

The 10 decoded outputs are normally in the logical “0” state and go to the logical “1” state only in their respective time slots. Each decoded output remains high for a full clock cycle. The carry out signal completes a full cycle for every 10 clock input cycles and is used as a ripple carry signal to any succeeding stages.

When power switch S2 in the receiver is turned on, the astable multivibrator wired around IC3 (NE555) generates clock pulses which are fed to clock input (pin 14) of the decade counter IC4 (CD4017B).

This IC has ten outputs, and each one goes high sequentially, on the rising edge of successive clock pulses. As a result, the LEDs connected to the output appear to light up one after the other rapidly. You would notice that only nine outputs are used for driving LEDs. The tenth output (Q9) at pin 11 is connected to reset pin 15.

After an infrared pulse is received and ICs 2 and 3 (see circuit diagram) are triggered, resulting in clock enable (CE) pin 13 of IC4 to go high (normally held at low potential via resistor R8) and it starts counting. When the mono pulse ends and if the last hit LED happens to be the target LED then both inputs of the NAND gate N1 become high. As a result, the output of gate N2 also goes high. This in turn switched on the transisitor T2; thereby the ‘HIT’ LED lights up and the buzzer also sounds. At the end of the mono pulse period (which is about 5 seconds), decided by resistor R5 and capacitor C5, the monostable IC2 is again ready to receive another trigger pulse.

EXTENSION: These circuits can be modified to make “LASER TAG GAME”

Circuit Diagram

Receiver Circuit

(Tab 1)

 

IR PULSE GENERATOR

(Tab2)

 

 

 

 

Circuit Diagrams

circuit-diagram_0
IR-Pulse-generator

Project Video


Filed Under: 555 Timers, Circuit Design
Tagged With: 555 timer circuit, shooting 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

  • Diode recovery test Irrm timing.
  • How to make string LEDs?
  • The Analog Gods Hate Me
  • Battery Deep Discharge – IC Workarounds?
  • Safe Current and Power Density Limits in PCB Copper(in A/m² and W/m³) simulation

RSS Electro-Tech-Online.com Discussions

  • Raise your hand if your car had one of these:
  • Tektronix 2235 channel 1 trace unstable
  • How to make string LEDs?
  • Wideband matching an electrically short bowtie antenna; 50 ohm, 434 MHz
  • The Analog Gods Hate Me

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

  • Tria modules integrate edge AI processing with multi-core processors
  • pSemi introduces RF switch with 52 dBm PMAX,PEAK and 90-dBm IIP3 linearity
  • XP Power launches 1.3 kW power supply with 58.9 W/cm³ density
  • How to enable Wi-Fi provisioning in ESP32-based IoT products
  • Amphenol RF introduces FAKRA to SMA adapters with 4 GHz operating frequency

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