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

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. [ ]

Apple releases TV spot for new iPods

Apple has just released a fun commercial to showcase its new line of iPod players and the various colours they come in. The TV spot titled ‘Bounce’, has a bunch of colourful iPod touch, iPod nano and iPod shuffles er…bouncing to music. With all that colour and dancing and bouncing, you may forget that Apple’s latest gen line of iPods has some other awesome features. For instance, the fifth gen iPod touch comes with Siri, 4-inch retina display and an A5 chipset. Maybe the next ad will showcase some of these features with less bouncing.link

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.