Here, in this project we have used the pull-up resistor so that when the push button is released, the pin state will be in logic HIGH state.Īs we know counters are simple electronic circuits which count some values and after reaching the maximum value they will reset.Because when the button is released, the circuit will be open and if there is no pull-up or pull-down connected to the other pin of the push button, then that pin will be in floating state and will give any random voltage, which will create an issue. ![]() While using any push button, it is mandatory to use a pull-up or pull-down resistor with it, otherwise there will be some glitches in the operation.So when we press the push button, it will close the circuit and set the pin. ![]() As we will use the push buttons in active low condition which means one side will be connected to ground and other terminal will be connected to the Arduino.In this we have used a simple momentary push button for setting the counter in UP counting or in DOWN counting.For the counter, we will follow the truth table of display for showing the numbers.As they are simple LEDs so while using them in the circuit, it is mandatory to use some protection resistors with each of them if we are using Common ground type display and single resistor with the Common Vcc pin if we are using the Common Vcc type display.In Common anode type display, the LEDs will glow when the LEDs pins are connected to logic LOW.In Common cathode type display, the LEDs will glow when LEDs pins are connected to logic HIGH.Common ground is also known as Common cathode, and common Vcc is also known as Common anode.The pins on the display are noted as a,b,c,d,e,f,g.There are 7 different pins for each LEDs and one common pin, this pin can be common ground or common Vcc depending upon type of the display.It has two types, one is common ground and another is common Vcc.It is an LED display module, in which there are seven LEDs arranged in the rectangular form on which we can display single digit numbers from 0-9 and some alphabets as well.Here, we used the Arduino UNO as the main controller which works as a counter here and displays the same on the 7 segment LED display.We can power Arduino UNO using the DC power jack or Vin on the Arduino UNO module.Operating voltage of ATmega IC is 5 volts but on the Arduino board, using the DC power jack, we can connect upto 9-12 voltage power supply.It has a 10 bit ADC which can give value from 0 to 1023.It has 1 UART, 1 SPI and 1 I2C communication peripheral on board.Arduino UNO has 14 digital input/output pins and 6 analog input/output pins.ATmega328 has an 8 bit RISC based processor core with 32Kb flash memory.It uses the ATmega328 microcontroller made by ATMEL.Arduino UNO is an open source development board developed by Arduino.We will need the following components for this project We should first download the Arduino UNO library. In this, we have to install a library for the Arduino UNO module. In this software, we can run the real time simulation of electronics circuits and debug them without damaging any real components.Īnd it is a good practice to make any circuit in the simulation first if we do that for the first time.Īnd Proteus has a very large database for electronics components but it lacks some new component libraries, for that we have to install some libraries for those components. Proteus is a simulation software for electronics projects. As we are going to make this project in simulation, we will use Proteus simulation software. In this project, we will need two softwares first is the Arduino IDE which is used for Arduino programming. For example, we have a 8 bit Up counter which means it will count upto 255 and afterwards it will reset and will start again counting from zero. ![]() The limit of every counter depends on the bits of counter. And every counter has a reset limit, on which the counter resets to its initial value and starts the counting again. As per the digital electronics, there are two types of counter, the Up counter which counts in increasing order and another is Down counter which counts in decreasing order. Counter is a simple device which counts numbers. Most of us who have an electronics background or studied digital electronics must know the counter. In this project, we are going to make a very interesting project which is an Up-Down counter.
0 Comments
Leave a Reply. |