Showing posts with label driver. Show all posts
Showing posts with label driver. Show all posts

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 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
PIC Controlled Relay DriverThe 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.

Click here to download the schematics, PCB layouts and the code files
Read more →

DoZ Preamp as a Driver Power Follower

,


To get the voltage gain needed for a normal installation, the DoZ preamp can be used. Everyone who has built this circuit has commented on the exceptional sound quality, and it is ideally suited to this application.

Figure shows the modified version of the preamp, the output of which would be connected directly to R1 in the circuit. The quiescent output voltage is now set by VR1 in the preamp, and the voltage at the source of T1 should be set to 19.8V as shown in Figure 1 by means of VR1 - the voltage at the gate (preamp output) should be 4V higher, i.e. 23.8V. The DoZ preamp board is stereo, and can drive a pair of the power followers with ease. Q2 and Q3 should be fitted with small "flag" heat sinks to allow them to dissipate the increased power caused by the higher operating voltage.



As shown, the gain is 3.2, so it will require nearly 4V RMS input for full power. To change the gain, I suggest that R4 be changed to 3k3 to obtain a gain of 7.7 (17.7dB), which will give an input sensitivity of about 1.5V for maximum output. C3 will also need to be changed, and a value of 100uF will be more than adequate. I do not recommend that R4 be reduced to less than 2k7, which will give a gain of 9.15 (19.2dB). To maintain good low frequency response, C3 will need to be about 100uF, although even with 25uF, the low frequency response is maintained to 2Hz. Ideally, the input network should define the low frequency limit, so the higher value is recommended if R4 is reduced.

Unless a preamp is used in front of the amp, a pot will be needed at the input for gain control. 10k is fine here, and will not cause excessive loading on the source.

Read more →