Skip to main content

PIC16F84a Chaser



Description:
This is an other kind of a LED Chaser in which the 'PIC16F84A' microcontroller, IC1, is used. The program that runs on this chip controls the LEDs attached to the output port pins. Resistors R1 - R8 limit the current through LED1 - LED8 to a safe level. Resistors R9-R13 provides a pull-up for the input connected to switches S1-S5. 4 MHz crystal is used for clock pulse generator & capacitors are used to ground the unwanted pulses.

Schematic:


click on image to zoom


Note that VCC should not exceed 5v.
Components:
  • Resistors, R1 - R8 220 ohm 0.25W
  • Resistors, R9 - R13 10k ohm 0.25W
  • IC1 PIC61F84A
  • Socket for IC1
  • Red LEDs (8)
  • S1 - S5, Push Switches
  • Ceramic Capacitors,C1-C2 27pF
  • 4 MHz Crystal



Hex code:
Note: Just copy the below code and paste it in notepad and save it with '.hex' extension, as chaser.hex.

:020000000528D1
:0800080005288316FF30850076
:1000100086018312FF308600051C1720851C3320C3
:10002000051D4F20851D6820051E96200C28FE30DA
:100030008600C020FD308600C020FB308600C02036
:10004000F7308600C020EF308600C020DF30860009
:10005000C020BF308600C0207F308600C020FF3027
:100060008600C02008007F308600C020BF30860098
:10007000C020DF308600C020EF308600C020F7307F
:100080008600C020FB308600C020FD308600C020E6
:10009000FE308600C020FF308600C02008007E3081
:1000A0008600C020BD308600C020DB308600C02026
:1000B000E7308600C020DB308600C020BD308600DF
:1000C000C0207E308600C020FF308600C02008009F
:1000D000FE308600C020FD308600C020FA30860049
:1000E000C020F5308600C020EA308600C020D53020
:1000F0008600C020AA308600C02055308600C0206F
:10010000AB308600C02057308600C020AF3086005C
:10011000C0205F308600C020BF308600C0207F3006
:100120008600C020FF308600C02008000030860016
:10013000CC20FF308600CC2000308600CC20FF3061
:100140008600CC2000308600CC20FF308600CC20FA
:1001500000308600CC20FF308600CC2000308600A6
:10016000CC20FF308600CC20080002308D00F93012
:100170008C00000000008C0BB9288D0BB7280800FC
:1001800064308E00B5208E0BC228080005308F0029
:10019000C0208F0BC828080002309000C620900BAA
:0401A000CE2808005D
:02400E00F23F7F
:00000001FF


Now burn the ucontroller using JDM Programmer. For more details read my article "Getting Started with ucontroller".

In Eagle 3D LED Chaser looks like:


Comments

Popular posts from this blog

3 Channels Audio Splitter Amplifier Circuit Diagram using TL084

This is the schematic diagram of 3 channels audio splitter amplifier circuit which built using op-amp IC TL084. The 3 channels amplifier output distribution applies a single TL084.   3 Channels Audio Splitter Amplifier Circuit Diagram The very first step is to capacitive coupling having a p. 1.0 ~ electrolytic capacitor. The entries are railways Vee Y2 or 4.5 V. This enables working with an individual 9V power source. A voltage gain of 10 (1 M?/100 Kohm) is obtained in the first stage, as well as the other three floors are connected as a unity gain voltage followers. Every single output stage drives independently through an amplifier output 50 pF capacitor towards the resistance of 5.1 k ohm load. The response range is flat from 10 Hz to 30 kHz.

A basic Arduino Solar PV Monitor

I have just recently had solar pv installed, mainly to future proof my energy costs, I do not expect it to be like drilling for oil in my back garden, however the return looks to be encouraging. The install gives you another single unit meter, from this you will see the total amount the panels produce, but that is about it. I wanted to know how much the production was as it was happening, I discovered the light blinks on the front of the meter will flash 1000 times for each kWh of electricity which passes through. The rate of the flashing of the LED tells you how much power is currently passing through the meter. [ ]

RF amplifier protection

RF amplifier protection I have developed the protection circuit for the EB104 amplifier I am working on, after I finally had some time to design and test a few models. The main requirements have been: - protection in case of high temperature; - protection in case of high SWR; - protection in case of wrong output filter selection; - simple design (i’m a fan of the whole K.I.S.S. rule of thought), able to work in strong electromagnetic fields, reliable, inexpensive. Because i will be using the same directional coupler i have used in the SWR meter (the one made on PCB) wich is directly influenced by the signal frequency, and because i want full HF coverage, i cannot just measure the reflected signal and make a circuit cut the amplifier when it goes over a limit; on 28Mhz the coupler generates roughly 4 times more voltage that let’s say in 7Mhz. So a system that compares direct and reflected signal and triggers when the latter is percentually too high was needed, therefore an operational a...