Saturday, July 3, 2010

Aquarium Probe


A number of environmental factors including light and temperature affect fish culture. The temperature of water has profound effect because fish cannot breed above or below the critical temperature limits. Temperature between 24°C and 33°C is found to be the best to induce spawning in fishes. This particular temperature range is also necessary for the healthy growth of nursery fish fries (young fishes). Rise of water temperature due to sunlight may adversely affect the fish rearing process.

The circuit of aquatic probe described here can monitor the temperature of water and indicate the rise in temperature through audiovisual indicators. A readily available signal diode 1N34 is used in the circuit as the temperature sensing probe. The resistance of the diode depends on the temperature in its vicinity. Typically, the diode can generate around 600 mV when a potential difference is applied to its terminals. For each degree centigrade rise in temperature, the diode generates 2mV output voltage. That is, at 5°C, it is 10 mV, which rises to 70 mV when the temperature is 35°C. This property is exploited in the circuit to sense the temperature variation in aquarium water. Fig. 1 shows the circuit diagram of the aquarium probe. Since the output from the diode sensor is too low, a high-gain inverting DC amplifier is used to amplify the voltage. CA3140 (IC1) is the CMOS version op-amp that can operate down to zero-volt output. The highest output available from IC1 is 2.25V less than the input voltage at pin 7. With resistor R4 and VR2, the Variation in diode v o l t a g e c a n b e amplified to the required level. Resistor R1 restricts current flow through diode D1 and preset VR1 (1-kilo-ohm) sets the input voltage at pin 3. IC3 (7805) provides regulated 5 volts to the inputs of IC1, so that the input voltage is stable for accurate measurement of temperature. The output from IC1 is fed to display driver LM3915 (IC2) through preset VR3 (50-kilo-ohm). With careful adjustments, the wiper of VR3 can provide 0-400 millivolts to the input of IC2. The highly sensitive input of IC2 accepts as low as 50 mV if the reference voltage at its pin 7 is adjusted using a variable resistor. To increase the sensitivity of IC2, preset VR4 is connected at one end to ‘reference voltage end’ pin 7 and its wiper is connected to ‘high end’ pin 6 of the internal resistor chain. When approximately 70 mV is provided to the input of IC2 by adjusting preset VR3, LED1 (green) lights up to indicate that the temperature is approximately 35°C, which is the crossing point. When the input receives 100 mV, LED2 (red) lights up to indicate approximately 50°C. Finally, the buzzer starts beeping if the input receives 130 mV corresponding to a temperature of 65°C. In short, LEDs and the buzzer remain standby when the temperature of the water is below 35°C (normal). With each step increase of 30 mV in the input (corresponding to 15°C rise in temperature), LEDs and the buzzer become active. Pin 16 of IC2 is used to drive the piezobuzzer through transistor T1. When pin 16 of IC2 becomes low, T1 conducts to beep the piezobuzzer. Resistor R7 keeps the base of transistor T1 high to avoid false alarm. IC4 provides regulated 9V DC to the circuit. Assemble the circuit on a common PCB and enclose in a suitable case. Glass signal diode D1 is immersed in water to sense the temperature of water. Its leads should be coated with enamel paint to avoid shorting in water. Alternatively, enclose the diode in a small glass tube or test tube having sufficient internal space to fit the diode as shown in Fig. 2.



Make the sensor assembly waterproof using wax. Take care while calibrating and setting the circuit. With 5V DC supply to diode D1 and an ambient temperature of about 35°C, D1 generates around 70 mV. Adjust VR3 until the voltage in its wiper increases to 70 mV, so that the input of IC2 (pin 5) receives 70 mV corresponding to the diode output voltage at 35°C. At this stage, green LED1 should turn on. If it doesn’t, adjust VR4 until LED1 just lights up. Immerse the diode in temperature-adjusted hot water (35°C) and adjust VR3 and VR4 until green LED1 lights up. Increase the water temperature to 50°C by adding hot water. Now red LED2 will glow. At this position, the voltage at pin 6 of IC1 will be around 100 mV. When the temperature of water increases further to 65°C, the buzzer starts beeping. After calibration, immerse the diode assembly in the aquarium tank just below the water surface and fix it permanently to avoid floating.

APPLIANCE TIMER-CUM-CLAP SWITCH


When planning for a weekend outing to return late in the evening, we are often in an ambivalence whether to leave the staircase/outside light ‘on’ or ‘off.’ We sometimes miss our favourite TV programme because we forget to switch on the TV in time. If we are in the habit of taking an afternoon nap, we either turn on the mosquito repellent earlier than required or get up being bitten by mosquitoes. The timer-cum-clap switch presented here can solve all these problems and many more. It is a simple circuit that can be programmed to turn on household appliances like lights, fans, TV sets, music systems, etc exactly at a preset time and turn off at another preset time automatically, thereby saving on electricity. You can turn the appliance ‘on’ or ‘off’ with the clap of your hand, if so desired, without having to touch the unit physically. The transistor-based timer circuit uses readily available components, is easy to assemble as well as inexpensive, and can be programmed to switch on/off a load from one second to 100 hours in advance. To make the circuit cost-effective as well as simple to construct, a general-purpose digital clock is incorporated as the basic timing device. The alarm output of the clock is used to toggle the output power supply for switching an appliance ‘on’ or ‘off.’ Transistors T6 and T7 are configured as a bistable flip-flop that has two stable states. Transistor T7 will be in cut-off mode corresponding to transistor T6 in conduction mode, and vice versa. When transistor T6 conducts, its collector potential is very near to the emitter potential, i.e., ground, and therefore there is no base current to transistors T7 through R6. Thus, transistor T7 is in cut-off state. The collector of T7 is above ground potential and the current flows through resistors R7 and R13 to maintain the base current of T6. Thus, T6 remains in conduction state and T7 in cut-off state indefinitely. Now, if a voltage pulse is applied to the base of transistor T7 from some external source, a momentary base current will trigger it into conduction and its collector potential will come down to near ground potential. Thus, the current flowing through resistor R13 will pass through the collector of T7 and there will be no current through R7, making T6 go into cut-off state and thereby raising the collector potential of T6 to some positive value. This, in turn, will keep T7 conducting. Now the base current of T7 will pass through resistors R14 and R6. This state will sustain until some external voltage is applied to the base of T6. The external voltage pulse (for switching) is taken from two sources: the alarm output of a clock or the sound picked up by condenser microphone ‘M’ after proper amplification by transistors T1, T2 and T3. Since most of the digital clocks give out negative pulses to the buzzer (whose other end is directly connected to the positive terminal of the battery), a reverse diode (D8) and a pnp transistor (T10) are used at this stage. The negative pulses are rectified by D8 and filtered by C9 to supply a steady base current of T10. Otherwise, the output will become noisy because of the pulsating nature of the alarm. (If the clock gives out positive pulses, T10 can be replaced with an npn transistor like BC547. Diode D8 has to be reversed and R18 has to be connected between the base of T10 and ground.) The external voltage pulse is fed at the common emitter of transistors T4 and T5 through capacitor C8. When the alarm starts (sending negative voltage pulses), capacitor C9 discharges through D8 and, at the same time, charges through R19, thus triggering the base current of T10. The emitter current of T10 charges capacitor C8, which passes through the emitter of either T4 or T5 depending on their bias. When T6 is conducting, T4 is forward biased and the voltage pulse is fed at the base of T7, bringing T7 into conduction and T6 into cut-off mode. This makes T5 forward-biased and T4 reverse-biased. The next voltage pulse, either through T10, D1 or D2 corresponding to the clock alarm, clap sound or operation of the reset switch, sends a base current of T6 through the emitter of T5 and the output changes over. When clap switch is not required, S2 can be turned off. S3 is the reset switch (push-to-on type), which is used to toggle the output between ‘on’ and ‘off’ states. R10-C7 and R8- C6 are parallel paths to R7 and R6 for quick switchover of the bistable latch. Two AA-size batteries supply 3V DC to the clock and maintain a positive voltage to the collectors of T6 and T7 through diode D7. This keeps the circuit active during power failures also. A step-down transformer supplies 12V DC to the relay coil and sound amplifier section. Diodes D5 and D6 are rectifier diodes and C5 is the ripple filter capacitor. Diode D4 prevents the 3V battery from draining out into the rest of the circuit. The digital clock is a commonly available digital calendar with at least one alarm setting and one countdown timer setting. The digital calendar, being cheap, keeps the total cost of the project low and allows for precise settings of the alarm times. The alarm can be set 24 hours in advance, while a second alarm can be selected in the countdown timer mode, which allows for setting of the time 100 hours (99:59:59 hours to be precise) in advance. Availability of more than one alarm setting in the clock will give the added advantage of setting multiple switching times. Instead of the digital calendar, any other digital clock or battery-operated quartz clock (with alarm) can also be used as the basic timing device, though the alarm time setting is less precise in case of the latter. Instead of one clock, multiple clocks can be wired by connecting diodes parallel to D8. Note that once set in the clock mode, the alarm operates daily at the same time. But in the countdown mode, it operates only once. So if an appliance is to be turned on and off daily at the same time without human intervention, at least two digital clocks have to be wired (if the clock does not have two alarm settings apart from the countdown timer). This simple circuit can be assembled on a general-purpose PCB. The clock, battery, switches, relay, transformer, etc are wired with the PCB (not shown in the circuit). A plastic switchboard (available in electrical shops) can be used as the cabinet for assembling the unit. Holes can be drilled easily on the plastic cabinet. House the PCB, transformer, relay, etc. inside the cabinet. Fix the plug socket, switches and external connector on the rear side of the cabinet. Indicator LEDs (fixed on LED sockets) on the front panel show ‘on’ or ‘off’ condition of the output plug. Glue the condenser microphone inside the front or side wall with small holes drilled in front of it to receive external sound. The battery chamber housing two pencil cells can be fixed inside the cabinet or on the rear of the cabinet as per convenience. The clock is glued on top of the cabinet. Before fixing the clock on the cabinet, open it carefully to disconnect its piezoelectric buzzer. The terminal that shows pulsating voltage during an alarm operation (detected with a multimeter) is connected to the base of T10 through D8 and R19. The internal battery is replaced and the terminals are connected to the external battery chamber with proper polarity. The operation of the circuit can be divided into two parts: clap mode and timer mode. The timer can be put in clap mode by turning on the clap switch (S2). The connected appliance can now be turned on/off by clapping with an audible intensity. The clock timer will function as usual in this mode. While clapping, leave a gap of a few seconds between two successive claps. Thus, the gadget will show better response because it has been designed to consider two overlapping claps as one, ignoring the second one. For timer mode, switch S2 is turned off. The alarm is set at the time when switchover is required. The second switchover time can be set in the countdown timer. For that, the time difference between the present time and the time at which switching is required is calculated and this time is set in the countdown timer. When setting is done, set the output plug as ‘on’ or ‘off’ (as desired) by pressing reset switch S3. While setting the alarm, ensure a delay of at least three minutes between two successive alarm times (on/ off) to allow for the first alarm to subside completely. Otherwise, the unit may malfunction (ignore the second alarm).

Antisleep Alarm for Students


  • This circuit saves both time and electricity for students. It helps to prevent them from dozing off while studying, by sounding a beep at a fixed time interval, say, 30 minutes. If the student is awake during the beep, he can reset the circuit to beep in the next 30 minutes.
  • If the timer is not reset during this time, it means the student is in deep sleep or not in the room, and the circuit switches off the light and fan in the room, thus preventing the wastage of electricity.
  • The circuit is built around Schmitttrigger NAND gate IC CD4093 (IC1), timer IC CD4020 (IC2), transistors BC547, relay RL1 and buzzer.
  • The Schmitt-trigger NAND gate (IC1) is configured as an astable multivibrator to generate clock for the timer (IC2).
  • The time period can be calculated as T=1.38×R×C.
  • If R=R1+VR1=15 kilo-ohms and C=C2=10 μF, you’ll get ‘T’ as 0.21 second. Timer IC CD4020 (IC2) is a 14-stage ripple counter.
  • Around half an hour after the reset of IC1, transistors T1, T2 and T3 drive the buzzer to sound an intermediate beep.
  • If IC2 is not reset through S1 at that time, around one minute later the output of gate N4 goes high and transistor T4 conducts.
  • As the output of gate N4 is connected to the clock input (pin 10) of IC2 through diode D3, further counting stops and relay RL1 energises to deactivate all the appliances.
  • This state changes only when IC1 is reset by pressing switch S1. Assemble the circuit on a general purpose PCB and enclose it in a suitable cabinet. Mount switch S1 and the buzzer on the front panel and the relay at the back side of the box.
  • Place the 12V battery in the cabinet for powering the circuit. In place of the battery, you can also use a 12V DC adaptor.

ANTI-COLLISION REAR LIGHT

  • During poor visibility, i.e., when there is fog, or at dawn or dusk, or when your vehicle gets stalled on a lonely stretch of a highway, this flashing light will provide safety and attract the attention of people to help you out. It uses highbrightness yellow LEDs.
  • The circuit uses a dual binary counter CD4520, quadruple 2-input NAND schmitt trigger CD4093, 8-stage shift-and-store bus register CD4094 and some descrete components. An oscillator is built around gate A, whose frequency can be varied through preset VR1 when required.
  • The output of the oscillator is fed to IC1 and IC3. When the circuit is switched on, the oscillator starts oscillating, the counter starts counting through IC1 and the data is shifted on positive-going clock through IC3.
  • As a result, the four groups of LEDs flash one by one. All the LEDs will then glow for some time and switch off for some time, and the cycle will repeat. Input pins 12 and 13 of the unused gate D must be tied to ground and pin 11 left open.
  • Preset VR1 should be of cermet type and used to change the flashing rate of each group of LEDs. The circuit works off regulated 12V. Assemble it on a general-purpose PCB and house suitably.