Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key 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
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

Shooting Game Using IC555

By Ajit Matthew

 

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
 

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



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

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!


Featured Tutorials

  • Designing Gate Driver Circuit and Switching Mechanism for Modified Sine Wave Inverter – (Part 9/17)
  • Completing Modified Sine Wave Inverter Design with Full Bridge Circuit and Step Up Transformer – (Part 10/17)
  • Designing an Offline UPS – Part (12 /17)
  • How to reduce Switching Time of a Relay – (Part 15/17)
  • Testing MOSFET – (Part 16/17)
  • Driving High Side MOSFET using Bootstrap Circuitry – (Part 17/17)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • Designing Gate Driver Circuit and Switching Mechanism for Modified Sine Wave Inverter – (Part 9/17)
  • Completing Modified Sine Wave Inverter Design with Full Bridge Circuit and Step Up Transformer – (Part 10/17)
  • Designing an Offline UPS – Part (12 /17)
  • How to reduce Switching Time of a Relay – (Part 15/17)
  • Testing MOSFET – (Part 16/17)

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd ldr led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics Research robot samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • Series and Shunt S2P file of inductor or capacitor
  • Implementing a PID controller from a transfer function
  • Same old technology in a fancy dress ?
  • RF switch selection
  • Tuning PID controller in PSIM for a Synchronous Buck converter

RSS Electro-Tech-Online.com Discussions

  • Combination of Wires of two DC motor giving Output current.
  • software PWM
  • Passthrough charging-simple but impossible to achieve?
  • geared motor to revolve oval platform
  • None existant errors (MPLAB X)
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 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 | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key 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
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering