Maker Pro
Maker Pro

Random 8+ LED Flasher

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
 
C

Chuck Harris

Jan 1, 1970
0
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);
}
}
 
Top