الاثنين، 14 ديسمبر 2015

Police Lights Using 555 Timer

Here is an interesting project named police car lights designed using 555 timer. This circuit simulates the police car lights by alternate flashing.

Project Description

This circuit simulates the police car lights by alternate flashing. This circuit flashes red LEDs for three times and blue LED’s for three times. This flashing action performs continuously. This circuit uses 555 timer and a decade counter. Here, 555 timer runs in astable mode. Decade counter 4017 counts the incoming pulses that is for first pulse Q0 becomes high and for second pulse Q1 becomes high and so on again for 10th pulse Q0 state becomes high.
Police Lights Circuit using 555 Timer:
Figure:1 Circuit Diagram

Figure 1  Circuit Diagram

Circuit Components:
  • NE555 timer
  • 4017 decade counter
  • 1n4148 diodes – 6
  • 1 k Resistor(1/4 watt) – 1
  • 22 k Resistor(1/4 watt) – 1
  • 470 ohm Resistor(1/4 watt) – 8
  • 2.2 uF Electrolytic capacitor(16V) – 1
  • Blue LED’s – 2
  • Red LED’s – 2
  • 9 V battery – 1
  • Connecting wires
555 Timer Based Police Lights Circuit Design
555 Timer. Here 555 Timer runs in free running mode. It produces pulses whose width can be varied. 2nd and 6th pins are shorted to allow triggering after every cycle. 4th pin is connected to Vcc to avoid sudden resets.
4017 Decade Counter. It is a 10-bit counter with ten decoded outputs. It counts the incoming pulses. The supply voltage range is -0.5 to +22 V. The high pulse on the reset pin clears the count to zero. The speed of operation of this IC is up to 10 MHz. The output states (Q0, Q2, Q4) are ORed to flash the blue LED’s 3 times and the states Q5, Q7 and Q9 are ORed to flash the red LED’s 3 times.
Based on the output of 4017 IC, two transistors (NPN) switches the LED’s ON and OFF. Resistors R3, R4, R5, R6 are used to protect the LED’s from high voltage.
After connecting the whole circuit, apply power to it. Now observe the LEDs carefully. You will find that red led’s flashes 3 times and blue led’s flashes 3 times and this process repeats.
Are you interested to get detailed information about this project? Read More…

Timer Alarm Circuit

This circuit is a type of alarm system in which different values of resistors are used to adjust the triggering time of its buzzer. The design has fewer components than a conventional timing circuit. The circuit is supplied by a 9V DC source. The S1 is a switch that controls the supply. The S2 serves as a triggering switch in order to start the timer. The 500kΩ, 1MΩ, 1.5MΩ and 2.2MΩ resistors are the set values to acquire 5, 10, 15 and 20 minutes intervals of time in order to produce alarm. The capacitors controls the delay of timing. The 555 IC is used as pulse generator and main component for the timer. The design is suitable for fixed timing applications. It is cheap and easy to build.

Project Description

Figure:1 Timer Alarm Circuit 1

Figure 1  Timer Alarm Circuit 1

Figure:2 Timer Alarm Circuit 2

Figure 2  Timer Alarm Circuit 2

This is a basic application of 555 timer. It is used as part of the timing circuit in which it varies time interval with respect to the value of resistance given. It is useful for simple application where fixed timing is needed.
The complete design is provided at
link-> http://schematics.com/project/timer-alarm-circuit-14342/

الأحد، 13 ديسمبر 2015

Industrial Power Control by Integral Cycle Switching

The project is designed to achieve integral cycle switching, a method to remove whole cycle, cycles or portions of cycles of an AC signal. It is a well-known and old method of controlling AC power, especially across linear loads such as heaters used in electric furnace. However the concept of achieving the cycle stealing of voltage waveform by use of microcontroller can be very precise as per the program written in assembly / C language so that the actual time-average voltage or current experienced at the load is proportionately lower than the whole signal if applied to the load. In place of a linear load to be used in the output, a series motor or lamp can be used to verify the output. One side effect of utilizing this scheme is an imbalance in the input current or voltage waveform as the cycles are switched on and off across the load.
In this project we are using comparator for zero crossing detection which is fed as an interrupt to microcontroller of 8051 family. Here the microcontroller delivers the output based on the interrupt received as the reference for generating triggering pulses. Using these pulses, we drive the opto-isolators for triggering the TRIAC to achieve integral cycle control as per the input switches interfaced to the microcontroller. A lamp is provided in this project in place of a motor for demonstration purpose.
Further this project can be enhanced by using feedback mechanism to automatically maintain desired output to the load by appropriate cycle stealing.

Project Description

This is project is based on embedded systems and is more helpful to EEE Students to complete their engineering. This project is designed to achieve integral cycle switching, a method to remove whole cycle, cycles or portions of cycles of an AC signal.
Figure:1 Industrial Power Control by Integral Cycle Switching without Generating Harmonics

Figure 1  Industrial Power Control by Integral Cycle Switching without Generating Harmonics

Figure:2 Industrial Power Control by Integral Cycle Switching without Generating Harmonics

Figure 2  Industrial Power Control by Integral Cycle Switching without Generating Harmonics

Figure:3 Block Diagram

Figure 3  Block Diagram

https://www.youtube.com/watch?time_continue=51&v=WnTuFAtravE

20 W Power Factor Corrected, Non-Isolated, TRIAC Dimmable LED Driver



This document describes a non-isolated, high power factor (PF), TRIAC dimmable LED driver designed to drive a nominal LED string voltage of 96V at 210 mA from a high line input voltage range of 195 VAC to 265 VAC (50 Hz typical). The LED driver utilizes the LYT4326E from the LYTSwitch-4 family of ICs. The topology used is a single-stage non-isolated buck boost that meets constant current regulation, and dimming requirements for this design.

Project Description

Figure:1

Figure 1 

This document describes a non-isolated, high power factor (PF), TRIAC dimmable LED driver designed to drive a nominal LED string voltage of 96V at 210 mA from a high line input voltage range of 195 VAC to 265 VAC (50 Hz typical). The LED driver utilizes the LYT4326E from the LYTSwitch-4 family of ICs. The topology used is a single-stage non-isolated buck boost that meets constant current regulation, and dimming requirements for this design.
Figure:2

Figure 2 

Features
  • Single-stage power factor correction combined with constant current (CC) output
  • Fast start-uptime(< 200 ms) –no perceptible delay
  • High efficiency > 85 % at 230 VAC
  • PF > 0.9at 230VAC
  • Output short-circuit protected with auto-recovery
  • Auto-recovering thermal shutdown with large hysteresis
Read More…

Arduino-Digital Light Meter


Project Summary

A light meter is a very useful device that finds applications in hospitals, schools, factories, parking lots, passageways, and many more to measure and maintain adequate lighting levels. It is also useful in photography to set an accurate exposure for the camera. This project describes a simple Arduino-based digital light meter, which is capable of measuring the ambient light intensity ranging from 0-65535 Lux. The output is displayed in both Lux and Footcandles.

Project Description

Hardware The BH1750FVI sensor is used to measure the incident light intensity. BH1750FVI is a digital light sensor IC that directly provides calibrated output in Lux. It can measure ambient light intensity ranging from 0 to 65535 Lux. The sensor output can be accessed through an I2C interface. For displaying the result, a MAX7219-based serial 8-digit seven segment LED module is used. MAX7219 allows you to control 8 common cathode seven segment LED displays with only 3 I/O pins from a microcontroller. Figure 1 shows the wiring of the sensor and the display module to the Arduino board.
Figure:1 Arduino connections

Figure 1  Arduino connections

A tact switch connected to Pin 2 of Arduino operates in interrupt mode and is used to toggle the output between Lux and Footcandles. The complete project setup is shown in Figure 2. The sensor and tact switch are soldered on a general-purpose prototyping board, which plugs onto the Arduino Uno using male headers. Using a proto-shield would be much easier to build the hardware of this project.
Figure:2 Complete setup of the project

Figure 2  Complete setup of the project

Software The LedControl library is used to interface the MAX7219-driven seven segment LED display module to Arduino. The sensor data is read using the Wire library. The sensor is configured for a measurement resolution of 1 Lux. The measurement and output display are both refreshed every second. Click here to download the full Arduino Sketch
Output
The sensor should be faced directly toward the light source that is to be measured. The default unit of display is Lux. Press the Mode switch to toggle between Lux and Footcandle units. Figure 3 shows the light meter displaying output in Footcandles (Fc).

Figure:3 Digital light meter in action

Figure 3  Digital light meter in action


More details can be found at the Author’s personal page.

4 Band Resistor Calculator


Calculate the resistance of a 4 band resistor

Resistance Calculator

Choose Type

4 Band Resistor

resistor
1st Digit
2nd Digit
Multiplier
Tolerance
Black
0
x1
Brown
1
1
x10
± 1%
Red
2
2
x100
± 2%
Orange
3
3
x1K
± 3%
Yellow
4
4
x10K
± 4%
Green
5
5
x100K
± 0.5%
Blue
6
6
x1M
± 0.25%
Violet
7
7
x10M
± 0.10%
Grey
8
8
x100M
± 0.05%
White
9
9
x1G
Gold
÷ 10
± 5%
Silver
÷ 100
± 10%

Outputs

Resistance: 
5.60k ohms
 
Tolerance: 
± 5%
 

Introduction

A resistor is a perhaps the most common building block used in circuits. Resistors come in many shapes and sizes this tool is used to decode information for color banded axial lead resistors.

4 Band Description

The number of bands is important because the decoding changes based upon the number of color bands. There are three common types: 4 band, 5 band, and 6 band resistors. For the 4 band resistor:
Band 1 – First significant digit.
Band 2 – Second significant digit
Band 3 – Multiplier
Band 4 – Tolerance

Resistance Value

The first 4 bands make up the resistance nominal value. The first 2 bands make up the significant digits where:
black – 0
brown – 1
red – 2
orange – 3
yellow – 4
green – 5
blue – 6
violet – 7
grey – 8
white – 9
The 3rd band or multiplier band is color coded as follows:
black – x1
brown – x10
red – x100
orange – x1K
yellow – x10K
green – x100K
blue – x1M
violet – x10M
grey – x100M
white – x1G
gold – .1
silver – .01
An example of a resistance value is:
band 1 = orange = 3,
band 2 = yellow = 4,
band 3 = blue = 1M
value = 34*1M = 34 Mohm

Resistance Tolerance

The fourth band is the tolerance and represents the worst case variation one might expect from the nominal value. The color code for tolerance is as follows:
brown – 1%
red – 2%
orange – 3%
yellow – 4%
green – .5%
blue – .25%
violet – .1%
gray – .05%
gold – 5%
silver – 10%
An example calculating the range of a resistor value is:
If the nominal value was 34 Ohm and the 4th band of the resistor was gold (5%) the value range would be nominal +/- 5% = 32.3 to 35.7

السبت، 12 ديسمبر 2015

PIC Microcontroller Intro – Tutorial #3

This chapter, like its predecessor, focuses both in hardware and software related to PIC microcontrollers. In the second part, we made an attempt to blink one LED through a PIC microcontroller PIC12F675 with the help of a pre-processed (hex) code. Here, we are going to learn more about writing our own code for such a simple LED project.

What is a compiler? Compiler is a program that decodes instructions written in a higher order language and produces an assembly language program. MikroC is a best compiler for beginners as it contains built in functions for most of the commonly used tasks. You can download a trial/limited version of MikroC from here (http://www.mikroe.com/mikroc/pic/). Note that, this trial version is limited to 2K of program words, but is sufficient for most of our learning applications.
First of all, you should install the downloaded MikroC PRO For PIC in your PC and open it. Now click on Project and then New Project. In the New Project Wizard window, click Next, enter Project name, Project Folder, Device Name (microcontroller) , Device Clock (clock frequency), and click Next (here we use PIC 16F877A microcontroller with 8MHz crystal). At this time just click Next in the Add Files to Project window.
Click Next in Library Manager after selecting Include All (default) in Include Libraries, click Finish to complete the New Project Wizard. This will open the editor window where you can enter the code.
What is next? Enter the code (shown at the end of this paragraph), Save it and then Compile it by clicking Build (or Ctrl+F9). This will generate a hex file in your project folder. You need to burn this hex file into the PIC16F877A microcontroller using your PIC programmer, as done earlier. Finally, finish the hardware as per the wiring diagram included here.
wiring diagram
This time, the microcontroller is PIC16F877A! VDD and VSS of PIC Microcontroller is connected to +5V and GND respectively, and the 8MHz crystal is used to provide necessary clock for the microcontroller. Two 22pF capacitors stabilizes the oscillations of the crystal. One Red LED is connected to the one PORTB pin and a 1K Ω resistor is connected in series with it to limit the operating current of the LED.
Our code for PIC 16F877A microcontroller blinks the connected LED with a delay of 1 second. Okay, but how? What is behind this little code?
  1. void main()
  2. {
  3. TRISB.F0 = 0;
  4. while(1)
  5. {
  6. PORTB.F0 = 1;
  7. Delay_ms(1000);
  8. PORTB.F0 = 0;
  9. Delay_ms(1000);
  10. }
  11. }
TRIS stands for TriState, which determines the direction of each GPIO pin. Output pins of a PIC Microcontroller is divided in to different PORTS containing a group of GPIO (General Purpose Input Output Pins). Logic 1 at a particular bit of TRIS register makes the corresponding pin Input and Logic 0 at a particular bit of TRIS register makes the corresponding pin Output. And, PORT register is used to read data from or write data to GPIO pins. Logic 1 at a particular bit of PORT register makes the corresponding pin at Logic-High (H) state and Logic 0 at a particular bit of PORT register makes the corresponding pin at Logic-Low (L) state, if that pin is an Output pin (TRIS bit is 0).
TRISB.F0 = 0;→ Makes 0th bit of PORTB (PORTB0 or RB0) Output while(1)→ An infinite loop
PORTB.F0 = 1;→ Makes 0th bit of PORTB at Logic-High state
PORTB.F0 = 0;→ Makes 0th bit of PORTB at Logic-Low state
The Delay_ms (const unsigned long a) is a built in function of MikroC PRO which provides a delay of ‘a’ milliseconds. The variable ‘a’ must be a constant of type unsigned long integer. Okay, now our code is well-defined!
  1. void main()
  2. {
  3. TRISB.F0 = 0; // PORT B0 as output
  4. while(1) // Infinite Loop
  5. {
  6. PORTB.F0 = 1; // LED connected at RB0 ON
  7. Delay_ms(1000); // 1 Second Delay
  8. PORTB.F0 = 0; // LED connected at RB0 OFF
  9. Delay_ms(1000); // 1 Second Delay
  10. }
  11. }
PIC16F877A 40-pin Enhanced Flash Microcontroller
(PIC16F877A: 40-pin Enhanced Flash Microcontroller)
If you are in doubt, follow this wiring diagram to learn how to connect your PIC Kit 2 programmer with the PIC16F877A microcontroller. Also refer Part-2 of this tutorial!
PIC Kit 2 programmer

Twitter Delicious Facebook Digg Stumbleupon Favorites More