Electronics Computer-Aided Design Random 8+ LED Flasher

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Random 8+ LED Flasher electfire 07-23-07
Posted by on July 23, 2007, 5:03 pm
Please log in for more thread options


Does anyone have a schematic for a 8(or more, you now what they say
the more the better) LED Flasher that will flash LEDs in a random
sequence


Posted by Chuck Harris on July 23, 2007, 5:35 pm
Please log in for more thread options


electfire@gmail.com wrote:
> Does anyone have a schematic for a 8(or more, you now what they say
> the more the better) LED Flasher that will flash LEDs in a random
> sequence
>
o +5V
|
+-----+------+
| 1 |
| |
| PIC16F631 |
| |
| 16|--270------ALED1C----+
| 15|--270------ALED2C----+
| 14|--270------ALED3C----+
| 7|--270------ALED4C----+
| 6|--270------ALED5C----+
| 5|--270------ALED6C----+
| 8|--270------ALED7C----+
| 9|--270------ALED8C----+
| | |
| | ---
| | ///
| |
| |
| 20 |
+-----+------+
|
---
///

Compile the text below with CCS's C compiler
model PLM:

#include "16F631.h"
#fuses INTRC_IO,NOMCLR,NOWDT,NOPROTECT,BROWNOUT
#use delay(clock=8000000)

void
main()
{
while(1){
output_C(rand());
delay_ms(250);
}
}

Similar ThreadsPosted
Random 8+ LED Flasher July 23, 2007, 5:03 pm