Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • 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
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Random Number Generator Using 7 Segment Display

By Ashutosh Bhatt May 17, 2013

It is very simple and easy to construct project which will display random numbers from 0 to 7 on a 7 segment display. This random number generator circuit can serve as an alternative that can be used to replace the traditional dice while playing games such as snake ladder, monopoly etc. It uses NE555 which is a well known multivibrator IC. Here 555 timer IC is wired as an astable oscillator which provide a clock pulse to CD4017 IC.CD4017 which is a medium speed Johnson Counter that works at 10MHz and has 10 decoded outputs. CD4017 ICs are widely used in frequency dividers, binary counters, divide by N counters and register design applications and  CD4511 which is a BCD to 7 segment decoder.

[[wysiwyg_imageupload:8570:]]

Fig. 1: Prototype Of Random Number Generator Using 7 Segment Display


 

This random number generator circuit is based on three IC’s namely NE555, CD4017 and CD4511 with few more components.

In this circuit, NE555 astable generates a clock for the circuit, which provides an oscillating wave to the output pin 3 of IC1. You can vary the speed of oscillation with the help of VR1. The frequency of oscillation of 555 timer can be calculated by-

f=1.44/(R1+2*(VR1)*C1)

 CD4017 is a CMOS counter/ divider IC. It takes the clock signal from t from pin3 of IC1

and turns on the 10 output in sequence, each time when it receives clock input pulses.

CD4511 is a CMOS BCD to seven segment latch/decoder. This IC provides the functions of a 4-bit storage latch, an 8421 BCD-to-seven segment decoder, and an output drive capability. It also provide you the of facility lamp test . It is used to check that all segments of 7 segment are working properly or not. For testing, momentarily make the pin low, in short used to test the display.

Blanking input  is use to turn off or vary the brightness of the display. Latch enable (LE) is used to store BCD codes.  CD4511 is used in various application like in clock, watches,

computer, calculators etc.

When 555 timer output from pin 3 is applied to CD4017 decade counter pin 14 provides

 a clock for the working of IC2. Here, after receiving the clock input, CD4017 starts its

 counter from zero.   

It advances one by one each time pin 14 goes high. For instance, first we get output from pin3

(Q0) then from pin 2 ( Q1) , so on. As we are get continuous pulses from NE555, when switch is pressed pin 14 goes high, we see the corresponding number on 7 segment display. From the circuit diagram, you can see that we have connected pin 5 (Q6 output) to reset pin 15 so, we will receive numeric number from 0 to 7.

We are getting binary output from CD4017 that can be converted into numeric value with the help of CD4511 IC and a 7 segment common cathode display. We have connected the resistor R5 to R11 between CD4511 output and 7 segment display because, each LED segment requires its own voltage drop. If you don’t connect a resistor, it will destroy that section. Also remember that IC 4511 is used only for common cathode display.

 You can also use LED’s at the output if you don’t have CD4511 and 7 segment display.

Circuit Diagrams

Circuit-Diagram-Random-Number-Generator-7-Segment-Display

Project Components

  • 555 Timer IC
  • Capacitor
  • Diode 1N4001
  • Potentiometer
  • Resistor

Project Video


Filed Under: 555 Timers, Electronic Projects
Tagged With: 555 timer circuit, cd 4017, display, ic, seven segment
 

Next Article

← Previous Article
Next Article →

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.

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Power Efficiency
Discover proven strategies for power conversion, wide bandgap devices, and motor control — balancing performance, cost, and sustainability across industrial, automotive, and IoT systems.

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.

  • rechargeable battery and simple alkaline battery in one single product
  • Industrial Network Market Analysis and Introduction to Common Bus Protocols
  • Ensuring Reliable Backups in Azure
  • Op-Amp oscillating
  • Phase shift full bridge with extra added dead time?

RSS Electro-Tech-Online.com Discussions

  • WTB: "The Theory Of Servicing AM, FM, And FM Receivers" by Clarence R. Green and Robert M. Bourque
  • Anyone In The US Ordered From AliExpress Recently?
  • Calculation of A Class amplifier
  • strange laptop problem
  • restarting this Christmas project

Featured Tutorials

Real Time Hardware Filter Design

  • Practical implementation of bandpass and band reject filters
    Practical implementation of bandpass and band reject filters
  • Practical application of hardware filters with real-life examples
    Practical application of hardware filters with real-life examples
  • A filter design example
    A filter design example
  • Types of filter responses
    Types of filter responses
  • What are the two types of hardware filters?
    What are the two types of hardware filters?
  • What are hardware filters and their types?
    What are hardware filters and their types?
More Tutorials >

Recent Articles

  • Stackpole introduces compact jumpers for high-current circuit routing
  • Ironwood Electronics launches near-device-footprint SMT elastomer socket for BGA264
  • Amphenol RF releases P67 FAKRA plugs for 6 GHz RF transmission
  • Microchip releases platform to deliver real-time specifications for AI assistants
  • GigaDevices introduces 32-bit MCUs with integrated DSP and FPU support

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • 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
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • 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
  • Guest Post Guidelines
  • Advertise
  • Subscribe