Showing posts with label Relay. Show all posts
Showing posts with label Relay. Show all posts

Saturday, November 8, 2014

PIC Controlled Relay Driver

This circuit is a relay driver that is based on a PIC16F84A microcontroller. The board includes four relays so this lets us to control four distinct electrical devices. The controlled device may be a heater, a lamp, a computer or a motor. To use this board in the industrial area, the supply part is designed more attentively. To minimize the effects of the ac line noises, a 1:1 line filter transformer is used.

The transformer is a 220V to 12V, 50Hz and 3.6VA PCB type transformer. The model seen in the photo is HRDiemen E3814056. Since it is encapsulated, the transformer is isolated from the external effects. A 250V 400mA glass fuse is used to protect the circuit from damage due to excessive current. A high power device which is connected to the same line may form unwanted high amplitude signals while turning on and off. To bypass this signal effects, a variable resistor (varistor) which has a 20mm diameter is paralelly connected to the input.
 


Another protective component on the AC line is the line filter. It minimizes the noise of the line too. The connection type determines the common or differential mode filtering. The last components in the filtering part are the unpolarized 100nF 630V capacitors. When the frequency increases, the capacitive reactance (Xc) of the capacitor decreases so it has a important role in reducing the high frequency noise effects. To increase the performance, one is connected to the input and the other one is connected to the output of the filtering part.


After the filtering part, a 1A bridge diode is connected to make a full wave rectification. A 2200 uF capacitor then stabilizes the rectified signal. The PIC controller schematic is given in the project file. It contains PIC16F84A microcontroller, NPN transistors, and SPDT type relays. When a relay is energised, it draws about 40mA. As it is seen on the schematic, the relays are connected to the RB0-RB3 pins of the PIC via BC141 transistors. When the transistor gets cut off, a reverse EMF may occur and the transistor may be defected. To overcome this unwanted situation, 1N4007 diodes are connected between the supply and the transistor collectors. There are a few number of resistors in the circuit. They are all radially mounted. Example C and HEX code files are included in the project file. It energizes the next relay after every five seconds.

The components are listed below.
1 x PIC16F84A Microcontroller
1 x 220V/12V 3.6VA (or 3.2VA) PCB Type Transformer (EI 38/13.6)
1 x Line Filter (2x10mH 1:1 Transformer)
4 x 12V Relay (SPDT Type)
4 x BC141 NPN Transistor
5 x 2 Terminal PCB Terminal Block
4 x 1N4007 Diode
1 x 250V Varistor (20mm Diameter)
1 x PCB Fuse Holder
1 x 400mA Fuse
2 x 100nF/630V Unpolarized Capacitor
1 x 220uF/25V Electrolytic Capacitor
1 x 47uF/16V Electrolytic Capacitor
1 x 10uF/16V Electrolytic Capacitor
2 x 330nF/63V Unpolarized Capacitor
1 x 100nF/63V Unpolarized Capacitor
1 x 4MHz Crystal Oscillator
2 x 22pF Capacitor
1 x 18 Pin 2 Way IC Socket
4 x 820 Ohm 1/4W Resistor
1 x 1K 1/4W Resistor
1 x 4.7K 1/4W Resistor
1 x 7805 Voltage Regulator (TO220)
1 x 7812 Voltage Regulator (TO220)
1 x 1A Bridge Diode
Read More..

Saturday, October 25, 2014

Solar Relay circuit diagram and explanation

With extended periods of bright sunshine and warm weather, even relatively large storage batteries in solar-power systems can become rather warm. Consequently, a circuit is usually connected in parallel with the storage battery to either connect a high-power shunt (in order to dissipate the excess solar power in the form of heat) or switch on a ventilation fan via a power FET, whenever the voltage rises above approximately 14.4 V. However, the latter option tends to oscillate, since switching on a powerful 12-V fan motor causes the voltage to drop below 14.4 V, causing the fan to be switched off.

In the absence of an external load, the battery voltage recovers quickly, the terminal voltage rises above 14.4 V again and the switching process starts once again, despite the built-in hysteresis. A solution to this problem is provided by the circuit shown here, which switches on the fan in response to the sweltering heat produced by the solar irradiation instead of an excessively high voltage at the battery terminals. Based on experience, the risk of battery overheating is only present in the summer between 2 and 6 pm. The intensity of the sunlight falling within the viewing angle of a suitably configured ‘sun probe’ is especially high precisely during this interval.

This is the operating principle of the solar relay. The trick to this apparently rather simple circuit consists of using a suitable combination of components. Instead of a power FET, it employs a special 12-V relay that can handle a large load in spite of its small size. This relay must have a coil resistance of at least 600 Ω, rather than the usual value of 100-200 Ω. This requirement can be met by several Schrack Components relays (available from, among others, Conrad Electronics). Here we have used the least expensive model, a type RYII 8-A printed circuit board relay. The light probe is connected in series with the relay. It consists of two BPW40 phototransistors wired in parallel.

Solar
Solar Relay Circuit Diagram

The type number refers to the 40-degree acceptance angle for incident light. In bright sunlight, the combined current generated by the two phototransistors is sufficient to cause the relay to engage, in this case without twitching. Every relay has a large hysteresis, so the fan connected via the a/b contacts will run for many minutes, or even until the probe no longer receives sufficient light. The NTC thermistor connected in series performs two functions. First, it compensates for changes in the resistance of the copper wire in the coil, which increases by approximately 4 percent for every 10 ºC increase in temperature, and second, it causes the relay to drop out earlier than it otherwise would (the relay only drops out at a coil voltage of 4 V).

Depending on the intended use, the 220-Ω resistance of the thermistor can be modified by connecting a 100-Ω resistor in series or a 470-Ω resistor in parallel. If the phototransistors are fastened with the axes of their incident-angle cones in parallel, the 40-degree incident angle corresponds to 2 pm with suitable solar orientation. If they are bent at a slight angle to each other, their incident angles overlap to cover a wider angle, such as 70 degrees. With the tested prototype circuit, the axes were oriented nearly parallel, and this fully met our demands. The automatic switch-off occurs quite abruptly, just like the switch-on, with no contact jitter.

This behaviour is also promoted by the NTC thermistor, since its temperature coefficient is opposite to that of the ‘PTC’ relay coil and approximately five times as large. This yields exactly the desired effect for energising and de-energising the relay: a large relay current for engagement and a small relay current for disengagement. Building the circuit is actually straightforward, but you must pay attention to one thing. The phototransistors resemble colourless LEDs, so there is a tendency to think that their ‘pinning’ is the same as that of LEDs, with the long lead being positive and the short lead negative. However, with the BPW40 the situation is exactly the opposite; the short lead is the collector lead. Naturally, the back-emf diode for the relay must also be connected with the right polarity. The residual current on cloudy days and at night is negligibly small.
Read More..

Thursday, October 2, 2014

Simple Solid State Relay Circuit SSR

A well-known shortcoming of virtually all electronic components is their sensitivity to temperature changes.
Circuit functioning of this SSR circuit is as follows:

lt is true that triacs are not A too bad in this respect, but they do not like low temperatures: they just stop working! This is caused by the fact that triacs require a higher gate current at low temperature. Triacs are often triggered by opto-couplers which are not capable of supplying these higher currents. The circuit described, in contrast to normal .triac triggers, contains an amplifier which ensures sufficient gate current under all temperature conditions; The amplifier is formed by transistor  T1, which raises the signal from the opto-coupler to more than adequate level. The use of capacitor C2 as a dropping reactance ensures that the dissipation in the drive circuit is virtually nil; it also prevents the circuit presenting a dc load to the mains supply. The switch on current surge is limited to a safe value by resistor R3. As the drive circuit is supplied directly from the mains, the mains voltage must, of course, be reduced to an acceptable level. This voltage is therefore rectified by D1  and smoothed by C1. Zener diode D2 stabilizes the supply to the circuit to 15 V. As soon as transistor T1 conducts, capacitor C1 discharges via T1 and the triac gate, provides a gate current of about 40 mA. The discharge time, and consequently the trigger pulse, is not greater than 1 millisecond. RC network R4/C3 protects the triac against high voltage peaks.
Siemens application.  

The complete SSR or solid state relay circuit is shown below.


Read More..