Showing posts with label switch. Show all posts
Showing posts with label switch. Show all posts

Saturday, December 21, 2013

Voltage Inverter Using Switch Mode Regulator

This circuit uses a step-up switch-mode regulator, which is usually used to produce a positive supply, to generate a regulated negative output voltage. The device used here is the MIC4680 from Micrel (www.micrel.com), but the idea would of course work with similar regulators from other manufacturers. Because of coil L1, which performs the voltage conversion by the intermediate storage of energy in the form of a magnetic field, the output is effectively isolated from the input. We can therefore connect the right-hand side of L1 to ground rather than to the positive output without causing a large current to flow. Then we connect the ground pin of the regulator IC and all the components connected to it as the negative voltage output, isolated from ground.

Voltage Inverter Using Switch-Mode Regulator

The components on the output side of the regulator are connected as usual: flywheel diode D1, coil L1 and the voltage divider formed by R1 and R2. These last two components set the output voltage, according to a formula given in the data sheet. Example component values for the MIC4680 used here are given in the table. The input voltage should lie within the permitted range for the regulator used, and must in any case be at least as great in magnitude as the desired output voltage (here +5 V or +12 V), so that the step-down regulation technique can wor.

Voltage Inverter Using Switch-Mode Regulator Table
It is important to take care when building this circuit to mount the regulator using an insulator, since generally the GND pin of the device is connected to the heatsink tab. Also, the ON/OFF control input cannot be driven using a normal logic signal, since the regulator’s ground reference is the output voltage rather than ground itself. If the ON/OFF function is required, a level shifter or optocoupler must be used.

Source: http://www.ecircuitslab.com/2011/06/voltage-inverter-using-switch-mode.html 
Read More..

Tuesday, October 8, 2013

Clap Switch

Here’s a clap switch free from false triggering. To turn on/off any appliance, you just have to clap twice. The circuit changes its output state only when you clap twice within the set time period. Here, you’ve to clap within 3 seconds. The clap sound sensed by condenser microphone is amplified by transistor T1. The amplified signal provides negative pulse to pin 2 of IC1 and IC2, triggering both the ICs. IC1, commonly used as a timer, is wired here as a monostable multivibrator. Trigging of IC1 causes pin 3 to go high and it remains high for a certain time period depending on the selected values of R7 and C3. This ‘on’ time (T) of IC1 can be calculated using the following relationship: T=1.1R7.C3 seconds where R7 is in ohms and C3 in microfarads. On first clap, output pin 3 of IC1 goes high and remains in this standby position for the preset time.

Clap Switch Circuit DiagramAlso, LED1 glows for this period. The output of IC1 provides supply voltage to IC2 at its pins 8 and 4. Now IC2 is ready to receive the triggering signal. Resistor R10 and capacitor C7 connected to pin 4 of IC2 prevent false triggering when IC1 provides the supply voltage to IC2 at first clap. On second clap, a negative pulse triggers IC2 and its output pin 3 goes high for a time period depending on R9 and C5. This provides a positive pulse at clock pin 14 of decade counter IC 4017 (IC3). Decade counter IC3 is wired here as a bistable. Each pulse applied at clock pin 14 changes the output state at pin 2 (Q1) of IC3 because Q2 is connected to reset pin 15. The high output at pin 2 drives transistor T2 and also energizes relay RL1. LED2 indicates activation of relay RL1 and on/off status of the appliance. A free-wheeling diode (D1) prevents damage of T2 when relay de-energizes.
Read More..

Saturday, September 28, 2013

Computer Off Switch Circuit

How often does it happen that you close down Windows and then forget to turn off the computer? This circuit does that automatically. After Windows is shut down there is a ‘click’ a second later and the PC is disconnected from the mains. Surprisingly enough, this switch fits in some older computer cases. If the circuit doesn’t fit then it will have to be housed in a separate enclosure. That is why a supply voltage of 5 V was selected. This voltage can be obtained from a USB port when the circuit has to be on the outside of the PC case. It is best to solder the mains wires straight onto the switch and to insulate them with heat shrink sleeving. C8 is charged via D1.
This is how the power supply voltage for IC1 is obtained. A square wave oscillator is built around IC1a, R1 and C9, which drives inverters IC1c to f. The frequency is about 50 kHz. The four inverters in parallel power the voltage multiplier, which has a multiplication of 3, and is built from C1 to C3 and D2 to D5. This is used to charge C5 to C7 to a voltage of about 9 V.The generated voltage is clearly lower than the theoretical 3x4.8=14.4 V, because some voltage is lost across the PN-junctions of the diodes. C5 to C7 form the buffer that powers the coil of the switch when switching off. The capacitors charge up in about two seconds after switching on. The circuit is now ready for use. When Windows is closed down, the 5-V power supply voltage disappears. C4 is discharged via R2 and this results in a ‘0’ at the input of inverter IC1b. The output then becomes a ‘1’, which causes T1 to turn on.
Circuit diagram:
computer-off-switch-circuit-diagramw
A voltage is now applied to the coil in the mains switch and the power supply of the PC is turned off. T1 is a type BSS295 because the resistance of the coil is only 24R. When the PC is switched on, the circuit draws a peak current of about 200 mA, after which the current consumption drops to about 300 µA. The current when switching on could be higher because this is strongly dependent on the characteristics of the 5-V power supply and the supply rails in the PC. There isn’t much to say about the construction of the circuit itself. The only things to take care with are the mains wires to the switch. The mains voltage may not appear at the connections to the coil. That is why there has to be a distance of at least 6 mm between the conductors that are connected to the mains and the conductors that are connected to the low-voltage part of the circuit.
Author: Uwe Kardel - Copyright: Elektor Electronics Magazine
Read More..

Temperature Sensitive Switch For Solar Collector

This circuit can be used to turn the pump on and off when a solar collector is used to heat a swimming pool, for example. This way the water in the collector has a chance to warm up significantly before it is pumped to the swimming pool. A bonus is that the pump doesn’t need to be on continuously. The basis of operation is as follows. When the temperature of the water in the solar collector is at least 10 °C higher than that of the swimming pool, the pump starts up. The warm water will then be pumped to the swimming pool and the temperature difference will drop rapidly. This is because fresh, cool water from the swimming pool enters the collector. Once the difference is less than 3 °C the pump is turned off again. R10/R1 and R9/R2 each make up a potential divider. The output voltage will be about half the supply voltage at a temperature around 25 °C. C7 and C8 suppress any possible interference. The NTCs (R9 and R10) are usually connected via several meters of cable, which can easily pick up interference. Both potential dividers are followed by a buffer stage (IC1a/IC1b). IC1c and R3, R4, R5 and R6 make up a differential amplifier (with unit gain), which measures the temperature difference (i.e. voltage difference).

When both temperatures are equal the output is 0 V. When the temperature of the solar collector rises, the differential amplifier outputs a positive voltage. This signal is used to trigger a comparator, which is built round an LM393 (IC2a). R7 and P1 are used to set the reference voltage at which the comparator changes state. R8 and P2 provide an adjustable hysteresis. R11 has been added to the output of IC2a because the opamp has an open collector output. A power switch for the pump is created by R12, T1 and Re1. D1 protects T1 against voltage spikes from the relay coil when it is turned off. A visual indication of the state of the controller is provided by IC4 (UAA170), a LED spot display driver with 16 LEDs. The reference voltage for the comparator is buffered by IC1d and fed to input VRMAX of the UAA170. R20/D21 and R23/D22 limit the input voltages of IC4 to 5.1 V, since the maximum permissible input voltage to the UAA170 is 6 V. When there is no temperature difference, LED D20 turns on.

Circuit diagram:

temperature-sensitive-switch for-solar-collector-circuit-diagramw

Temperature Sensitive Switch Circuit Diagram For Solar Collector

As the temperature difference increases the next LED turns on. The full scale of the LED bar is equal to the reference voltage of the comparator. This means that when the last LED (D5) of the UAA170 turns on, the comparator switches state. This is also indicated by D2. The power supply has been kept fairly simple and is built around a LM7812 regulator. The circuit is protected against a reverse polarity at the input by D3. You have to make sure that the input to the regulator is at least 15 V, otherwise it won’t function properly. There are a few points you should note regarding the mounting of the NTCs. NTC R9 should be placed near the output of the solar collector. You should choose a point that always contains water, even when some of the water flows back a little. NTC R10 should be mounted inside the filter compartment (where it exists), which continually pumps the swimming pool water.

This will give a good indication of the temperature of the water. The way the circuit has to be set up depends how it has been installed and is very much an experimental process. To start with, set hysteresis potentiometer (P2) halfway. Then set the reference voltage to about 1.5-2 V with P1. On a sunny day you can measure the voltage difference to get an idea as to which reference voltage needs to be adjusted. The hysteresis setting determines how long the pump stays on for, which is until the minimum temperature difference has been reached.

Author: Tom Henskens - Copyright: Elektor Electronics

Read More..

Tuesday, April 30, 2013

Touch Switch II

This circuit uses a 555 timer as the bases of the touch switch. You can learn more about 555 timers in the Learning section on my site. When the plate is touched the 555 timer is triggered and the output on pin 3 goes high turning on the LED and the buzzer for a certain period of time. The time that the LED and the buzzer is on is based on the values of the capacitor and resistor connected to pin 6 & 7. The 10M resistor on pin 2 causes the the circuit to be very sensitive to the touch.

Read More..

Saturday, April 13, 2013

Long Delay Stop Switch

Presettable times for train stops in stations are indispensable if you want to operate your model railway more or less realistically according to a timetable. This circuit shows how a 555 timer can be used with a relatively small timing capacitor to generate very long delay times as necessary by using a little trick (scarcely known among model railway electronic technicians): pulsed charging of the timing net-work. Such long delays can be used in hidden yards with through tracks, for instance.  As the timer is designed for half-wave operation, it requires only a single lead to the transformer and one to the switching track or reed contact when used with a Märklin AC system (H0 or H1). The other lead can be connected to any desired grounding point for the common ground of the track and lighting circuits.
Circuit diagram :
Long-Delay Stop Switch-Circuit Diagram
Long-Delay Stop Switch Circuit Diagram

As seen from the outside, the timer acts as a monostable flip-flop. The output (pin 3) is low in the quiescent state. If a negative signal is applied to the trigger input (pin 2), the output goes high and C4 starts charging via R3 and R4. When the voltage on C4 reaches 2/3 of the supply voltage, it discharges via an internal transistor connected to pin 7 to 1/3 of the supply voltage and the output (pin 3) goes low. The two threshold values (1/3 and 2/3) are directly proportional to the supply voltage. The duration of the output signal is independent of the supply voltage: t= 1.1(R4 + R5) × C4 

if the potentiometer is connected directly to the supply line (A and B joined). The maximum delay time that can be generated using the component values shown in the schematic diagram is 4.8 minutes. How-ever, it can be increased by a factor of approximately 10 if the timing network is charged using positive half-waves of the AC supply voltage (reduced to the 10–16-V level) instead of a constant DC voltage. 

The positive half-waves of the AC voltage reach the timing network via D2, the transistor, and D3. Diode D3 prevents C4 from being discharged between the pulses. The total resistance of R4 and R5 should not be too high (no more than 10 MΩ if possible), since electrolytic capacitors (such as are needed for C4) have significant leakage currents. Incidentally, the leakage current of aluminium electrolytic capacitors can be consider-ably reduced by using a supply voltage well below the rated voltage. Capacitor C6 is intended to suppress noise. It forms a filter network in combination with an internal voltage-divider resistor.
If a vehicle happens to remain standing over the reed switch so the magnet holds the contacts constantly closed, the timer will automatically be retriggered when the preset delay times out. In this case the relay armature will not release and the locomotive will come to the ‘end of the line’ in violation of the timetable. This problem can be reliably eliminated using R6, R7 and C5. This trigger circuit ensures that only one trigger pulse is generated, regardless of how long the reed switch remains closed. RC network R8/C7 on the reset pin ensures that the timer behaves properly on switch-on (which is far from being something to be taken for granted with many versions of the 555 or 556 dual timer).
Reed switches have several special characteristics that must be kept in mind when fitting them. The contact blades, which are made from a ferromagnetic material, assume opposite magnetic polarities under the influence of a magnetic field and attract each other. Here the position and orientation of the magnet, the distance between the magnet and the reed switch, and the direction of motion of the magnet relative to the switch are important factors. The fragility of the glass hous-ing and the thermal stress from soldering (stay at least 3 mm away from the glass housing) require a heat sink to be used between the soldering point and the glass/metal seal. A suitable tweezers or flat-jawed pliers can be used for this pur-pose. If you need to bend the leads, use flat-jawed pliers to protect the glass/metal seal against mechanical stresses. 

Matching magnets in various sizes are available from toy merchants and electronics mail-order firms. They should preferably be fitted underneath the loco-motive or carriage. However, the magnet can also be fitted on the side of a vehicle with a plastic body. In this case the reed switch can be hidden in a mast, bridge column or similar structure or placed in a tunnel, since the distance must be kept to less than around 10 mm, even with a strong magnet. If fitting the circuit still presents problems (especially with Märklin Z-gauge Mini-Club), one remedy is to generate the trigger using a unipolar digital Hall switch, such as the Siemens TLE4905L or Allegro UGN3120. To avoid coupled-in interference, the stop timer should be fitted relatively close to the Hall sensor (use screened cable if necessary). Pay attention to the polarity of the magnet when fitting it to the bottom of the vehicle. With both types of sensors, the South pole must point toward the front face of the Hall IC (the face with the type marking). The North pole is sometimes marked by a dab of paint. Generally speaking, the polarity must be determined experimentally. 

Fitting the circuit is not a problem with Z-gauge and 1-gauge tracks, since the distance between the iron parts (rails) and the Hall switch is sufficiently large. In an HO system, some modifications must be made to the track bed of the Märklin metal track. Cut a suitably sized ‘window’ between one wheel rail and the centre rail in order to prevent secondary magnetic circuits from interfering with the operation of the sensor. Keep the distance between the magnet and the case of the Hall switch between 5 and 10 mm, depending on the strength of the magnet, to ensure reliable actuation.




Source by : Streampowers
Read More..