The basic digital circuits are Flip Flop and Counter, both are here. This circuit can be cascaded to make even a 6 digit event counter, even a simple frequency counter can be made.

These are best done with microcontrollers today. Then what if you have to design your own microcontroller on a FPGA, so the basics have to be sound, hence you have to know what gates, flip flops and counters are.

Simple Digital Event Counter

see the seven segment display. Inc, Dec, and Set buttons are momentary acting and Clk Button is latching type. The Dip Switch in the also can be set.

a. – Set the DIP Switch as you like and then Press the Set button. The BCD value will be at the 4029 output, The Decimal value will be seen in the seven segment Display. Now try for different dip switch settings and see the BCD and Decimal output.

b. – Now Press The Inc and Dec pushbuttons. Set it to Increment up-count or Decrement which is down-count. This is a simple flip flop control.

c. – Now Click the Clk – clock or count button, the switch will latch, press it again to release. If you toggle it once the counter will get a single pulse and it will count it, see the BCD and decimal displays. Now you turn it on and leave it, the counter will keep counting one per second till you turn it off, the clock nand gate is wired to be an oscillator.

The decimal point LED of display is given to Carry Out pin of 4029 so observe this at 9 and 0 or transitions.

Add 104 CD, 0.1uF ceramic disc cap to all the ICs across the supply pins. Also add a 104 CD cap across Inc switch and one across the Set switch for power on default settings.

See a Tutor Digital up down BCD counter that will help you take the first step in digital electronics.

This circuit is built around LM3647 an Universal Battery Charger, This Circuit is an untested design. It is based on application hints and was provided as an example to the user. This circuit gives a 12V DC from mains or battery and the battery is also charged when power resumes.

Li-Ion Battery Charger U1D monitors charge current and U1B monitors battery voltage these values are the feedback to charge controller U3. U1C drives Q2 to Control the charging process by switching in PWM. The LM7812 with a 2N6107 Current Booster Regulate the battery and mains DC to a 12V for powering the Product Circuits.

Li-Ion Battery Charger – del90005

Portable electronics have got a big boost due to batteries like Li-Ion. Here is a decade old circuit to charge a large battery. It can be scaled up or down in power. It has current and voltage limit protections.

This is an example of a cascaded or sequential timer, here two CD4541 are forming a two stage timer. You can add more in a chain, but better to use a microprocessor or Microcontroller for such a purpose. But make sure EMI-RFI immunity is high for these circuits or wrong resets and sets can make a machine like an Oven or Environment Chamber malfunction and even ruin the job.

Two Stage Sequential Timer – del90004

Two Stage Sequential Timer

U5B a flip-flop is used for the control switches Start and Stop to prime or shutdown the sequential cycle. The first timer U2 sets the flip-flop or register U5A after a period T1, this register turns the relay on thru Q3. The second timer U4 which was triggered by the first will reset the U5A after time period T2, U5A then shuts down relay. U5A also then resets entire process thru U3C and U3D.

Some outputs are via Dual Differential Line Driver type DS8830. This device will interface with standard TTL systems.

Differential to TTL convertor using LM339

The differential outputs are balanced and are designed to drive long lengths of coaxial cable, strip line, or twisted pair transmission lines with characteristic impedances of 50 ohms to 500 ohms. Differential transmission is superior to single wire transmission in that it nullifies the effects of ground shifts and noise signals which appear as common mode voltages on the transmission line.

Mixed and Interface Circuits

If the signal voltage at the end of the line is found to be of insufficient magnitude then the following circuit may be used (at the recipient equipment end) to boost the levels.

U1 CD4541 is a Timer with Long Duration Ability. This timer is started by a low pulse from earlier circuit, when the temperature goes above setpoint, a low state is at U2A inputs, this starts the timer. The timer output goes high after a preset time. U2C-D Flip flop is power on reset via cap C7. Even a manual ‘reset’ is used if required. This alarm toggle is ‘set’ when The temperature remains high even after the preset time period of U1.

Timer and Counter Modules – del90002

Timer and Counter Modules

A digital counter monitors the number of times a process goes beyond a certain temperature limit over a long cycle of time. This circuit has a Analog Timer and Digital Counter. The Analog timer turns on an Alarm if the Temperature Limit transition is very long.

Here 4052 is used as an analog multiplexer, U3A TL062 opamp is wired as a 1mA Constant Current Source. It pumps 1mA into U2 4052 pin 13 X . Depending on BCD code on inputs A, B of 4052 the current is routed to any one of the four RTD 100E, whose one end is connected to X0-X3. The current then flows to GND thru the Platinum 100E resistance. The Y0-Y3 monitors the mV developed on RTD in tandem with X0-X3 positions. Like a ganged rotary switch. The Output mV at Y is the mV of Active Channel as selected by the BCD of 4029.

RTD Pt-100 Four Point Alarm – del90001

The BCD is provided by 4029 counter which is clocked by a 555. U5A cancels out the 100E mV (1mA * 100E) of a cold RTD and Amplifies the differential mV. This output of U5A is in proportion with measured temperature. U5B compares the mV that was obtained with a preset mV of POT1, which is a user setting called setpoint. The difference is amplified by U5B which is saturated by U3B comparator which adds a little hysteresis too. R7-C2 further dampen and slow the response. This finally drives Q2 to provide a Logic Signal indicating if temperature is below or above setpoint.

RTD Pt-100 Four Point AlarmFour points in a Closed Loop Temperature Control System is Monitored and a Alarm set to go off when the temperature goes beyond the set limit.

When Instruments are designed a analog front end is essential and also as most equipment have digital or microcontroller interface the analog circuit needs to have digital access. The Circuits DACT0008 and DACT0009 are both useful in building instruments which have digital control.

Precision Attenuator with Digital Control

The Circuit DACT0008 is a programmable attenuator and the digital control can be a remote dip switch, a CMOS Logic Output like the A-B-C-D outputs of a decade counter, or an I/O port of a uC like 80C31.

The heart of the circuit is the popular OP07 OpAmp with Ultra Low Offset in the inverting configuration, 4052 a CMOS analog multiplexer switch enables the gain change, the innovation of the circuit is that the on resistance ( around 100 ohms) of 4052 switch is bypassed so that no error is introduced by its use.

The resistors used R1 to R6 can be 0.1% 50ppm if you will use a 3 ½ DPM i.e. + /- 1999 counts ( approx. 11 bit ), but for 4 ½ DPM ( approx. 14 bit ) you may need to have trimpots2 in place of R3, R4, R5 & R6 gain selection resistors to properly calibrate to required accuracy but for testing or trials use 1% 100ppm MFR resistors but the errors will be around 1%.

Precision Attenuator with digital control

b. Output

Output connect to DPM 7107/7135 or any other A/D Convertor or OpAmp Stage. Use a buffer at output if output has to be loaded by a value less than 1Meg. Use an inverting buffer if input leads have to have polarity where gnd is -In. See DACT0009 for details.

c. 4052 CMOS Switch

The 4052/51/53 Analog Multiplexers have an on Resistance of around 100E the highlight of the circuit is that the CMOS on resistance comes in series with the opamp output source resistance, which produces no error at output.

Digital Control Options

A and B can be controlled by I/O port of uC, like 80C31 so that the uC can Control gain. A and B can be given to Counters like 4029/4518 to scroll gain digitally. A and B can be connected to DIP switch or thumbwheel switch.