Solar Relay

With extended periods of bright sunshine and warm weather, even relatively large storage batteries in solar-power systems can become rather warm. Consequently, a circuit is usually connected in parallel with the storage battery to either connect a high-power shunt (in order to dissipate the excess solar power in the form of heat) or switch on a ventilation fan via a power FET, whenever the voltage rises above approximately 14.4 V. However, the latter option tends to oscillate, since switching on a powerful 12-V fan motor causes the voltage to drop below 14.4 V, causing the fan to be switched off.

In the absence of an external load, the battery voltage recovers quickly, the terminal voltage rises above 14.4 V again and the switching process starts once again, despite the built-in hysteresis. A solution to this problem is provided by the circuit shown here, which switches on the fan in response to the sweltering heat produced by the solar irradiation instead of an excessively high voltage at the battery terminals. Based on experience, the risk of battery overheating is only present in the summer between 2 and 6 pm. The intensity of the sunlight falling within the viewing angle of a suitably configured ‘sun probe’ is especially high precisely during this interval.

This is the operating principle of the solar relay. The trick to this apparently rather simple circuit consists of using a suitable combination of components. Instead of a power FET, it employs a special 12-V relay that can handle a large load in spite of its small size. This relay must have a coil resistance of at least 600 Ω, rather than the usual value of 100-200 Ω. This requirement can be met by several Schrack Components relays (available from, among others, Conrad Electronics). Here we have used the least expensive model, a type RYII 8-A printed circuit board relay. The light probe is connected in series with the relay. It consists of two BPW40 phototransistors wired in parallel.

Solar Relay Circuit Diagram
Solar Relay Circuit Diagram

The type number refers to the 40-degree acceptance angle for incident light. In bright sunlight, the combined current generated by the two phototransistors is sufficient to cause the relay to engage, in this case without twitching. Every relay has a large hysteresis, so the fan connected via the a/b contacts will run for many minutes, or even until the probe no longer receives sufficient light. The NTC thermistor connected in series performs two functions. First, it compensates for changes in the resistance of the copper wire in the coil, which increases by approximately 4 percent for every 10 ºC increase in temperature, and second, it causes the relay to drop out earlier than it otherwise would (the relay only drops out at a coil voltage of 4 V).

Depending on the intended use, the 220-Ω resistance of the thermistor can be modified by connecting a 100-Ω resistor in series or a 470-Ω resistor in parallel. If the phototransistors are fastened with the axes of their incident-angle cones in parallel, the 40-degree incident angle corresponds to 2 pm with suitable solar orientation. If they are bent at a slight angle to each other, their incident angles overlap to cover a wider angle, such as 70 degrees. With the tested prototype circuit, the axes were oriented nearly parallel, and this fully met our demands. The automatic switch-off occurs quite abruptly, just like the switch-on, with no contact jitter.

This behaviour is also promoted by the NTC thermistor, since its temperature coefficient is opposite to that of the ‘PTC’ relay coil and approximately five times as large. This yields exactly the desired effect for energising and de-energising the relay: a large relay current for engagement and a small relay current for disengagement. Building the circuit is actually straightforward, but you must pay attention to one thing. The phototransistors resemble colourless LEDs, so there is a tendency to think that their ‘pinning’ is the same as that of LEDs, with the long lead being positive and the short lead negative. However, with the BPW40 the situation is exactly the opposite; the short lead is the collector lead. Naturally, the back-emf diode for the relay must also be connected with the right polarity. The residual current on cloudy days and at night is negligibly small.

Pushbutton Relay Selector

This circuit was designed for use in a hifi showroom, where a choice of speakers could be connected to a stereo amplifier for comparative purposes. It could be used for other similar applications where just one of an array of devices needs to be selected at any one time. A bank of mechanically interlocked DPDT pushbutton switches is the simplest way to perform this kind of selection but these switches aren’t readily available nowadays and are quite expensive. This simple circuit performs exactly the same job. It can be configured with any number of outputs between two and nine, simply by adding pushbutton switches and relay driver circuits to the currently unused outputs of IC2 (O5-O9).

Gate IC1a is connected as a relax-ation oscillator which runs at about 20kHz. Pulses from the oscillator are fed to IC1b, where they are gated with a control signal from IC1c. The result is inverted by IC1d and fed into the clock input (CP0) of IC2. Initially, we assume that the reset switch (S1) has been pressed, which forces a logic high at the O0 output (pin 3) of IC2 and logic lows at all other outputs (O1-O9). As the relay driver transistors (Q1-Q4) are switched by these outputs, none of the relays will be energised after a reset and none of the load devices (speakers, etc) will be selected. Now consider what happens if you press one of the selector switches (S2-S5, etc). For example, pressing S5 connects the O4 output (pin 10) of IC2 to the input (pin 9) of IC1c, pulling it low.

Circuit diagram:Pushbutton relay selector
Pushbutton Relay Selector Circuit Diagram

This causes the output (pin 10) to go high, which in turn pulls the input of IC1b (pin 5) high and allows clock pulses to pass through to decade counter IC2. The 4017B counts up until a high level appears at its O4 output. This high signal is fed via S5 to pin 9 of NAND gate IC1c, which causes its output (pin 10) to go low. This low signal also appears on pin 5 of IC1b, which is then inhibited from passing further clock pulses on its other input (pin 6) through to its output (pin 4), thus halting the counter. So, the counter runs just long enough to make the output connected to the switch that is pressed go high. This sequence repeats regardless of which selector switch you press, so the circuit functions as an electronic interlock system.

Each relay driver circuit is a 2N7000 FET switch with its gate driven from one output of IC2 via a 100W resistor. The relay coil is connected from the drain to the +12V supply rail, with a reverse diode spike suppressor across each coil. If you want visual indication of the selected output, an optional indicator LED and series resistor can be connected across each relay coil, as shown. For selecting pairs of stereo speakers, we’d suggest the use of relays like the Jaycar SY-4052. These operate from 12V and have DPDT contacts rated for 5A. Note that although four selector switches are shown in the circuit, only two relay drivers are shown because of limited space. For a 4-way selector, identical relay drivers would be driven from the O2 and O3 outputs of IC2.
Author: Jim Rowe - Copyright: Silicon Chip Electronics

Momentary Switch Teamed With Latching Relay

This circuit allows an SPST momentary pushbutton to act as a push-on push-off switch, using a DPDT latching (bi-stable) relay. It was originally intended to allow a single pushbutton switch on the dash of a vintage car to provide a latched function. The relay only draws current when it is being switched. At other times, the only current drain on the 12V supply is the leakage current of one 22µF capacitor, which is very low. It works as follows.

Assume that initially the latching relay is in the reset state, with pins 4 and 6 connected together. In this state, C2 charges up to +12V via 2.2kO resistor R2 while capacitor C1 remains discharged as it is not connected to the 12V supply. If S1 is pressed, C2 discharges via the relay’s “set” coil, diode D2 and S1. This switches the relay into its set position, connecting pins 4 and 8. C1 then begins to charge via R1. While S1 is being held down, the relay does not return to the reset position because the current supplied via R1 is insufficient for the coil to latch the armature. As soon as S1 is released, current no longer flows though the coil so C1 can finish charging, ready for the next button press.

Circuit diagram:
Momentary switch teamed with latching relay circuit schematic
Momentary Switch Circuit Diagram Teamed With Latching Relay

Once the relay has switched and C1 has finished charging, pressing S1 again causes the relay to switch back to the reset state via the same process. The unused set of relay contacts can be used as an SPST or SPDT switch. The circuit as shown has been tested with the Jaycar SY4060 relay. It will work with other DPDT twin-coil latching relays but the resistor and capacitor values may need to be adjusted to suit. Relays with lower resistance coils will need larger value capacitors and smaller value resistors.
Author: Merv Thomas - Copyright: Silicon Chip Electronics Magazine