Friday, December 12, 2014
Plus and Minus DC Power Supply

This is a classic example of a regulated DC power supply that produces both a positive 15v and a negative 15v from a 20vac wall adapter.
Wednesday, November 12, 2014
STK415 090 E bassed 2x50 watt stereo amplifier Diagram Circuit
This electronic project stereo amp is based on the STK415-090-E class H audio power amplifier hybrid IC that features a built-in power supply switching circuit.
This STK415-090-E class H audio power amplifier provides high efficiency audio power amplification by controlling (switching) the supply voltage supplied to the power devices according to the detected level of the input audio signal.
STK415-090-E class H audio power amplifier is pin to pin compatible with STK416-100 stereo amp .
This electronic project stereo amp will provide an 50 + 50 watts output power with 0.8 % THD , but it can provide more power , up to 80 watts with 10% THD .
STK415-090-E class H audio power amplifier supports output loads from 4 up to 8 ohms and require an input DC voltage from 27 up to 60 volts .
For 8 ohms load , voltage required by this stereo amp project are : +/- 27V for VL and +/-37V for VH .
This 2x50 watt stereo amp project must be designed so that (|VH|-|VL|) is always less than 40V when switching the power supply with the load connected. Set up the VL power supply with an offset voltage at power supply switching (VL-VO) of about 8V as an initial target.
To prevent over heating damage thermal design must be implemented and a thermoplastic adhesive resin must be used for this hybrid IC .
A value of 2.34.C/W, satisfies all required thermal resistance of the heat sink .
Electronic parts required for this 2x50 watt stereo amp electronic project are : R01, R02 1.5k ; R03, R04 100 /1W , R05, R06 56k ; R08, R09 4.7 /1W ; R11, R12 4.7, R14,R15 560 ; R18, R19 56k ; R21, R22 1k ; R24, R26 0.22 10%, 5W ; C01, C02 100.F/100V ; C03, C04 100.F/50V ; C05, C06 100.F/ 100V ; C07, C08 3pF; C10, C11 0.1.F; C13, C14 22.F/10V ; C16, C17 2.2.F/50V ; C19, C20 470pF ; C22, C23 100pF ; D01, D02 15V ; D03, D04 3A/60V ; L01, L02 3.H .
Sunday, October 26, 2014
Intelligent Presence Simulator Diagram Circuit
Rather than simply not going on holiday – which is also one solution to the problem (!) – we’re going to suggest building this intelligent presence simulator which ought to put potential burglars off, even if your home is subjected to close scrutiny. Like all its counterparts, the proposed circuit turns one or more lights on and off when the ambient light falls, but while many devices are content to generate fixed timings, this one works using randomly variable durations.
Circuit diagram:
Intelligent Presence Simulator Circuit Diagram
So while other devices are very soon caught out simply by daily observation (often from a car) because of their too-perfect regularity, this one is much more credible due to the fact that its operating times are irregular. The circuit is very simple, as we have employed a microcontroller – a ‘little’ 12C508 from Microchip, which is more than adequate for such an application. It is mains powered and uses rudimentary voltage regulation by a zener diode.
A relay is used to control the light(s); though this is less elegant than a triac solution, it does avoid any interference from the mains reaching the microcontroller, for example, during thunderstorms. We mustn’t forget this project needs to work very reliably during our absence, whatever happens. The ambient light level is measured by a conventional LDR (light dependent resistor), and the lighting switching threshold is adjustable via P1 to suit the characteristics and positioning of the LDR.
Note that input GP4 of the PIC12C508 is not analogue, but its logic switching threshold is very suitable for this kind of use. The LED connected to GP1 indicates the circuit’s operating mode, selected by grounding or not of GP2 or GP3 via override switch S1. So there are three possible states: permanently off, permanently on, and automatic mode, which is the one normally used. Given the software programmed into the 12C508 (‘firmware’) and the need to generate very long delays so as to arrive at lighting times or an hour or more, it has been necessary to make the MCU operate at a vastly reduced clock frequency.
PCB Layout:
PCB Layout Of Intelligent Presence Simulator
In that case, a crystal-controlled clock is no longer suitable, so the R-C network R5/C3 is used instead. For sure, such a clock source is less stable than a crystal, but then in an application like this, that may well be what we’re after as a degree of randomness is a design target instead of a disadvantage. Our suggested PCB shown here takes all the components for this project except of course for S1, S2, and the LDR, which will need to be positioned on the front panel of the case in order to sense the ambient light intensity.
The PCB has been designed for a Finder relay capable of switching 10 A, which ought to prove adequate for lighting your home, unless you live in a replica of the Palace of Versailles. The program to be loaded into the 12C508 is available for free download from the Elektor website as file number 080231-11.zip or from the author’s own website: www.tavernier-c.com. On completion of the solder work the circuit should work immediately and can be checked by switching to manual mode.
The relay should be released in the ‘off’ position and energized in the ‘on’ position. Then all that remains is to adjust the day/night threshold by adjusting potentiometer P1. To do this, you can either use a lot of patience, or else use a voltmeter – digital or analogue, but the latter will need to be electronic so as to be high impedance – connected between GP4 and ground. When the light level below which you want the lighting to be allowed to come on is reached, adjust P1 to read approximately 1.4 V on the voltmeter.
If this value cannot be achieved, owing to the characteristics of your LDR, reduce or increase R8 if necessary to achieve it (LDRs are known to have rather wide production tolerances). Equipped with this inexpensive accessory, your home of course hasn’t become an impregnable fortress, but at least it ought to appear less attractive to burglars than houses that are plunged into darkness for long periods of time, especially in the middle of summer. (www.tavernier-c.com)
COMPONENTS LIST
Resistors
R1 = 1k 500mW
R2 = 4k7
R3 = 560R
R4,R6 = 10k
R5 = 7k5
R 7 = LDR
R8 = 470k to 1 M
P1 = 470k potentiometer
Capacitors
C1 = 470µF 25V
C2 = 10µF 25V
C3 = 1nF5
C4 = 10nF
Semiconductors
D1,D2 = 1N4004
D3 = diode zener 4V7 400 mW
LED1 = LED, red
D4 = 1N4148
T1 = BC547
IC1 = PIC12C508, programmed, see Downloads
Miscellaneous
RE1 = relay, 10A contact
S1 = 1-pole 3-way rotary switch
F1 = fuse 100 mA
TR1 = Mains transformer 2x9 V, 1.2 -3 VA
4 PCB terminal blocks, 5 mm lead pitch
5 solder pins
Saturday, October 25, 2014
OP270E Low Noise Microphone Amplifier Diagram Circuit
The bandwidth of the amplifier ranges from 1 Hz to 20 kHz. Within the audio range (20 Hz to 20 kHz), the distortion is less than 0.005 percent. Since only half of the OP-270E is used, the remaining opamp could be used in the output stage of a stereo version. The amplifier can be powered from a stabilized, symmetrical supply with a voltage between ±12 V and ±15 V. Such supply voltages are already present in many amplifierSaturday, October 18, 2014
Headlight Reminder circuit and explanation
Circuit diagram:
This transistor is switched on whenever accessory power is present, pulling its collector towards ground (0V). If the ignition is switched off but the lighting circuit remains powered, the loss of accessory power results in Q1 switching off and releasing the reset signal to IC1, sounding the alarm. A 220Ω resistor in series with the piezo protects the 555’s output (pin 3). Although most piezo elements have relatively high impedance, this drops as the frequency increases due to their capacitive nature. The square-wave output on pin 3 includes many harmonics, some extending well into the ultrasonic range. The unit fits easily into a small plastic box. I spliced mine into the wiring running to the cigarette lighter, which includes both accessories and panel lamp circuits as well as a chassis ground wire. The result fits neatly behind the ashtray, with no chassis bashing required!
Sunday, October 5, 2014
Sport Analyzer Using an Accelerometer overview and explanation
Overview
This sport accelerometer uses a transmitter with accelerometer that reads data and transmits to a computer with DSP while being used in athletics to determine the wrong foot steps as the athletes run.
Explanation
The development of the device includes all the holes which contain the programming header called ICD located above the power label which has the serial lines and above the ON/OFF switch for the external power. These headers serve the purpose of providing backup by plugging wires in the event of lost wireless connection due to low battery. Other components used are the low dropout voltage regulator (LDO), lithium battery charger, Xbee, and the accelerometer. A Digital Signal Processing (DSP) was implemented in order to recognized sounds as the logging starts on a whistle blow.
The result of the two layer lip was due to the location of the lithium battery under the PCB. On order to get proper data for plotting, a gyro should be added to provide help after the accelerometer was attached. The use of Xbee module may not be necessary and other alternatives can made. A simple 868 MHz radio transceiver can be used to provide communication.
Wednesday, October 1, 2014
MCS 96 Microcontroller Application and Specifications Explained
The microprocessor has become an increasingly significant factor in various fields. Advanced integrated circuit technology has enabled a complete system on this device which contains a CPU, program memory, data memory, interrupt controller, serial communication port, TTL I/O and analogue I/O. These ‘on-chip system’ devices are termed as microcontrollers.
The microcontrollers can have additional features and characteristics to suit specific application areas. In effect, we have microcontrollers for digital signal processing, LCD screen control, communication, speech syn- thesis and real-time control. In every field, the microcontrollers have helped users in overcoming old barriers and perform tasks which were previously considered impossible.
Real-time applications In real time environment the processor performs several tasks simultaneously. Broadly, the tasks can be divided into two types monitoring and control. For these applications, general purpose microprocessors and micro- controllers are not very efficient. This 5 is because the minimum necessary configuration of the system itself may involve many devices. Consequently, the system tends to be bulky, less reliable and consumes more power.` But what degrades the real time efficiency is the fact that more external bus cycles have to be performed to interact with various devices that are involved in the system.
The obvious solution is to integrate essential resources on one chip and effectively hold them together, so that the totality offered by the new device can have far reaching impact on many real-time applications. Intel Corp has developed some microcontroller families in an attempt to offer totality to real-time application areas. MCS-96 family can be considered as a matured attempt in this direction.
The block diagram As seen from the typical block diagram of MCS—96, a 16-bit microcontroller family, the resources like analogue I/O, digital I/O, special function registers, separate register file, timers, program memory and watch- dog timer etc. are coupled together on one chip. From these basic features itself, things appear to be set for many real-time applications. But, as realised earlier, efficient interaction be- tween the resources is equally important for real-time applications.
After studying the resource management details. we are happy to real- ise that the blocks once programmed can function independently. Some of the blocks can optionally get activated without CPU’s intervention. What is even more impressive is that, some of them store their individual outputs in the private buffer areas. Eventually, CPU is freed from many duties and can pay maximum attention to ‘rea time management".
Now let us take a closer look at some of the blocks individually. 232-byte register tile. This file contains 232 bytes of RAM, which can be accessed as bytes, words or double words. Each of these locations can be used as an ‘accumulator’. These large number of accumulators can be very useful to handle many tasks simultaneously, without spending time in ‘saving’ and ‘unsaving’ them.
By using a portion of this internal RAM area for the stack operations, many external bus cycles may be shortened. This leads to lot of time saving in critical applications.
The top-most 16 bytes (FO h—FF h) can be preserved under power down conditions, by providing battery backup.
Special function registers. All I/Os on the microcontroller are controlled through these registers. Most of these registers have two functions one of being read from and the other, of being written to. The memory map illustrates this. These registers are accessible as bytes unless specified otherwise. Through these registers, other on chip resources like high speed TFL I/O, 1 watchdog timer, PWM output etc., can be programmed and accessed.
Timers: Two 16-bit timers designated as Timerl and Timer2, are available on the chip. Timer1 is used to synchronise events to real-time, while Timer2 can be clocked externally. Both the timers can be used to generate interrrupts when overflow occurs. High-speed TTL I/O units are coupled to these timers. Baud rate generator can also use the input applied to Timer2.
Watch dog timer is a very special category timer, which can monitor the program being executed by the microcontroller. In case of software upsets, this timer can reset the microcontroller and an error recovery routine can resume the execu- tion gracefully from a suitable point.
Serial port. The serial port provided has three asynchronous and one synchronous modes of operation.The receiver is double buffered and the port is functionally compatible with the serial port on MCS-51 family of microcontrollers. The port is supported by an independent baud rate generator. The asynchronous modes of the port operate in full duplex.
High speed input unit (HSI). This is a functionally independent unit which can record the time at which an event has occurred with respect to Timer1. There are four such input lines, which can be individually programmed to record specific events. This unit can identify four types of events eight positive transitions, each positive transition, each negative transition and every transition.
Whcn HSI cvcnt occurs, an 8.x 20 FIFO stores thc 16 bits of Timcrl and 4 bits indicating thc actual event. The unit can take eight such events and hold them in the FIFO. One more event can be held in the holding register. The unit can generate interrupts in three ways two depend on the FIFO status and one depends on transition on HSLO pin.
If similar transitions have to be monitored with general purpose ` microprocessors or microcontrollers, no other activity can be comfortably performed simultaneously.
High speed output unit (HSO). This unit outputs TTL levels at the specified event with minimum CPU overhead. The recognised events include start of A/D conversion and resetting Timer2.
HSO unit has content addressable memory (CAM) at the centre of the control. There are eight CAM registers of 23 bits each. Thus, each CAM register contains 16-bit time at which action is to be carried out. The remaining 7 bits specify reference with the nature of action.
One CAM register is compared with timer values every state time, taking eight state times to compare all CAM registers with the timers. When the referred timer value matches, action is taken as specified by the other 7 bits. This action does not need CPU’s intervention. Thus, HSO lines can generate ITL waveforms effectively. By suitably signal conditioning the HSO pulses, three phase control and even analogue control outputs can be obtained. HSO units can be programmed to generate interrupts at preset times. When this unit is programmed, on reset of Timer2 or start of A/D conversion, it can trigger interrupt.
Analogue interface. The microcontroller can be easily interfaced to analogue signals using ADC, PWM output and HSO unit. Analogue inputs are accepted through 8-channel multiplexer and given to the 10-bit A to D converter. Some members of MCS-96 family have on-chip sample and hold. The exact conversion time of ADC depends on CPU’s operating frequency and the family part number. Conversion time of the ADCs vary between 42 to 22 microseconds.
Analogue conversion can be started by software trigger or by an HSO unit. The ADC command register is double buffered hence it is possible to write a command to start conversion by the HSO, while one is still in progress. The two byte result of the conversion also p contains the input channel number.
Digital to analogue conversion can be done with pulse width modulation (PWM) output. The PWM unit has 8- bit counter which is incremented every state time. PWM output goes high when the counter is zero; it goes low when PWM register equals the counter value. The PWM and HSO units provide digital signals which can be filtered for use as analogue outputs.
Interrupt control. There are 21 different sources of interrupt, but there are only eight interrupt vectors. Interrupt pending register indicates interrupt waiting, whereas interrupt mask register is used to enable or disable the interrupts. The priority encoder looks at all the ‘pending and enabled’ interrupts and selects the one with highest priority.
Block diagram overview. It can be easily noticed from above that the blocks once programmed are tailored to work independently. Moreover, the blocks are coupled together, so that they can ‘trigger’ each other without the CPU’s knowledge. Important features are bufferred. This reduces critical areas and data losses while handling multiple tasks. This microcontroller family stands out with respect to its wait state generation logic. The maximum allowable wait states can be programmed. After the maximum specified delay, the microcontroller does not wait longer even if ‘Ready’ line is not released. Thus, the CPU does not get ‘ tied down’ to any faulty or slower peripheral device.
Chip configuration byte is an important programmable resource of this family. Apart from the on chip EPROM security, it also controls the bus width and determines the maxi- mum wait states allowed.
Instruction set
The MSC-96 instruction set con- tains a full set of arithmetic and logical operations for 8-bit and 16-bit data. It also supports 16 by 16 multiply, 32 by 16 divides and 32-bit compare.
The powerful instruction set has six addressing modes, with some instrutions having two to three operands. In indexed address modes, by adding 8 or 16-bit displacement, effective address of an operand can be formed. This allows fast access to arrays stored any- where in the memory. Stack-relative addressing, which is easy to program, is often used for recursive—subroutine parameter passing and dynamically allocated variables.
The set includes 16 varieties of conditional jump, allowing signed and unsigned comparisons. All of 2028 bits in register space can be tested by jump on bit set/bit clear instructions. A decrement and jump on not zero instruction provides efficient loop control. Most of the instructions ar executed in about 0.8 microseconds. The longest instruction takes eight microseconds because jumps and calls are PC-relative and the code is easy to relocate. The instruction set is complemented by a variety of I/O subsystems for handling virtually any computer peripheral or industrial application.
MCS-96 family overview
At every stage of development of this family, better versions of the basic microcontroller were released. Now we have many members to this family varying in additional instructions, re- sources, performance levels and pack- ages. The situation becomes slightly complex as these parameters are inter- dependent. Therefore, while selecting the device one needs to be extremely careful. Once the proper choice is made, a very cost effective product can be designed.
The initial member like 8097-90 does not have sample and hold. But the next enhanced version, 8097BH incorporates the feature. Again, both the above mentioned family members have shortcomings like more power consumption even in power down mode, up/down counting is not possible, sharing of interrupt vectors etc. Many of these problems have been overcome in versions like 80Cl96, and the process is being continued with the recent announcement of 80C198.
Applications of MCS-96 family
Many elegant products can be designed using MCS-96 family microcontroller. In fact, the family members with on chip EPROM would be ideal s for many applications, as only external signal conditioning circuitry will be 1 . needed. With prudent features like · analogue I/O, high speed TTL I/O and watchdog timer lot of barriers can be crossed. Intel Corp has published many application notes to demonstrate the capabilities of this family.
Industrial applications.
The MCS- 96 family members can comfortably meet demands of industrial applications especially, in the fields of motion control, single loop controller, intelligent transducer and three phase control. The family members can be useful in increasing performance of existing designs based on MCS-Sl i family.
For example, in motion control area , the optical encoder interface can be interfaced to HSI lines. The motor p can be controlled with PWM output or HSO. For analogue feedback purposes, analogue inputs of the device For example, in motion control area , the optical encoder interface can be interfaced to HSI lines. The motor can be controlled with PWM output or HSO. For analogue feedback purposes, analogue inputs of the device can be used.
Instrumentation and control.
The analogue signal capturing feature along with a number of crunching capabilities of the family would prove to be of great importance in this field. In the laboratory, one can capture liquid or gas chromatographic signals and even analyse them. On the other hand, the microcontroller can also play an important role in designing compact guidance and control systems for missiles and torpedoes.
Medium range front end data acquisition could be yet another area well suited for this family. The front end system can communicate with the main l computer with the help of an on-chip serial port. Though many essential resources are integrated on the chip, additional devices can be easily hooked on to MCS -96 family microcontrollers. Designs of intelligent instruments with GPIB interface can be made efficient using these microcontrollers.
Data processing
This 16-bit microcontroller family . has sufficient processing power to perform tasks previously performed by special computers. It can be used for digital signal processing, matrix manipulation and other intense processing oriented tasks.
This versatile microcontroller family is rapidly becoming popular. Latest modems, colour photo copiers, automotive ignition and transmission controls are using suitable members of the family. Thus, the family appears to have a promising future.
In India, microcontrollers are comparitively not very popular for various reasons. Many systems are still being designed using MCS-85 family devices. This is mainly due to the lack of development support available indigenously. But the situation seems to be changing. Couple of leading manufacturers in India are believed to be actively involved in building development support for the MCS-96 family.
Wednesday, August 27, 2014
Ni Cd and Ni MH Adjustable constant current Wiring diagram Schematic
Battery Charger Ni-Cd and Ni-MH Adjustable constant current Circuit Diagram

The LM317 regulator is used, it should have a sink.
Components
R1 100Ω resistor
VR1 trimpot or potentiometer 500Ω
Capacitor C1 0.1μF
C2 Capacitor 0.01μF
Diode D1 1N4001
Q1 Transistor BC140
IC1 Voltage Regulator LM317
Monday, August 25, 2014
Versatile and simple power supply
| Versatile and simple power supply |
R1 = 1K
C1 = 0.22uF 275V
C2 = 4700uF 50V
C3 = 100n
C4 = 220uF
C5 = 1000uF
Q1 = TIP30
T1 = Step-down Transformer 220V to 12-35V
Sunday, August 24, 2014
Build a Positive And Negative Voltage Switching Supply

Saturday, August 23, 2014
iPod and the Auto Sound System
Mini and simple power amplifier circuits
Friday, August 15, 2014
High and Low Mains Voltage Cut Off Wiring diagram Schematic

555 Timer Frequency and Duty Cycle Calculator
Negative Time Interval (T2) = 0.693 * R2 * C
Frequency = 1.44 / ( (R1+R2+R2) * C)
The schematics below show the two basic diagram for the 555 timer.

The 555 schema below is a flashing bicycle light powered with three C or D cells (4.5 volts). The two flashlight lamps will alternately flash at a approximate 1.5 second cycle rate. Using a 4.7K resistor for R1 and a 100K resistor for R2 and a 4.7uF capacitor, the time intervals for the two lamps are 341 milliseconds (T1, upper lamp) and 326 milliseconds (T2 lower lamp). The lamps are driven by transistors to provide additional current beyond the 200 mA limit of the 555 timer. A 2N2905 PNP and a 2N3053 NPN could be used for lamps requiring 500 mA or less. For additional current, a TIP29 NPN and TIP30 PNP could be used up to 1 amp. A PR3 is a 4.5 volt, 500 mA flashlight bulb. Two diodes are placed in series with the PNP transistor base so that the lower lamp turns off when the 555 output goes high during the T1 time interval. The high output level of the 555 timer is 1.7 volts less than the supply voltage. Adding the two diodes increases the forward voltage required for the PNP transistor to about 2.1 volts so that the 1.7 volt difference from supply to the output is not enough to turn on the transistor. You can also use an LED in place of the two diodes as shown in the lower schematic.
Wednesday, August 13, 2014
Audio amplifier with IC AN7522 AN7523 and TDA2616

• AN7522
• TDA2616
![]() |
| Schematic AN7522 |
![]() |
| AN7523 amplifier schematic |
![]() |
| Schematic TDA2616 |


