Thursday, September 18, 2014

Comparator Based Crystal Oscillator

Although a simple crystal oscillator may be built from one comparator of an LT1720/LT1721, this will suffer from a number of inherent shortcomings and design problems. Although the LT1720/LT1721 will give the correct logic output when one input is outside the common mode range, additional delays may occur when it is so operated, opening the possibility of spurious operating modes. Therefore, the DC bias voltages at the inputs have to be set near the center of the LT1720/LT1721’s common mode range and a resistor is required to attenuate the feedback to the non-inverting input. Unfortunately, although the output duty cycle for this circuit is roughly 50%, it is affected by resistor tolerances and, to a lesser extent, by comparator offsets and timings.
 
Comparator Based Crystal Oscillator
If a 50% duty cycle is required, the circuit shown here creates a pair of complementary outputs with a forced 50% duty cycle. Crystals are narrow-band elements, so the feedback to the non-inverting input is a filtered analogue version of the square-wave output. The crystal’s path provides resonant positive feedback and stable oscillation occurs. Changing the non-inverting reference level can vary the duty cycle. The 2k-680Ω resistor pair sets a bias point at the comparator + (Comparator IC1a) and – (Comparator IC1b) input. At the complementary input of each comparator, the 2k-1.8k-0.1µF path sets up an appropriate DC average level based on the output.
 
IC1b creates a complementary output to IC1a by comparing the same two nodes with the opposite input. IC2 compares band-limited versions of the outputs and biases IC1a’s negative input. IC1a’s only degree of freedom to respond is variation of pulse width; hence the outputs are forced to 50% duty cycle. The circuit operates from 2.7V to 6V. When ‘scoping the oscillator output signal, a slight dependence on comparator loading, will be noted, so equal and resistive loading should be used in critical applications. The circuit works well because of the two matched delays and rail-to-rail outputs of the LT1720.
 
 
www.ecircuitslab.com
Read More..

Pump Controller For Solar Hot Water System

This circuit optimises the operation of a solar hot water system. When the water in the solar collector is hotter than the storage tank, the pump runs. The circuit comprises two LM335Z temperature sensors, a comparator and Mosfet. Sensor 1 connects to the solar collector panel while Sensor 2 connects to the hot water panel. Each sensor includes a trimpot to allow adjustment of the output level. In practice, VR1 and VR2 are adjusted so that both Sensor 1 and Sensor 2 have the same output voltage when they are at the same temperature. The Sensor outputs are monitored using comparator IC1.

When Sensor 1 produces a higher voltage than Sensor 2, which means that sensor 1 is at a higher temperature, pin 1 of IC1 goes high and drives the gate of Mosfet Q1. This in turn drives the pump motor. IC1 includes hysteresis so that the output does not oscillate when both sensors are producing a similar voltage. Hysteresis comprises the 1MO feedback resistor between output pin 1 and non-inverting input pin 3 and the input 1kO resistor. This provides a nominal 12mV hysteresis so that voltage at Sensor 1 or Sensor 2 must differ by 12mV for changes in the comparator output to occur.

Circuit diagram:
pump-controller-for-solar-hot water system
Pump Controller For Solar Hot Water System

Since the outputs of Sensor 1 and Sensor 2 change by about 10mV/°C, we could say that there is a degree of hysteresis in the comparator. Note that IC1 is a dual comparator with the second unit unused. Its inputs are tied to ground and pin 2 of IC1 respectively. This sets the pin 7 output high. Since the output is an open collector, it will be at a high impedance. Mosfet Q1 is rated at 60A and 60V and is suitable for driving inductive loads due to its avalanche suppression capability. This clamps any inductively induced voltages exceeding the voltage rating of the Mosfet.

The sensors are adjusted initially with both measuring the same temperature. This can be done at room temperature; adjust the trimpots so that the voltage between ground and the positive terminal reads the same for both sensors. If you wish, the sensors can be set to 10mV/°C change with the output referred to the Kelvin scale which is 273K at 0°C. So at 25°C, the sensor output should be set to (273 + 25 = 298) x 10mV or 2.98V.

Note:
The sensors will produce incorrect outputs if their leads are exposed to moisture and they should be protected with some neutral cure silicone sealant. The sensors can be mounted by clamping them directly to the outside surface of the solar collector and on an uninsulated section of the storage tank. The thermostat housing is usually a good position on the storage tank.


 http://www.ecircuitslab.com
Read More..

Inductorless 3 to 5 Volts Converter

By configuring a comparator and a transistor to control the oscillator in a charge pump circuit, you enable the pump to generate a regulated output of in principle any desired value. Charge pump ICs can either invert or double an input voltage (for example, 3 V to –3 V or 3 V to 6 V). The charge pump itself does not regulate the output voltage and one running off 3 V is not normally capable of generating intermediate output voltage levels like 5 V. However, by adding a comparator and a reference device, you can create arbitrary output levels like 5 V and regulate them as well.
Circuit diagram  :
Inductorless 3-to-5 Volts Converter
Inductorless 3-to-5 Volts Converter Circuit Diagram

Charge pump IC1 (a MAX660) has an internal oscillator whose 45 kHz operation transfers charge from C1 to C2, causing the regulated output to rise.

When the feedback voltage (pin 3 of IC2) exceeds 1.18 V, the output of comparator IC2 (a MAX921) goes high, turning off the oscillator via T1. The comparator hysteresis (easily added on IC2) is zero here simply because no hysteresis is required in the control loop. The oscillator when enabled generates two cycles, which is sufficient to drive VOUT slightly above the desired level. Next, the feedback turns the oscillator off again.
The resulting output ripple will depend mainly on the input voltage and the output load current. Output ripple may be reduced at the expense of circuit efficiency by adding a small resistor (say, 1 ?) in series with C1. You’ll find that ripple also depends on the value and ESR associated with C1 - smaller values of C1 transfer less charge to C2, producing smaller jumps in V OUT.
 
Author: D. Prabakaran
Read More..

Railway Points Sequencer

Dedicated model rail enthusiasts using sophisticated train and points controllers often have the problem that as their layouts get bigger and more complex, the transformer supplying power to the points does not have enough current to switch several points at the same time. The actuators in the points are designed for ac operation so it doesn’t help by rectifying the supply and adding reservoir capacitors, the coils can overheat and burn out if they get jammed during their travel (ac operation actually helps to overcome friction in the mechanism). The circuit shown here solves this problem by using a sequencer to ensure than only one points actuator can be active at any point in time. During operation the controller will switch all the points on one line at the same time as usual, but the other connection to each coil is connected to the sequencer unit. This circuit will only allow current to flow through one coil at a time. 

Circuit diagram :
Railway Points Sequencer Circuit Diagram Railway Points Sequencer Circuit Diagram

The sequencer circuit consists of a 555 timer configured as an astable multivibrator clocking a 4017 Johnson counter where the ten outputs are used to switch ten triacs in sequence, enough for ten sets of points. P1 alters the oscillator frequency of the 555 timer and can be adjusted so that each time interval of the sequencer is long enough to allow the points to switch. 

The switching time varies depending on the type of points but is typically between 1 s and 1.5 s. Any points that jam during switching give out a characteristic humming noise in time to the switching frequency so it makes them easier to find. The eleventh output of the 4017 can be connected to an LED (together with a series resistor). This will flash to give a visual indication of the sequencers operation. Power for the circuit is provided by 15 V ac from the points transformer. The B80C1500 bridge rectifier (80 Vpiv, 1.5 A) and regulator IC1 produce a stabilised 12 V for the circuit. Current consumption is only a few milliamps.


http://www.ecircuitslab.com/2011/07/railway-points-sequencer.html
Read More..

Very Low Power 32kHz Oscillator

The 32-kHz low-power clock oscillator offers numerous advantages over conventional oscillator circuits based on a CMOS inverter. Such inverter circuits present problems, for example, supply currents fluctuate widely over a 3V to 6V supply range, while current consumption below 250 µA is difficult to attain. Also, operation can be unreliable with wide variations in the supply voltage and the inverter’s input characteristics are subject to wide tolerances and differences among manufacturers. The circuit shown here solves the above problems. Drawing just 13 µA from a 3V supply, it consists of a one-transistor amplifier/oscillator (T1) and a low-power comparator/reference device (IC1).

Circuit diagram:
very-low-power-32khz-oscillator-circuit-diagram Very Low Power 32kHz Oscillator Circuit Diagram

The base of T1 is biased at 1.25 V using R5/R4 and the reference in IC1. T1 may be any small-signal transistor with a decent beta of 100 or so at 5 µA (defined here by R3, fixing the collector voltage at about 1 V below Vcc). The amplifier’s nominal gain is approximately 2 V/V. The quartz crystal combined with load capacitors C1 and C3 forms a feedback path around T1, whose 180 degrees of phase shift causes the oscillation. The bias voltage of 1.25 V for the comparator inside the MAX931 is defined by the reference via R2. The comparator’s input swing is thus accurately centred around the reference voltage.

Operating at 3 V and 32 kHz, IC1 draws just 7 µA. The comparator output can source and sink 40 mA and 5 mA respectively, which is ample for most low-power loads. However, the moderate rise/fall times of 500 ns and 100 ns respectively can cause standard, high-speed CMOS logic to draw higher than usual switching currents. The optional 74HC14 Schmitt trigger shown at the circuit output can handle the comparator’s rise/fall times with only a small penalty in supply current.

Author: http://www.ecircuitslab.com/2011/06/very-low-power-32khz-oscillator.html
Read More..

Snail Mail Detector

Since his letter-box is outdoors  and quite some way from the  house, the author was looking  for a simple means of knowing if  the postman had been without  having to go outside (contrary  to popular belief, the weather  isn’t always fine in the South of  France). Circuits for this kind of  ‘remote detection’ come up regularly, but always involve running cables between the letter- box and the detection circuit in  the house. Seeking to avoid running any extra cables, the author  had the idea of using the existing cables going to the doorbell,  conveniently located adjacent to  his letter-box.
 Snail Mail Detector1
The letter-box has two doors:  one  on  the  street  side  for  the  postman, and one on the gar-den side for collecting the post.  A  micro switch  is  fitted  to  the  street-side door, to light an indicator in the house showing that  the postman has been. A second  micro switch is fitted to the door  on the garden side, to turn off  the indicator once the post has  been collected. The only difficulty then remains to connect  these detectors to a remote circuit in the house that remembers  whether  the  postman’s  been or not.
Snail Mail Detector2
 
The idea was to use the alternating half-cycles of the AC signal  on the cable going to the door-bell  to  transmit  the  information, according to the following logic:
  • Both  half-cycles  present: no change in the status of the mail detector.
  • An interruption (even brief) of one half-cycle: indicator lights permanently.
  • An interruption (even brief) of the other half-cycle: the indicator goes out.
Note that the signal is tapped off  across the doorbell coil via R6  and the pair of diodes connected  in inverse-parallel (to limit the  signal,  par ticularly  when  the  bell is rung). The signal is then  filtered by R2/C1, before being  used by IC1, which is wired as a  comparator with hysteresis. The  trigger threshold is adjusted by  P1, using a pair of inverse parallel diodes as a voltage reference  (positive or negative according  to the output state):
 
For the detection to work, there  has to be continuity in the bell-push circuit this is generally  ensured by the little lamp illuminating the bell-push. Resistor R1  is added just in case the lamp is  blown or not present. To keep things simple, the circuit is powered directly from the  doorbell transformer itself (230 V  / 8 V). The author managed to fit  the little circuit within the door-bell unit, with the LED poking  through a hole in the casing so  it is readily visible in the hall of  his house. 

Author : Philippe Temporelli (France) – Copyright : elektor electronics
Read More..

Thursday, February 27, 2014

Flashing LED Battery status Indicator

Signals when an on-circuit battery is exhausted 5V to 12V operating voltage
A Battery-status Indicator circuit can be useful, mainly to monitor portable Test-gear instruments and similar devices. LED D1 flashes to attire the users attention, signaling that the circuit is running, so it will not be left on by mistake. The circuit generates about two LED flashes per second, but the mean current drawing will be about 200µA. Transistors Q1 and Q2 are wired as an uncommon complementary astable multivibrator: both are off 99% of the time, saturating only when the LED illuminates, thus contributing to keep very low current consumption. 

Circuit diagram :
Flashing-LED Battery
Flashing-LED Battery-status Indicator Circuit Diagram

The circuit will work with battery supply voltages in the 5 - 12V range and the LED flashing can be stopped at the desired battery voltage (comprised in the 4.8 - 9V value) by adjusting Trimmer R4. This range can be modified by changing R3 and/or R4 value slightly.

When the battery voltage approaches the exhausting value, the LED flashing frequency will fall suddenly to alert the user. Obviously, when the battery voltage has fallen below this value, the LED will remain permanently off. To keep stable the exhausting voltage value, diode D1 was added to compensate Q1 Base-Emitter junction changes in temperature. The use of a Schottky-barrier device (e.g. BAT46, 1N5819 and the like) for D1 is mandatory: the circuit will not work if a common silicon diode like the 1N4148 is used in its place.

Parts :
R1,R7__________220R  1/4W Resistors
R2_____________120K  1/4W Resistor
R3_______________5K6 1/4W Resistor
R4_______________5K  1/2W Trimmer Cermet or Carbon
R5______________33K  1/4W Resistor
R6_____________680K  1/4W Resistor
R8_____________100K  1/4W Resistor
R9_____________180R  1/4W Resistor
C1,C2____________4µ7  25V Electrolytic Capacitors
D1____________BAT46  100V 150mA Schottky-barrier Diode
D2______________LED  Red 5mm.
Q1____________BC547   45V 100mA NPN Transistor
Q2____________BC557   45V 100mA PNP Transistor
B1_______________5V to 12V Battery supply
Notes :
  • Mean current drawing of the circuit can be reduced further on by raising R1, R7 and R9 values.
Source : Red Circuits
Read More..