Wednesday, November 12, 2014
4 Bit Analogue to Digital Converter
R1:R2 = 1:2;
R3:R4:R5 = 1:2:4;
R6:R7:R8:R9 = 1:2:4:8.
The linearity of the converter depends on the degree of precision of the value of the resistors with respect to the resolution of the converter, and on the accuracy of the threshold voltage of the comparators. This threshold level must be equal, or nearly so, to half the supply voltage. Moreover, the comparators must have as low an output resistance as possible and as high an input resistance with respect to the load resistors as feasible. Any deviation from these requirements affects the linearity of the converter adversely.
Circuit diagram:
If the value of the resistors is not too low, the use of inverters with an FET (field-effect transistor) input leads to a near-ideal situation. In the present converter, complementary metal-oxide semiconductor (CMOS) inverters are used, which, in spite of their low gain, give a reasonably good performance. If standard comparators are used, take into account the output voltage range and make sure that the potential at their non-inverting inputs is set to half the supply voltage. If high accuracy is a must, comparators Type TLC3074 or similar should be used.
This type has a totem-pole output. The non-inverting inputs should be interlinked and connected to the tap of a a divider consisting of two 10 kΩ resistors across the supply lines. It is essential that the converter is driven by a low-resistance source. If necessary, this can be arranged via a suitable op amp input buffer. The converter draws a current not exceeding 5 mA.
Sunday, October 5, 2014
Circuit digital clock circuit,
This signal is decoded in CPLD and eight kinds of signals are made. This time, six kinds are used. Only the transistor which corresponds to the L level decoder output becomes ON condition. The LED which is connected with the transistor becomes a lighting-up possible condition. In the tens-hour display, only “1″ is displayed. So, I put the display of AM/PM. 74HC138 can be used for the 3-8 decoder, too. Segments of the lighting-up of each digit are controlled using 7 ports of RC6 from RC0 of PIC. The output of these ports is common to all the LEDs.
However, only the LED of the digit which was specified by RA0-2 is controlled in the lighting-up. The LED lights up when the RC port is an L level. The brightness of the LED depends on the kind of the LED. When the brightness is different extremely, the resistors which are connected with the RC ports should be separated. This time, because it is approximately the same brightness, resistors are made common. Because the maximum voltage which is applied to the pin of PIC is 5V, I make the power of the LED 5V.
Wednesday, September 17, 2014
Digital Counter with an Interval of Kilometers
The schema has been designed for a person who loves to jog or walk while measuring the distance that have been covered during the activity.
- 4093 – a quad 2-input NAND with Schmitt trigger inputs integrated schema, generally characterized by small fluctuation in voltage supply, very high impedance, outputs that can sink and source, one output can drive up to 50 inputs, high speed gate propagation time, high frequency, and low power consumption.
- 4026 – a decade counter where the count advances as the clock input becomes high and has a maximum current of about 1 mA with a 4.5 V supply and 4 mA with a 9 V supply, which can light the appropriate segments of a common cathode 7-segment display.
- 4024 – a ripple counter with glitches that may occur in any logic state systems connected to its outputs due to the slight delay before the later counter outputs respond to a clock pulse; the count advances as the clock input becomes low on the falling edge as indicated by the bar over the clock label that is the usual behavior of the ripple counters which means a counter output can directly drive the clock input of the next counter in a chain.
The whole schema may be placed in a small box and be placed in pants’ pocket where the 7-segment digital display shows the most significant digit D2 in the leftmost portion where it shows the 0 to 9 Km digits. The dot in between is always ON to segregate KM form hm. The least significant digit D1 is displayed at the rightmost part where it illustrates hundreds of meters and the dot is illuminating after every 50 meters of walking. In every two steps, a beeper will signal each count of unit, although it is not included in this schema.
Circuit diagram :
Digital Counter with an Interval of Kilometers Circuit Diagram
A length of 78 centimeters is the calculated measure of a normal step which causes the LED to illuminate after 64 steps to signal a 50 meter distance. For a mercury switch, the illumination occurs every 32 steps. After 128 steps, the display will indicate 100 meters and so on. The SPST push button switch P2 is pressed only upon request in case of low battery consumption. Both push button switches P1 & P2 should be pressed together to reset the schema in order to prevent accidental reset of the counters. The schema should be considered as an approximation and not as a precision meter because it is very difficult to obtain the correct position of the mercury switch SW1 in the box where the degree of slope is being set.
The excessive bouncing of mercury switch is provided with certain degree of tolerance from the monostable multivibrator consisting of IC1A & IC1B. IC2 therefore is divided by 64 as a clean square pulse enters. The LED dot segment of D1 is driven by Q2 for every 32 pulses counted by IC2. At each monostable count, an audio frequency square is generated by IC1C for a short time. Using SW2 will disable the beep while the piezo sounder is driven by Q1. The power of beeper sound can be adjusted by trimming the value of R6. SW3 can be omitted when the display is disabled resulting to negligible current consumption.
The digital step counter schema is widely used by people as their motion monitor while walking or jogging and other most ideal exercise possible. Some designs may come with a digital clock and backlight for easy reading during running, and belt clips.