FPGA based synchronous multi-channel PWM generator for humanoid robot IJECEIAES
In this paper, synchronous multi-channel pulse width modulation (PWM) generator for driving servo motors of humanoid robot was proposed. In an application, the humanoid robot requires smooth and beautiful movement, therefore the PWM signal for each servo motor must be synchronized. Since microcontroller (slave) has no enough channels to generate synchronous PWMs for 32 servo motors, field programmable gate array (FPGA) was used as slave for the humanoid robot. The FPGA was controlled by microcontroller (master) using serial communication. Simulation results show the system can perform serial communication, synchronize, and convert data well. The system can also generate PWM simultaneously with accurate duty cycle and fix period of 20ms.
Network Based Data Acquisition and Logging System using PIC MicrocontrollerCSCJournals
This paper presents the design and implementation of a multi-channel data acquisition and logging system which can be used in a variety of applications. The designed data acquisition and logging system uses analog multiplexer, a bipolar analog to digital converter, a voltage reference and an SD card. The device is developed around PIC Microcontroller. The most important feature of the device which makes it different from other data acquisition devices is the presence of the Ethernet port. This feature enables it to work in networked environment. The performance of the device is tested and crosschecked. The present data acquisition and logging system is expected to be very useful to varieties of our own developmental projects, given its ability to locally store data and availability of general purpose digital I/O.
Application of Microcontroller in Transmitter Section of Wireless Systemijceronline
International Journal of Computational Engineering Research (IJCER) is dedicated to protecting personal information and will make every reasonable effort to handle collected information appropriately. All information collected, as well as related requests, will be handled as carefully and efficiently as possible in accordance with IJCER standards for integrity and objectivity.
FPGA based synchronous multi-channel PWM generator for humanoid robot IJECEIAES
In this paper, synchronous multi-channel pulse width modulation (PWM) generator for driving servo motors of humanoid robot was proposed. In an application, the humanoid robot requires smooth and beautiful movement, therefore the PWM signal for each servo motor must be synchronized. Since microcontroller (slave) has no enough channels to generate synchronous PWMs for 32 servo motors, field programmable gate array (FPGA) was used as slave for the humanoid robot. The FPGA was controlled by microcontroller (master) using serial communication. Simulation results show the system can perform serial communication, synchronize, and convert data well. The system can also generate PWM simultaneously with accurate duty cycle and fix period of 20ms.
Network Based Data Acquisition and Logging System using PIC MicrocontrollerCSCJournals
This paper presents the design and implementation of a multi-channel data acquisition and logging system which can be used in a variety of applications. The designed data acquisition and logging system uses analog multiplexer, a bipolar analog to digital converter, a voltage reference and an SD card. The device is developed around PIC Microcontroller. The most important feature of the device which makes it different from other data acquisition devices is the presence of the Ethernet port. This feature enables it to work in networked environment. The performance of the device is tested and crosschecked. The present data acquisition and logging system is expected to be very useful to varieties of our own developmental projects, given its ability to locally store data and availability of general purpose digital I/O.
Application of Microcontroller in Transmitter Section of Wireless Systemijceronline
International Journal of Computational Engineering Research (IJCER) is dedicated to protecting personal information and will make every reasonable effort to handle collected information appropriately. All information collected, as well as related requests, will be handled as carefully and efficiently as possible in accordance with IJCER standards for integrity and objectivity.
Development of Distributed Mains Monitoring and Switching System for Indus Co...iosrjce
Indus Complex at Raja Ramanna Centre for Advanced Technology (RRCAT) has two synchrotron
radiation sources, Indus-1 and Indus-2. Microtron is injector to both the machines which sends electron pulses
to the Booster. A new, microcontroller based, distributed mains monitoring and switching system is developed
for Indus complex. It facilitates remote monitoring and switching of AC power switches to various subsystems. It
includes interfacing with power switches/Miniature Circuit Breakers (MCBs) of Indus machine subsystems. This
work involves development of hardware, firmware for microcontroller, implementation of communication
protocol; LabVIEW based server and client application. The developed system allows remote monitoring and
switching of MCBs from main control room.
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolIJERA Editor
This paper describes a microcontroller based digital clock which can be used in real time systems. The system is constructed using PIC18F252 (microcontroller), DS1307 (real time clock IC) and its software program is written with C programming language. A 3v battery backup is provided to real time clock IC. Communication between PIC microcontroller and DS1307 takes place through I²C Bus protocol
Development and Application of a Failure Monitoring System by Using the Vibra...inventy
In this project, a failure monitoring system is developed by using the vibration and location information of balises in railway signaling. A lot of field equipment in railway are loosening and broken in time period so that they need maintenance due to the vibrations that occur due to high speed trains traffic and railway vehicles impact. Among the field equipment, balises have very important role of communication in terms of transmitting information to trains. In this scope, it is aimed to make maintenance works more efficient, have no delayed trains, detect previously failure location and intervene in failure timely, by detecting and controlling balise cases such as loosening, out of place and the data consistency error that happens because of balise physical state. In this project, the communication is provided with I2C, Modbus RTU (Remote Terminal Unit) and RS485 standards by using Arduino Uno cards and MPU6050 IMU (Inertial Measurement Unit) sensors in laboratory. Each used sensors are in slave mode and computer interface designed with C# is in master mode. Fault situations in the system are checked instant by the interface. (it is assumed to mount the IMU sensor and the Arduino circuit on the balise) it is seen that the interface responds to the sensor movements instant and the system works well in the end of test processes.
The peer-reviewed International Journal of Engineering Inventions (IJEI) is started with a mission to encourage contribution to research in Science and Technology. Encourage and motivate researchers in challenging areas of Sciences and Technology.
Internet enebled data acquisition and device controleSAT Journals
Abstract This paper presents very simple and economical way to monitor and control boilers process used in chemical, pharmaceutical companies remotely with the help of internet. Microcontroller ATmega128 is used to which all sensors and devices are interfaced at its I/O pins. A Stand-Alone Ethernet Controller IC which handles most of the network protocol requirements ENC28J60 is interfaced to the microcontroller using SPI interface and acts as a communication media between microcontroller ATmega128 and remote user. The TCP/IP stack, application source code, and dynamic web page is stored in microcontroller ATmega128. Dynamic webpage is the key element which eliminates physical presence of user in the field and thus saves the labour time and money. Keywords: ATmega128, ENC28J60, TCP/IP, SPI interface, Dynamic webpage.
FAULT SECURE ENCODER AND DECODER WITH CLOCK GATINGVLSICS Design
This paper presents circuit design for a low power fault secure encoder and decoder system. Memory cells in logic circuits have been protected from soft errors for more than a decade due to increase in soft error rates. In this paper the circuitry around the memory block have been susceptible to soft errors and must be protected from faults. The proposed design uses error correcting codes and ring counter addressing scheme. In the ring counter several new clock gating techniques are proposed to reduce power consumption. A fault secure Encoder and Decoder error free low power logic circuits can be achieved by the proposed design. Simulation results show great improvement in power consumption. Fault secure Encoder and Decoder with clock gated by CG-element consumes approximately half the power of that consumed by the fault free circuit which doesn’t employ clock gating technique
Development of Distributed Mains Monitoring and Switching System for Indus Co...iosrjce
Indus Complex at Raja Ramanna Centre for Advanced Technology (RRCAT) has two synchrotron
radiation sources, Indus-1 and Indus-2. Microtron is injector to both the machines which sends electron pulses
to the Booster. A new, microcontroller based, distributed mains monitoring and switching system is developed
for Indus complex. It facilitates remote monitoring and switching of AC power switches to various subsystems. It
includes interfacing with power switches/Miniature Circuit Breakers (MCBs) of Indus machine subsystems. This
work involves development of hardware, firmware for microcontroller, implementation of communication
protocol; LabVIEW based server and client application. The developed system allows remote monitoring and
switching of MCBs from main control room.
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolIJERA Editor
This paper describes a microcontroller based digital clock which can be used in real time systems. The system is constructed using PIC18F252 (microcontroller), DS1307 (real time clock IC) and its software program is written with C programming language. A 3v battery backup is provided to real time clock IC. Communication between PIC microcontroller and DS1307 takes place through I²C Bus protocol
Development and Application of a Failure Monitoring System by Using the Vibra...inventy
In this project, a failure monitoring system is developed by using the vibration and location information of balises in railway signaling. A lot of field equipment in railway are loosening and broken in time period so that they need maintenance due to the vibrations that occur due to high speed trains traffic and railway vehicles impact. Among the field equipment, balises have very important role of communication in terms of transmitting information to trains. In this scope, it is aimed to make maintenance works more efficient, have no delayed trains, detect previously failure location and intervene in failure timely, by detecting and controlling balise cases such as loosening, out of place and the data consistency error that happens because of balise physical state. In this project, the communication is provided with I2C, Modbus RTU (Remote Terminal Unit) and RS485 standards by using Arduino Uno cards and MPU6050 IMU (Inertial Measurement Unit) sensors in laboratory. Each used sensors are in slave mode and computer interface designed with C# is in master mode. Fault situations in the system are checked instant by the interface. (it is assumed to mount the IMU sensor and the Arduino circuit on the balise) it is seen that the interface responds to the sensor movements instant and the system works well in the end of test processes.
The peer-reviewed International Journal of Engineering Inventions (IJEI) is started with a mission to encourage contribution to research in Science and Technology. Encourage and motivate researchers in challenging areas of Sciences and Technology.
Internet enebled data acquisition and device controleSAT Journals
Abstract This paper presents very simple and economical way to monitor and control boilers process used in chemical, pharmaceutical companies remotely with the help of internet. Microcontroller ATmega128 is used to which all sensors and devices are interfaced at its I/O pins. A Stand-Alone Ethernet Controller IC which handles most of the network protocol requirements ENC28J60 is interfaced to the microcontroller using SPI interface and acts as a communication media between microcontroller ATmega128 and remote user. The TCP/IP stack, application source code, and dynamic web page is stored in microcontroller ATmega128. Dynamic webpage is the key element which eliminates physical presence of user in the field and thus saves the labour time and money. Keywords: ATmega128, ENC28J60, TCP/IP, SPI interface, Dynamic webpage.
FAULT SECURE ENCODER AND DECODER WITH CLOCK GATINGVLSICS Design
This paper presents circuit design for a low power fault secure encoder and decoder system. Memory cells in logic circuits have been protected from soft errors for more than a decade due to increase in soft error rates. In this paper the circuitry around the memory block have been susceptible to soft errors and must be protected from faults. The proposed design uses error correcting codes and ring counter addressing scheme. In the ring counter several new clock gating techniques are proposed to reduce power consumption. A fault secure Encoder and Decoder error free low power logic circuits can be achieved by the proposed design. Simulation results show great improvement in power consumption. Fault secure Encoder and Decoder with clock gated by CG-element consumes approximately half the power of that consumed by the fault free circuit which doesn’t employ clock gating technique
Implementation of a digital multimeter using basic stamp2 on a professional development board. It also includes R2R ladder network for digital to analog conversion
Industrial Process Management Using LabVIEWIOSR Journals
Abstract: Nowadays process management is a tedious task in the industry. We plan to propose a LabVIEW based intelligent multi parameter monitoring system designed using RS232 and Microcontroller aids in the measurement and control of various Global Parameters. For data collection in the industry is a difficult task in real time execution of events with industrial process control and automation. We proposed two slaves for measuring various industrial parameters to monitor and control industrial process. Data acquired from each slave is processed and sent to Master that compile data received from different slaves and send this information to the system configured with LabVIEW platform. This enables us to view and track the online changes encountered in the particular parameter of all the parameters. One of the main advantages of this proposal is, it allows us to view all the parameter readings simultaneously on the front panel in LabVIEW. The Graph drawn on the front panel keeps on tracking the changes on the parameter. The parameters supported by this project includes: current, voltage, temperature, frequency, light intensity, logic switches, water level identifier, and alarm. This Project can be implemented in any of the process industries where there is a need for Simultaneous and fast acquiring of data and control. Keywords: LabVIEW, RS232, Micro-controller, data acquisition
Similar to Design, Construction and Operation of a 4-Bit Counting Circuit (20)
Cosmetic shop management system project report.pdfKamal Acharya
Buying new cosmetic products is difficult. It can even be scary for those who have sensitive skin and are prone to skin trouble. The information needed to alleviate this problem is on the back of each product, but it's thought to interpret those ingredient lists unless you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to help us predict which products may be good fits for us. It includes various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The automated cosmetic shop management system should deal with the automation of general workflow and administration process of the shop. The main processes of the system focus on customer's request where the system is able to search the most appropriate products and deliver it to the customers. It should help the employees to quickly identify the list of cosmetic product that have reached the minimum quantity and also keep a track of expired date for each cosmetic product. It should help the employees to find the rack number in which the product is placed.It is also Faster and more efficient way.
Vaccine management system project report documentation..pdfKamal Acharya
The Division of Vaccine and Immunization is facing increasing difficulty monitoring vaccines and other commodities distribution once they have been distributed from the national stores. With the introduction of new vaccines, more challenges have been anticipated with this additions posing serious threat to the already over strained vaccine supply chain system in Kenya.
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
Overview of the fundamental roles in Hydropower generation and the components involved in wider Electrical Engineering.
This paper presents the design and construction of hydroelectric dams from the hydrologist’s survey of the valley before construction, all aspects and involved disciplines, fluid dynamics, structural engineering, generation and mains frequency regulation to the very transmission of power through the network in the United Kingdom.
Author: Robbie Edward Sayers
Collaborators and co editors: Charlie Sims and Connor Healey.
(C) 2024 Robbie E. Sayers
About
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
Technical Specifications
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
Key Features
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface
• Compatible with MAFI CCR system
• Copatiable with IDM8000 CCR
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
Application
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
Welcome to WIPAC Monthly the magazine brought to you by the LinkedIn Group Water Industry Process Automation & Control.
In this month's edition, along with this month's industry news to celebrate the 13 years since the group was created we have articles including
A case study of the used of Advanced Process Control at the Wastewater Treatment works at Lleida in Spain
A look back on an article on smart wastewater networks in order to see how the industry has measured up in the interim around the adoption of Digital Transformation in the Water Industry.
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfKamal Acharya
The College Bus Management system is completely developed by Visual Basic .NET Version. The application is connect with most secured database language MS SQL Server. The application is develop by using best combination of front-end and back-end languages. The application is totally design like flat user interface. This flat user interface is more attractive user interface in 2017. The application is gives more important to the system functionality. The application is to manage the student’s details, driver’s details, bus details, bus route details, bus fees details and more. The application has only one unit for admin. The admin can manage the entire application. The admin can login into the application by using username and password of the admin. The application is develop for big and small colleges. It is more user friendly for non-computer person. Even they can easily learn how to manage the application within hours. The application is more secure by the admin. The system will give an effective output for the VB.Net and SQL Server given as input to the system. The compiled java program given as input to the system, after scanning the program will generate different reports. The application generates the report for users. The admin can view and download the report of the data. The application deliver the excel format reports. Because, excel formatted reports is very easy to understand the income and expense of the college bus. This application is mainly develop for windows operating system users. In 2017, 73% of people enterprises are using windows operating system. So the application will easily install for all the windows operating system users. The application-developed size is very low. The application consumes very low space in disk. Therefore, the user can allocate very minimum local disk space for this application.
Democratizing Fuzzing at Scale by Abhishek Aryaabh.arya
Presented at NUS: Fuzzing and Software Security Summer School 2024
This keynote talks about the democratization of fuzzing at scale, highlighting the collaboration between open source communities, academia, and industry to advance the field of fuzzing. It delves into the history of fuzzing, the development of scalable fuzzing platforms, and the empowerment of community-driven research. The talk will further discuss recent advancements leveraging AI/ML and offer insights into the future evolution of the fuzzing landscape.
Design, Construction and Operation of a 4-Bit Counting Circuit
1. IOSR Journal of Electronics and Communication Engineering (IOSR-JECE)
e-ISSN: 2278-2834,p- ISSN: 2278-8735.Volume 10, Issue 1, Ver. III (Jan - Feb. 2015), PP 73-78
www.iosrjournals.org
DOI: 10.9790/2834-10137378 www.iosrjournals.org 73 | Page
Design, Construction and Operation of a 4-Bit Counting Circuit
Brian E. Usibe* and Julie C. Ogbulezie
Department of Physics, University of Calabar P.M.B. 1115 Calabar, Nigeria
Abstract: A four-bit binary counting circuit was designed and constructed. The materials used were; PIC
Microcontroller, Seven-segment LED, Printed Circuit Board, LEDs, Transistors, 9v DC power source (Battery),
and other passive components. The method adopted for this counter makes use of a microcontroller as the backbone
of the design, which holds the command for every action that is to occur during an operation. The output (results) of
the circuit was indicated by four Light Emitting Diodes (LEDs) with counts; 0000, 0001, 0010, 0011, 0100, 1010,
0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110 and 1111. These binary outputs were further converted to
decimal equivalent through a reprogrammable microcontroller and then displayed using a dual seven-segment
display device.
Keywords: Counting circuit, PIC microcontroller, seven-segment display, logic systems.
I. INTRODUCTION
An instrument which, in its simplest form, provides an output that corresponds to the number of pulses
applied to its input is termed a digital counter. In digital logic, a counter is a device which stores (and sometimes
displays) the number of times a particular event or process has occurred, often in relationship to a clock signal. A
circuit which performs this function and has these characteristics is generally referred to as a digital counter [1].
Counting circuits belong to a particular class of sequential circuits. Each has one particular input and a
number of outputs which follows some digital codes. The counter itself is a J-K flip-flop. Two major types of
counting circuits exist; the Batch and the Measurement types [2].
Digital counters operate in the binary number system. This is so because binary system is easily and
quickly carried out with electronic circuitry. Computer information is expressed in binary form (bits) because of the
convenience of handling two clearly-defined states. Each bit is either a ZERO or a ONE, OFF or ON, LOW or
HIGH, etc [3]. Fig 1 and table 1 illustrate a 4–bit binary counter that can count from 0 to 15. The 16th
count input
causes the counter to return to the 0 output and generate a carry pulse. This action of a counter to return to the 0 state
with a carry output on every 16th
pulse makes the 4–bit binary a modulo-16 (mod 16) counter. Modulus counter
means it operates the predetermined state. For example, in mod-10 counter, it counts only 10 states.
Fig. 1: Schematic symbol
The four binary outputs: QD, QC, QB and QA in figure.1 are said to have an 8-4-2-1 weighting because if QD through
QA are all 1s, then the binary counter output would be;
11112 = (1x23
) + (1x22
) + (1x21
) + (1x20
) = 8 + 4 + 2 + 1 = 1510
The subscripts indicate the base of the system.
Table 1: Counter output in various number systems
No. of
count
pulse
Binary
output
Octal
(Base
8)
Decimal
(Base 10)
Hexadecimal
(Base 16)
0 0000 0 0 0
1 0001 1 1 1
2 0010 2 2 2
3 0011 3 3 3
4 0100 4 4 4
5 0101 5 5 5
6 0110 6 6 6
7 0111 7 7 7
2. Design, Construction and Operation of A 4-Bit Counting Circuit
DOI: 10.9790/2834-10137378 www.iosrjournals.org 74 | Page
8 1000 10 8 8
9 1001 11 9 9
10 1010 12 10 A
11 1011 13 11 B
12 1100 14 12 C
13 1101 15 13 D
14 1110 16 14 E
15 1111 17 15 F
16 0000 0 0 0
II. THEORY
Every counting circuit consists of four basic units –the sensing unit, the signal conditioning unit, the
counter unit and the output unit [4]
The sensing unit is usually made of a photoelectric device or a switch or a capacity pick-up or an
interruptible jet. Its function is to detect what needs to be counted. The signal-conditioning unit is usually an
interfacing device such as R-C Discriminator circuit. Its function is to arrange the „sensed‟ signal or object into a
countable form. The counter, which is usually the shift register of a J-K flip-flop records the event or object time-
wise. The out put device can be an indicating visual meter or an audible beep producer. However, in this work, a
PIC microcontroller would be used in place of the traditional J-K flip-flop.
The primary Boolean rule applicable for the manipulation of this counting circuit is the Exclusive-OR
(XOR).
Table 2: Truth table for XOR Gate
A B P
0 0 0
0 1 1
1 0 1
1 1 0
III. MATERIALS AND METHODS
1. Materials used in the construction
The materials used during the construction of the circuit include; soldering iron, soldering lead, soldering
pump, side cutter, digital multi-meter, sand paper and electrician knife, as well as plastic Perspex for the casing.
The binary counting circuit comprises of four (4) distinct sections. The hardware is a collection of Light
Emitting Diodes, Seven Segment Display and some resistors that limit current for both the Light Emitting Diodes
and the seven segment display. These components are interfaced to the microcontroller in order to output the
required result in a more interpretable format.
The method adopted for this counter makes use of a microcontroller as the backbone of the design, which
holds the command for every action that is to occur during an operation. Reason for this method is to reduce number
of components and improve the functionality of the circuit. Figure 2 shows the block diagram of the counting
circuit.
Fig. 2: Block diagram of a 4-bit binary counting circuit
2. Design stage
The design stages for the 4-bit binary counter comprises the sequential connection of the power supply, the
seven segment display, the binary status LED indicators and the Microcontroller. The various units that constitute
the system would be built onto a Printed Circuit Board, tested and then eventually inter-connected. For reasons of
operational flexibility, reliability, and reproducibility, specialized integrated circuit like microcontroller would be
POWER
SUPPLY
MICRO-
CONTROLLER
SEVEN
SEGMENT
DISPLAY
BINARY
STATUS LED
INDICATORS
3. Design, Construction and Operation of A 4-Bit Counting Circuit
DOI: 10.9790/2834-10137378 www.iosrjournals.org 75 | Page
used.
The microcontroller is the heart of the entire design. It processes the binary information and displays it on
the four Binary Status LED indicators, at the same time, converts the generated binary to decimal value then
displays it on the seven segment display. The microcontroller also manages the dual seven segment display by way
of multiplexing the displays which helps in reducing complex wiring in the diagram.
Fig. 3: Circuit for the binary LED and the Microcontroller stage
The voltage drop across the seven segments LED is 2V [6]. Since a 5V supply is used in powering both the seven
segments LED display and the LEDs, this leaves 3V across their respective resistors. Therefore, current through the
seven segment LED display is:
𝐼 = 𝑉/𝑅 = 3/150 = 0.02𝐴. (1)
While that of the LED is:
𝐼 = 𝑉/𝑅 = 3/330 = 0.009𝐴 (2)
Equations 1 and 2 can be written as
𝑅 = 𝑉𝑆 – 𝑉𝐷 / 𝐼 (3)
Where VS is supply voltage and VD is LED voltage drop. [7]
From equation 3, resistor value for seven segment display is
𝑅 = 5 – 2/0.02 = 3/0.02 = 150
Switching transistor
Using transistor BC 548, Supply voltage, Vs = 9V
The load driven by the transistor is the relay Load resistance, RL = 150
Load current 𝐿𝐼 = 𝑉𝑠/𝑅𝐿 = 9/150 = 60𝑚𝐴 (4)
4. Design, Construction and Operation of A 4-Bit Counting Circuit
DOI: 10.9790/2834-10137378 www.iosrjournals.org 76 | Page
Since Load current LI (max) must be greater than IC and from the data sheet Ic (max) = 100mA
The Base Resistor, RB
𝑅𝐵 = 𝑉𝑐𝑐 × ℎ𝑓𝑒 5 × 𝐼𝑐 (5)
Where
IC = collector current
Vcc = supply voltage [8]
Therefore RB = 9 × 400 5 × 100 = 7.2 KΩ
Where the typical hfe = 400 (from data sheet). Therefore, the closet value for the base resistor is selected to be 10KΩ.
3. Schematic and Printed Circuit Board
The effective and reliable design and production of the schematic and PCB creates better performance and
consistent results. The software used in creating the PCBs and schematic diagram is Dip Trace, which was
downloaded from www.diptrace.com. Crosschecking of footprints and design procedures was necessary to ensure a
favourable outcome. After converting the schematic into PCB, a laser jet printer was used in the printing of the
converted design into a special material known as Press and Peel sheet, a transparent film used in PCB production.
IV. RESULTS AND DISCUSSIONS
The binary to decimal and all the algorithm conversions and counting are implemented in the firmware of
PIC16F628. The result is finally displayed on the Dual Seven Segment LED display. The software was compiled
with the mikroC Pro for PIC compiler from mikroElektronika. The firmware was compiled into a machine code
using the same Editor, and programmed into the microcontroller. The simulation of the algorithm of the detector
system was done using Proteus software from Lab Center Electronics. Figure 5 shows the constructed circuit.
Fig. 5: The constructed 4-bit binary counter
The following results were obtained at each count pulse.
Table 10: Counter output obtained at each count pulse
Pulse
No/
SSD
LED 1 LED 2 LED 3 LED 4
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
5. Design, Construction and Operation of A 4-Bit Counting Circuit
DOI: 10.9790/2834-10137378 www.iosrjournals.org 77 | Page
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
4.1 Mode of operation of the counter
A multiplex dual 7-segment display was employed in order to display the binary equivalent that is
generated at a time. The Microcontroller used in the design is a type PIC16F628. This is one of the most recent
Microcontrollers and has a built-in oscillator and can be reprogrammed. The reset pin (4) of the microcontroller is
made positive by the 10KΩ pull-up resistor and a switch in order for the PIC to function properly. If the counter is
to be reset, the switch can be pressed, pulling pin 4 to 0V for a moment. The “trigger reaction” signal from the push
button is fed to the pin RA1 of the microcontroller. The 10KΩ resistors pull these inputs to +5V and 0V when the
push button is pressed, in which case the appropriate input is made negative (logic 0). The LEDs are driven from the
microcontroller pins RA0, RA2, RA3 and RA4, respectively, via 10KΩ pull-up resistors. Pins RB0, RB1, RB2 and
RB3 provide a Binary Coded Decimal (BCD) output equivalent to the number that will be displayed on the Seven
Segment Display. This binary is converted to a seven-segment output by the microcontroller and the outputs to the
dual seven segment display are delivered from pins RB0 to RB7 via 330Ω current limiting resistors. The complete
circuit diagram for the 4-Bit Binary Counter is shown in figure 4.
There is insufficient power from the microcontroller to drive the dual displays, and in any case, it is
customary to use “strobes” (multiplexing) to drive two displays from one set of segment outputs. Virtually all
displays are driven in this way. This explains why calculators and other digital electronic devices often appear to
flicker when filmed with a video camera. Strobe is achieved by careful programming, and the use of microcontroller
pin RA7 and RA8 to control which display is lit at any one time.
When RA7 and RA8 are at logic 1, current flows through the 10kΩ current limiting resistor into the base of
the two transistors. Hence the transistor switches on, and their collectors are effectively pulled to 0V, via their
emitters. The collectors of the transistors are connected to the display common cathode Pins and so the display is
able to light up according to the binary coded output. However, when RA7 and RA8 are at logic 0 (0V), the two
transistors turned off, and so no current will flow to the display and hence the display stays off. Decoupling of the
supply is provided by electrolytic capacitors and a 9V PP3 battery provides the necessary power supply.
Fig. 4: Schematic Layout of the 4-Bit Binary Counter
4.2 Applications of the circuit
The designed and constructed 4-bits counter can find application in the following areas:
(1) It is used essentially in digital computers and other digital devices for memory storage and counting in different
bases.
(2) The binary counting circuit can be modified and used in radioactivity Rate Meter for count rate per record.
(3) It can be modified and applied in frequency-dividing operations.
(4) It can be used in digital clocks and timers for counting events.
6. Design, Construction and Operation of A 4-Bit Counting Circuit
DOI: 10.9790/2834-10137378 www.iosrjournals.org 78 | Page
V. CONCLUSION
Digital counting circuits are vital in everyday Electronics. They are used not only in counting, but in the
conversion from one number base to another. Although, counters can also be designed/constructed using multi-
vibrators, this research has used the PIC Microcontroller, showing that it is the best method, as it makes use of a
firmware for its operation, at the same time reducing the number of components in the circuit. Again, the chip could
be reprogrammed for the realization of other types of counters.
REFERENCES
[1]. Menkiti, A.I. Computer Logic and Architecture. University of Calabar Press, Calabar, Nigeria, 2011.
[2]. Bozie, S.M. Electronics and switching circuits. Edward Arnold Publication, London, 1979.
[3]. Givant, S. and Halmos, P. Introduction to Boolean Algebra. Undergraduate Text in Mathematics, Sprinter Pub., 2009.
[4]. Hill, J.F. and Peterson, G.R. Introduction to switching theory and logical design. John Wiley and Sons, New York, 1974.
[5]. Patton, A. An introduction to digital logic. Macmillan Books, London, 1973.
[6]. Mandll, M. Directory of electronics circuits with glossary of terms. Eaglewood Cliffs, New Jersey, 1978.
[7]. Jaegar, R. C. Microelectronics circuit design. McGraw Hill. pp.226-233, 1997
[8]. Haykinl, S.S. Transistor circuits in electronics. Liffer Books, London, 1971.