Description: Small inductance changes on the order of 0.01% can easily be sensed over a wide range with a simple circuit connected to a serial port. Using a classic Colpitts oscillator interfaced to an eight-pin Atmel ATtiny12-8 microprocessor, the period of multiple oscillator cycles, which is proportional to the inductance, can be sensed. Applications include metallic proximity sensing and seismic detection. The Colpitts oscillator output is level-shifted using resistors R4 and R5 to a zero of about 1.2 V, which is the microprocessor's analog comparator reference voltage. The oscillation frequency of a Colpitts oscillator is determined by its circuit components. The RISC-based microprocessor, operating at an instruction rate of 8 MIPS, counts the number of LC oscillator cycles between a fixed number of crystal-oscillator clocks. With the circuit shown, values of capacitors C1 and C2 should be chosen so that the maximum LC oscillator frequency is about 500 kHz. Frequency measurements are made for 32.5 ms. At the end of each measurement, four hexadecimal ASCII characters representing the number of cycles of the LC oscillator are serially transmitted. The online version of this article includes the ATtiny12 source code and HEX file.
The described circuit utilizes a classic Colpitts oscillator configuration, which is well-regarded for its stability and reliability in generating oscillations. The oscillator's frequency is primarily determined by two capacitors (C1 and C2) and an inductor (L), allowing for precise tuning to achieve the desired frequency range. The choice of C1 and C2 is critical, as they directly influence the maximum frequency output, which should be set to approximately 500 kHz for optimal performance in the intended applications.
The Atmel ATtiny12-8 microprocessor serves as the central processing unit, executing the counting of oscillator cycles. With a processing speed of 8 MIPS, the microprocessor efficiently counts the number of cycles over a defined period of 32.5 ms, leveraging its high-speed operation to ensure accurate frequency measurements. The output from the Colpitts oscillator is conditioned through resistors R4 and R5, which level-shift the signal to align with the microprocessor's analog comparator reference voltage of approximately 1.2 V. This level shifting is essential for reliable detection of the oscillator's output by the microprocessor.
The application of this circuit extends to various fields, including metallic proximity sensing, where small changes in inductance can indicate the presence of metallic objects, and seismic detection, where variations in inductance may correlate with ground movements. The serial transmission of the measured cycles as hexadecimal ASCII characters allows for easy integration with other systems or data logging applications.
In summary, this circuit design showcases the integration of a Colpitts oscillator with an ATtiny12 microprocessor to create a sensitive and responsive inductance measurement system, suitable for a range of practical applications. The inclusion of source code and HEX files in the online version enhances the accessibility and usability of the design for engineers and developers.Small inductance changes on the order of 0. 01% can easily be sensed over a wide range with a simple circuit connected to a serial port ( see the figure ). Using a classic Colpitts oscillator interfaced to an eight-pin Atmel ATtiny12-8 microprocessor, the period of multiple oscillator cycles ”which is proportional to the inductance ”can be sensed
. Applications include metallic proximity sensing and seismic detection. The Colpitts oscillator output is level-shifted using R4 and R5 to a zero of about 1. 2 V, which is the microprocessor`s analog comparator reference voltage. The oscillation frequency of a Colpitts oscillator is: The RISC-based microprocessor (operating at an instruction rate of 8 MIPS) counts the number of LC oscillator cycles between a fixed number of crystal-oscillator clocks. With the circuit shown, values of C1 and C2 should be chosen so that the maximum LC oscillator frequency is about 500 kHz.
Frequency measurements are made for 32. 5 ms. At the end of each measurement, four hex ASCII characters representing the number of cycles of the LC oscillator are serially transmitted. The online version of this article at includes the ATtiny12 source code and HEX file.
The capacitor CI charges through resistor R1, and when the gate level established by potentiometer R2 is sufficiently high, the SCR is triggered. Current flows through the SCR and earphones, discharging CI. The anode voltage and current drop to a...
Figure 1 illustrates an economical and straightforward Gate Alarm designed to operate using a small universal AC-DC power supply. IC1a functions as a fast oscillator, while IC1b serves as a slow oscillator. These two oscillators are integrated through IC1c to...
The metal detector circuit comprises an oscillator and a sound-light alarm circuit. The oscillator circuit includes an inductor (L), a capacitor (C1), a sensor switch integrated circuit (IC1) that integrates the oscillator, detector, comparator circuit, and peripheral components. The sound-light...
The circuit consists of two oscillators, both working at about 465 kHz. One uses an if transformer and the other uses an inductor (the search coil LI). The oscillators are coupled by a capacitor (10 pF). A beat note (produced...
A simple oscillator generates a frequency in the VHF or UHF range. This oscillator is modulated with a video signal, and the resulting modulated carrier wave is transmitted to the TV set's aerial input through a cable. The final step...
Regenerative feedback at capacitor C allows the oscillator to complete its timing cycle instead of shutting off immediately. The integrated circuit (IC) used was a CD4011AE, although an equivalent IC will also function.
The described circuit utilizes regenerative feedback to enhance...
This circuit generates continuous outputs that depend on multiple input variables.
The circuit in question typically employs a combination of operational amplifiers (op-amps), resistors, and potentiometers to achieve its functionality. The outputs can be tailored based on the variations in...
The capacitor charges until the switching voltage is reached. When the switch (SUS) is activated, the inductor causes the current to oscillate. When the current through the switch drops below the holding current, the device turns off, and the cycle...
The flowers in pots require watering, as relying solely on the observation of moist soil surfaces can be unreliable. To address this issue, a flower watering indicator has been developed. This circuit includes a field effect transistor (VT1), a second...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more