Fig. 4: Actual-size, single-side PCB layout for the humidity indicator Fig. 5: Component layout for the PCB and controller circuit
transduction scheme that they use to as shown in Fig. 1. Parts List
convert water vapour concentration Before using this circuit, humidity Semiconductors: into an electrical signal, viz, capacitive, level is first calibrated using preset IC1 - LM3914 dot/bar display resistive (DC resistance or AC imped- VR1. You may refer to a standard driver T1, T2 - BC557 pnp transistors ance) and piezo-resistive. humidity meter to calibrate it. For D1, D2 - 1N4007 rectifier diode The SY-HS-220 series humidity example, if a standard humidity meter HS1 - SY-HS-220 humidity sensor module sensor is based on capacitive technol- shows 40 per cent RH, LED1 and LED2 LED1-LED8 - 5mm LED ogy. This sensor module converts the should glow. If not, vary VR1 till LED1 Resistors (all 1/4-watt, ±5% carbon): RH directly into equivalent millivolts and LED2 glow. Once calibration is R1 - 680-ohm R2 - 1.2-kilo-ohm analogue output. The driver circuit done, you should not touch the preset R3 - 3.9-kilo-ohm is in-built in the sensor assembly (see again. Thus, if humidity level is 50 per R4, R5 - 1-kilo-ohm VR1 - 10-kilo-ohm preset Fig. 2). The rated voltage is 5V DC. Its cent, you should see LED1, LED2 and Capacitors: operating temperature range is 0-60°C LED3 glowing. C1 - 100µF, 16V electrolytic and humidity is 30-90 per cent RH. Its T1 and T2 are pnp transistors for Miscellaneous: S1 - On/off switch standard output at 25°C and 60 per controlling two electrical devices CON1 - 2-pin Berg Strip connector cent RH is 1980mV DC. through relays RL1 and RL2. You can CON2 - 3-pin Berg Strip connector CON3 - 7-pin Berg Strip connector Fig. 3 shows the millivolts output trigger these relays at the desired hu- CON4, CON5 - Jumper wire reading corresponding to RH. The midity level by connecting their bases CON6-CON8 - 2-pin, 5mm terminal output of humidity sensor HS1 is to the corresponding pins of IC1. connector - 18-pin IC base connected to analogue input pin 5 of All pins are terminated at CON3 for RL1, RL2 - 5V, 1C/O relay LM3914 through preset of 10-kilo-ohm ease of connection. Note that RL2 can (VR1). be used to stop the current process When circuit is turned on, vary Dot/bar display driver (LM3914). when predetermined humidity level VR1 till all the LEDs glow, to check if The LM3914 is an 18-pin DIP package is reached. they are working well along with the IC that accepts analogue signals at its driver. input pin 5 and drives 10 LEDs, pro- Construction and testing For troubleshooting, you can refer viding a linear analogue display. Pin An actual size, single-side PCB for the test points given in the table. Now, 9 is the mode-select input control for the humidity indicator and controller calibrate the circuit using a standard bar- or dot-mode operation. LM3914 is shown in Fig. 4 and its component humidity meter as explained earlier. works in bar mode when pin 9 is con- layout in Fig. 5. Assemble the compo- For manual testing, you can blow air nected directly to pin 3 and pulled to nents on the PCB. Before switching on from your mouth on the humidity +5V supply. the circuit, check proper connections, sensor (HS1) and observe the LEDs At any point of time, if all LEDs especially correct polarity of the power glowing. The number of glowing LEDs (LED1 through LED7) glow, it indi- supply at CON1. Normally, you will depends on the moisture content in cates that the humidity level is 90 per find humidity sensor module with five your breath. cent RH and if only LED1 glows, it pins. You need to use only three pins indicates that humidity is at 30 per cent (Vcc, Vo and GND) of this module, The author is a B.Tech in electronics and com- RH. The number of glowing LEDs in- which are to be connected at CON2 in munications engineering from Punjab Technical creases with increase in humidity level this circuit. University
126 February 2014 | Electronics For You www.efymag.com