This circuit is a standard way of driving Small Power Relays from Control Signals generated by Logic or Opamp Circuits.

C2 and R5 form a snubber which improves the life of the metal contacts, the contacts can erode due to sparking when switching inductive or even big loads. reduces EMI_RFI.

Basics of Electronics

The Electromagnetic Solenoid Coil is rated by Volts and Ohms. If you choose 12V ensure a stable 12V is provided, more voltage will heat coil, less voltage will cause sparking or will drop out the magnetic holding. A high coil resistance is better as the heat will be less and power consumption of your design is low.

Basic Relay or Solenoid Driver

Q2 is any 500mA-50V-NPN device. For a relay drawing 100mA-12V use a 200mA-50V device or better. D1 is a freewheeling diode, inductive kickback diode or snubber or something that stops the coil from zapping the Q2. Q1 and Q2 form a Darlington pair to amplify the low current drive of some CMOS gates.

Infrared Optical Proximity Switch

R2 and R1 is to hold the bases to ground and avoid floating or else they will pick up noise and relay will chatter….. the contacts will spark ……. the motor or heater will fail to work well……… and your product will get rejected ……….. the payments will be held up …… the customer may even ……………………… stop that right now !

R3 and C1 is a dampener for the signal so that quick relay operations can be avoided, this is important if your relay is driving a three phase contactor which runs a huge Motor. C1 can be increased if required. When huge loads are switched on-off in a factory, lots of spikes and drop outs will reset timer and logic circuits, this will turn on off above relay … leading to the load switched by this circuit going on-off. This may even lead to a Oscillation with the spikes as feedback which can cause great trouble during the troubleshooting process. R4 limits current.

When the microcontroller hangs due to a spike, EMI or RFI etc. the 7555 will reset the uC, if proper power supply design is done above circuit can also give a clean power on reset, the above circuit you should modify to suit your design.

80C39-8749 MCS-48 Examples and code

Better still use a uC with watchdog built in like some atmel chips, or use the watchdog chips from maxim which can also do RAM battery management.

The circuit was developed over a old TI application note, 7555 i think fairchild may be making it, 7555 is CMOS version of 555 timer, advantage of 7555 is that it can go to higher frequency, low power consumption, the disadvantage is its output drive mA is not as good as 555. now why i put it here was that you can see how charge and discharge paths are separated with diodes.

555 watchdog for uC and uP systems

See Larger Circuit. 555 Watchdog
Edit the circuit eagle cad file,

This is the Analog front end of the 80C39 Process Controller. The analog input is protected by a Zener barrier, low leakage. You could use clamping diodes too.

The non-inverting low-offset amp offers high input impedance. After further amplification it reaches the VCO LM331. The pulse train from the VCO reaches the uC port and is gated and measured by the MCS48 firmware. The voltage is deduced from the Frequency or Pulse width.

Voltage to Frequency Converter AD Interface

You can get a resolution near to a 8-10 bit A/D converter. It does not work for negative voltages. It is a low cost Voltmeter or Process Display solution.

80C39 and MCS48 based Process Controller is the main circuit that has the LED 7 segment display for output and push keys for input.

This was done in my early days, i have upgraded it, it ought to work, reduce the number of transistors to make it less sensitive, also a lower value in place of 10M will reduce its sensitivity, use clamping diodes to protect.

More such ideas at – Hobby Hound – Hobby, DIY, Do it Yourself Projects.

BD139 is used to drive the relay as it has good Ic. So you can even use a low ohm relay. If a Relay resistance is high its quality is higher, its power consumption is less and it needs thinner wire SWG-AWG. T2 and T3 form a darlington pair which drives T1. LED1 shows that the water level has reached the top of tank and also that the Relay is energised. D1 a freewheeling diode. R3 10M ensures that the high gain input does not float, yet the low leakage current thru the water is not drawn away by the 10M. R2 limits base current in case water is saline.

Simple Water operated relay

The Source file in EAGLE format is here

I wanted to design a logic probe as a tutorial, but there were many good ones in the web so i have tried to design a single digit voltmeter. This circuit is a design, i am unable to test it now, later if i test it and find mistakes i will update this page. You can help me by pointing out the errors.

Data Interface – Printer Port, Virtual Instrumentation.

Single Digit Voltmeter with LM311

First bear it in mind that it is a single digit voltmeter which is 0-9 counts only on the positive side, that is it can measure +0 to +9V DC +/- 1V error. That may not be practical for the cost of the components above. It may be used as a toy logic probe. The reason for the circuit is not for usage, but to give design ideas. The methodology used is Gut Feel – Thumb Rule method.

Read More →