Post Top Ad

Sunday, May 28, 2023

on video FLIP-FLOP LDR double circuit clignotant LED


 we will make a Flip Flop Led Flashing circuit using Resistors and Capacitors. This circuit is actually an astable multi-vibrator which starts blinking leds one by one when power is applied. This circuit can be operated with any 6-12v voltage source. You can also operate the circuit by changing the values of the current limiting resistors R1 and R4 to 390 ohms

Circuit de test: clignotant to LED

 
1- Presentation
2- Electric Scheme
3- Principle of function
4- List of materials
5- Code source of microcontroller PIC (in assembler)
6- Code source of microcontroller PIC (in language C, compilateur mikroC)
7- Simulation with ISIS-Proteus
 

 

1- Presentation
The circuit fait clignoter une LED à une fréquence d'environne 1 Hz.

Vous me direz qu'il est superflu d'utiliser un microcontroller pour réaliser cette tâche.

Je vous répondrai que je suis d'accord: a multivibrator à NE555 is bien suffisant.

Mais la simplicité du montage devrait intéresser les débutants.

On pourra also se servir de ce montage such as circuit de test, pour mettre en évidence la défaillance du microcontroller.

  3- Principle of function
The basis for temps of the PIC microcontroller is fixed by R2 and C3:

f OSC1 ≈ 1/(R2.C3) ≈ 2130 Hz

f OSC2 = f OSC1 / 4 Š530 Hz or 530 cycles per second (in practice: 440 Hz mesur̩e sur la broche OSC2)

Le microcontroller utilise une source d'interruption: celle du module TMR0.

The module TMR0 (8 bits) is configured in timer mode (avec prescaler 1:1).

L'interruption a donc lieu tous les 256 cycles, which corresponds to the environment in a demi-second.

The routine d'interruption inverse le niveau logique de la sortie RA1: la LED clignote donc avec une period de l'ordre de 1 seconde.

 

4- List of materials
1 microcontroller PIC 16F84A or 16F628A or 16F88 or 16F876A
Remark: you can ask for chantillons gratuits from Microchip :)
1 LED
1 resistance 10 kΩ 1/4 W
1 Resistance of 220 Ω
1 condensateur of 47 nF
1 source d'alimentation continue 5 V
1 electric condenser of 10 µF (filtration of the alimentation)
1 condensateur of 100 nF (filtration de l'alimentation)
 

1 programmateur for flasher the program of microcontroller PIC
 

5- Code source of microcontroller PIC (in assembler)
The code source a été écrit en langage assembleur avec l'environnement de veloppement gratuit MPLAB IDE de Microchip.

The programs are from élémentaires: following 11 instructions


 we will make a Flip Flop Led Flashing circuit using Resistors and Capacitors. This circuit is actually an astable multi-vibrator which starts blinking leds one by one when power is applied. This circuit can be operated with any 6-12v voltage source. You can also operate the circuit by changing the values of the current limiting resistors R1 and R4 to 390 ohms

Circuit de test: clignotant to LED

 
1- Presentation
2- Electric Scheme
3- Principle of function
4- List of materials
5- Code source of microcontroller PIC (in assembler)
6- Code source of microcontroller PIC (in language C, compilateur mikroC)
7- Simulation with ISIS-Proteus
 

 

1- Presentation
The circuit fait clignoter une LED à une fréquence d'environne 1 Hz.

Vous me direz qu'il est superflu d'utiliser un microcontroller pour réaliser cette tâche.

Je vous répondrai que je suis d'accord: a multivibrator à NE555 is bien suffisant.

Mais la simplicité du montage devrait intéresser les débutants.

On pourra also se servir de ce montage such as circuit de test, pour mettre en évidence la défaillance du microcontroller.

  3- Principle of function
The basis for temps of the PIC microcontroller is fixed by R2 and C3:

f OSC1 ≈ 1/(R2.C3) ≈ 2130 Hz

f OSC2 = f OSC1 / 4 Š530 Hz or 530 cycles per second (in practice: 440 Hz mesur̩e sur la broche OSC2)

Le microcontroller utilise une source d'interruption: celle du module TMR0.

The module TMR0 (8 bits) is configured in timer mode (avec prescaler 1:1).

L'interruption a donc lieu tous les 256 cycles, which corresponds to the environment in a demi-second.

The routine d'interruption inverse le niveau logique de la sortie RA1: la LED clignote donc avec une period de l'ordre de 1 seconde.

 

4- List of materials
1 microcontroller PIC 16F84A or 16F628A or 16F88 or 16F876A
Remark: you can ask for chantillons gratuits from Microchip :)
1 LED
1 resistance 10 kΩ 1/4 W
1 Resistance of 220 Ω
1 condensateur of 47 nF
1 source d'alimentation continue 5 V
1 electric condenser of 10 µF (filtration of the alimentation)
1 condensateur of 100 nF (filtration de l'alimentation)
 

1 programmateur for flasher the program of microcontroller PIC
 

5- Code source of microcontroller PIC (in assembler)
The code source a été écrit en langage assembleur avec l'environnement de veloppement gratuit MPLAB IDE de Microchip.

The programs are from élémentaires: following 11 instructions

No comments:

Post a Comment

Post Top Ad

Pages