Flashing rear light for bicycles.

A product powered by pic 12F675 microcontroller. The circuit drives 6-8 leds separated into two groups which can be red and blue, imitating a police type rear-front flasher.

Product

Product


2

Clips to the seat post

Circuit Schematic

Circuit Schematic. Though the leds are on for a brief period ( a flash ) a series resistor can be omitted. If you want to have even smaller power consuption, a 470R resistor can be placed in series to all the leds.

below is the CCS C code for the project


#include <12F675.h>
#fuses INTRC_IO,NOWDT,NOPROTECT,NOMCLR
#use delay(clock=4000000)
//#use rs232(baud=9600, xmit=PIN_a5, rcv=PIN_a4)

#ROM 0x3ff = {0x3480}

#define kucukdelay 30
#define buyukdelay 60

void main() {




  while(TRUE) {
  
//   printf("A");
   OUTPUT_A(0b11111100);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);
   
   OUTPUT_A(0b11111100);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);

   OUTPUT_A(0b11111100);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);
   
   OUTPUT_A(0b11111100);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);
   
   OUTPUT_A(0b11111100);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);

   OUTPUT_A(0b11111100);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);
    
   OUTPUT_A(0b11111100);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);    
   
   OUTPUT_A(0b11111100);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);   
   delay_ms(buyukdelay); 
   delay_ms(buyukdelay); 
   delay_ms(buyukdelay); 
   delay_ms(buyukdelay); 
   delay_ms(buyukdelay); 
   delay_ms(buyukdelay); 

   
   OUTPUT_A(0b11001111);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);
   
   OUTPUT_A(0b11001111);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);   

   OUTPUT_A(0b11001111);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);
   
   OUTPUT_A(0b11001111);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);   
   
   OUTPUT_A(0b11001111);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);   
   
   OUTPUT_A(0b11001111);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);   
   
   OUTPUT_A(0b11001111);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);   
   
   OUTPUT_A(0b11001111);
   delay_ms(kucukdelay);
   OUTPUT_A(0b11111111);
   delay_ms(buyukdelay);   
   delay_ms(buyukdelay); 
   delay_ms(buyukdelay); 
   delay_ms(buyukdelay); 
   delay_ms(buyukdelay); 
   delay_ms(buyukdelay); 
   delay_ms(buyukdelay); 
     
   
  }

}

Comments are closed.

indian porn sexnxxx.cc xvideos Amateur Porn video porno amatoriali filmeporno.top lupoporno film porno gratuit xnxx
video porno देसी सेक्स एचडी पॉर्न ऊपर ऊपर से चुदाई Големи цици filme porno gratis sexohnegrenzen.com popular nudes leaked