Description: Five pins RA0 to RA4 are used as inputs. The pins are connected to the 5V average resistance 10K (Pull-up). So when no switch is not depressed all the pins have a high potential (HI +5 V). When one of them is pressed then the foot is connected to get a low potential (LOW 0V). When a switch is pressed, then the phenomenon of 'Bounce' (Debounce), this is because the switch does not always close the circuit but once more (rebounds) leading the microprocessor takes several input signals. In our example, code is not used to prevent rebound as soon as one pressed the switch immediately begins the routine imaging of the selected effect which is greater than this year's rebound. More: Circuit output (Driving Led)
Eight feet by RV7 RV0 used as outputs - drivers Led. Among them inserted 560R resistors, which limit the current flowing through the output pins and protect them from destruction. The descent of the led associated with resistance and rise to 5V. When the output is in a foot (HI +5 V) the led is not lit and when it is (LOW 0V) glows. In this example, we used high brightness led to reduce the current flowing through each leg.
Timing Circuit
For the timing of the processor used a ceramic filter (Resonator) or 10MHz crystal and two 22pF ceramic capacitors
Feeder circuit
The IC2 stabilizes the voltage from 12VDC to 5VDC and capacitors to smooth and filter. Since the consumption of the circuit is too low a stabilizer of about 100mA is enough.
Five pins, designated as RA0 to RA4, function as digital inputs within this circuit. These pins are configured with a pull-up resistor of 10kΩ connected to a +5V supply. When no switch is pressed, each pin maintains a high logic level (+5V). Upon pressing any switch, the corresponding pin is pulled to a low logic level (0V). A phenomenon known as switch bounce occurs during this action, where the mechanical contacts of the switch may rapidly open and close, causing multiple transitions between high and low states. In this design, debounce logic is not implemented, allowing the microprocessor to immediately respond to the first detected low state, initiating the corresponding routine.
The output section of the circuit includes eight pins, labeled RV0 to RV7, which are used to drive LEDs. Each output pin is connected in series with a 560Ω resistor, which serves to limit the current flowing through the LEDs, thereby preventing damage to the output pins. The LED operation is such that when the output pin is driven high (+5V), the LED remains off, while a low output (0V) causes the LED to illuminate. High-brightness LEDs are utilized in this configuration to ensure visibility while minimizing the current drawn from each output pin.
For timing purposes, the circuit employs a ceramic resonator or a 10MHz crystal oscillator, accompanied by two 22pF ceramic capacitors. This configuration ensures stable clock signals necessary for the microprocessor's operation.
The power supply circuit includes an integrated circuit (IC2) that regulates the input voltage from 12VDC down to a stable 5VDC output. Additional capacitors are used in the circuit to smooth and filter the voltage output, providing a stable power supply for the microprocessor and associated components. Given the low power consumption of the circuit, a voltage regulator rated for approximately 100mA is sufficient to meet the operational requirements.Five pins RA0 to RA4 are used as inputs. The pins are connected to the 5V average resistance 10K (Pull-up). So when no switch is not depressed all the pins have a high potential (HI +5 V). When one of them is pressed then the foot is connected to get a low potential (LOW 0V). When a switch is pressed, then the phenomenon of 'Bounce' (Debaunce), this is because the switch does not always close the circuit but once more (rebounds) leading the microprocessor takes several input signals. In our example code is not used to prevent rebound as soon as one pressed the switch immediately begins the routine imaging of the selected effect which is greater than this year's rebound.
Circuit output (Driving Led)
Eight feet by RV7 RV0 used as outputs - drivers Led. Among them inserted 560R resistors, which limit the current flowing through the output pins and protect them from destruction. The descent of the led associated with resistance and rise to 5V. When the output is in a foot (HI +5 V) the led is not lit and when it is (LOW 0V) glows. In this example we used high brightness led to reduce the current flowing through each leg. Timing Circuit
For the timing of the processor used a ceramic filter (Resonator) or 10MHz crystal and two 22pF ceramic capacitors
Feeder circuit
The IC2 stabilize the voltage from 12VDC to 5VDC and capacitors to smooth and filter.
Since the consumption of the circuit is too low a stabilizer of about 100mA is enough.
This project involves an automatic room light controller with a bidirectional visitor counter using a microcontroller. It is designed to manage room lighting and accurately count the number of individuals present. When a person enters the room, the counter increments...
A light computer has been developed that simulates the scanning effect seen in the KITT car from the TV series Knight Rider. The design utilizes a microcontroller, specifically the PIC16F84A, instead of the commonly used CD4017 counter IC. This choice...
Upon entering the password, the application, in this case "LED," will illuminate. In this digital locking system project, the interfacing of a keypad and a 16x2 LCD with a microcontroller will be explored, along with the accompanying code. This project...
The microcontroller used is 0822 zilog encore! 8k series (soic,28pin) as shown on the figure. Is a programmable microcontroller, the functions used are the GPIO and the UART of the chip. GPIO is used on led indicators, and the UART...
A regulated and noise-free power supply voltage is essential for microcontrollers and other components such as amplifiers, filters, and GPS devices. Voltage surges in the supply voltage can permanently damage embedded systems. A voltage regulator must maintain the output voltage...
The driving circuit depicted in Figure 18-12 consists of a connection between the driving portion, the microcontroller, and the air conditioning operation components of the bridge. The microcontroller's digital signal levels from ports P4.0 to P4.3 (approximately 12 feet) and...
This article outlines the construction of a simple microcontroller-based delay circuit designed for photographic applications, such as drop or high-speed photography. It is capable of controlling the trigger lag for cameras and flash units, generating periodic trigger pulses, or managing...
The PC board has been designed to accept either a PIC16F84A or PIC16F628. With the introduction of the 628 to the world market, it has taken over from the PIC16F84A and we will be ceasing to design projects for the...
This circuit employs an 87C57 microcontroller along with several peripherals to convert X-10 power-line carrier-code formats from a personal computer for use with an X-10 power-line interface in a home-control system. Software details can be found in the reference.
The circuit...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more