HOME     STORE     BLOG     SCHEMATICS     TUTORIALS     DOWNLOADS     CONTACT

ICL8038 Function Generator
 


 

ICL8038 Function Generator

 


Function generator with adjustable frequency from 0 Hz to over 400 kHz, adjustable amplitude, DC offset, duty, and of course the function selection – square, triangle, and sine. Generator based on good old ICL8038 integrated chip generator that gives pretty good shaped signals as for amateur purposes. This circuit has been designed a little differently than ICL’s note or other similar circuits are suggesting. I tested a bunch of different configurations with different peripherals and chosen the best – so to get good waveshape at 400kHz. I got rid of some of the elements, I added my own solutions. The two ICL chips that i have can oscillate around up to 420-430kHz, and practically we can get good waveforms up to that frequency.


ICL8038 Function Generator

The biggest problem of these circuits generators is strong distortion on sine wave output pin 2 at frequencies above 100kHz – so most of the solutions based on this chip has a limited frequency. I found a workaround by not putting the load on the square wave output from pin 9 (open collector that needs to be pulled up to the power supply). In some way the quality of other waveforms is dependent on the load on this pin. Pull-up resistor is activated only when switching output to the square waveform – with the same switch. I got rid of the recommended in the note 10M pot to “improve” the vaweforms. As it turned out its only making them worse, and add a characteristic spout on the top of the upper half of the sine.

Square output pin 9 with open collector, normally would never be able to give a good square wave at these frequencies. Rising edge depends only on the pull-up resistor and its growing very slowly. If we give too strong pull-up resistor, in turn, the trailing edge will be weak because the internal transistor is too heavily loaded. Here, i fixed the square wave with a comparator so that the slope is pretty steep, steep as applied comparator can give. Shown in the schematic LM393 (1.3μs response time) has been replaced by LM293 comparator with 300ns response time – so square wave is acceptable at 400kHz, but it would be good to use even faster model of comparator.

The amplitude of the signal, unfortunately, is not the same for each function, tests have shown that trying to match it with the usual R/R signal dividers will give very distorted waveforms (rounded square and triangle) – so i resigned from such divisors. When ICL is powered from +-12V voltage, it gives VPP voltage waveforms:

Sine = 0.22 * VCC
Triangle = 0.33 * VCC
Square = 0.9 * VCC

We don’t have to concern for the last of them because it gets fed to the input of comparator supplied from +-5V, giving at the output amplitude of signal almost equal to its supply voltage, let’s assume (because each comparator can give different output voltages) that it is a 9.5 VPP (peak to peak). Since the input voltage for the comparator has a greater amplitude than its supply voltage, I decided to fed it just trough the current limiting resistor. Here, the potentiometer is used as a source of compare voltage for the comparator, set it to get the same signal duty that has been set for ICL. Sinusoidal signal coming from the ICL is 5.28 VPP and triangular is 7.92 VPP – so the spread is not that large. A small note here, the scale of the amplitude potentiometer can only have a decorative function or you can match it to only one function. Use of R/R dividers pretty destroys signals, so choice is yours.

Amplitude and DC offset adjustment
Waveforms obtained in this way still need to be fed to the operational amplifier that will allow setting of the amplitude and DC offset. Shown in the schematic TL072 (3MHz and Slew Rate of only 13V/μs) is the absolute minimum that is suitable for such a circuit. Sinusoidal and triangular waveforms will be passed nice, but we can forget about the square. I also tested the NE5532 opamp and it falls considerably worse (10 MHz and slew rate 8V/μs). A LM358 is not even worth of bother. In this case, I used the LM6172 operational amplifier (100MHz and 3000V/μs) which is doing its job great – it passes shape of the rectangle exactly as it got it from the comparator and allows for the full dc offset and amplitude regulations. First half of this opamp is working as repeater, so that the second one that works as an amplifier wont load ICLs signal with its input because they are very “delicate”. +-12V supplied opamp allows for adjusting the amplitude from 0V to 22V. Adding the DC offset regulation to the circuit in such a way that has been done here, has a one disadvantage – waveforms (particularly square) will be having a discharged capacitor effect at a very low frequencies (below 100Hz) – this is the DC offset adjustment potentiometer support capacitor. Its marked as 10uF bipolar on the schematic, but its good to put bigger one to reduce this effect.

The frequency meter has been used in this construction, so its completes the whole generator and allows to perform the frequency adjust without using an external meter or oscilloscope. Shown generator board allows connection of such a meter, giving him power supply and signal to probe. This signal is taken after the waveform switch and is formed in the second half of the above mentioned comparator, and produces a square wave signal with +-5V voltage which its bottom half is then cut off with a 1N4148 diode to the level of -0.7 V. This signal is fed to the meter, the AVR input pin accepts such signals.

Supply
Power supply components included on the board are producing +5 V and-5V for the comparator and frequency meter, and +12 V and-12V for the ICL8038 and operational amplifier. When making this construction and starting it for the first time, make sure that the frequency meter do not draw too much current from the positive line, witch can cause a voltage drop so that 7805 or 7812 stabilizers will experience a drop below their working voltage and give a small sine shaped drops from 50Hz mains – impossible to see without oscilloscope. If this happen, you must increase the capacity of the main filter capacitors or use a more powerful transformer. Voltage transformer should have a 2x14V minimum to allow the proper operation of 7812 and 7912 stabilizers.

Imperfections
In this article i described how to make a simple front panel (its not translated, sorry), and beside regular files such as PCB files, i added a ready-to-print design of the front panel in the PDF format, suitable for housing Z1A, in the attachment. Due to certain limitations of the program in which the panel was designed, scales of the potentiometers provide a full range of regulation, such as duty fill from 0% to 100%, where the circuit does not achieve such regulation. In series with potentiometers, you can try to add resistors so that they will show exactly what generator is doing – i was not playing with this. Duty adjustment is in the range of about 5-10% to 90-95%, is non-linear, and adjusting its lower half reduces the frequency of oscillation for a large values – its a defect or the ICL8038 or it just is designed to work in such way. Offset, amplitude, and frequency scales are pretty accurate.

Shielding, temperature drift
Whole electronic circuit is protected by a tin to minimize the impact of the electromagnetic field of a transformer and power lines. ICL chip changes its oscillation frequency depending on the temperature, so when you turn on the generator, wait approximately two minutes until all the elements get heated to they operating temperature and then fine-tune the frequency. For example, a cold circuit set to 400kHz, decreases its frequency by about 1-2 kHz after warming up. After stabilize, the frequency can change a bit (ICL chip fault), but it should not change over time. For this reason, i do not recommend an active cooling housing – in my case air flow does not exist, and the 7805 can get pretty hot (big current draw by frequency meter) and rise temperature of the whole circuit – I think it even helps to stabilize the temperature.

Additionally
In my version of device i added the input mode for the meter, which can be selected on the range switch, and the output connector can be used to measure external signals. Provide a minimum 0V-3V signal – such signal can be measured by the meter. The signal may be larger, it is matched by the same elements that adjust it at the output of the comparator. Graphics in attachment shows the connections of switches, in this case, I used two rotating ones, 2 x 6 rows each. “Gold-plated” RCA connector is used temporary because I ordered BNCs but they came with a big delay.






ICL8038 Function Generator

ICL8038 Function Generator

ICL8038 Function Generator

ICL8038 Function Generator





Accurate LC Meter Capacitance Inductance Meter with 16F628 and LCD
Volt Ampere Meter with 16F876 Microcontroller and LCD display
 
Accurate LC Meter

Build your own Accurate LC Meter (Capacitance Inductance Meter) and start making your own coils and inductors. This LC Meter allows to measure incredibly small inductances making it perfect tool for making all types of RF coils and inductors. LC Meter can measure inductances starting from 10nH - 1000nH, 1uH - 1000uH, 1mH - 100mH and capacitances from 0.1pF up to 900nF. The circuit includes an auto ranging as well as reset switch and produces very accurate and stable readings.
PIC Volt Ampere Meter

Volt Ampere Meter measures voltage of 0-70V or 0-500V with 100mV resolution and current consumption 0-10A or more with 10mA resolution. The meter is a perfect addition to any power supply, battery chargers and other electronic projects where voltage and current must be monitored. The meter uses PIC16F876A microcontroller with 16x2 backlighted LCD.

50MHz 60MHz Frequency Meter / Counter with 16F628 & LCD
1Hz - 2MHz XR2206 Function Generator
60MHz Frequency Meter / Counter

Frequency Meter / Counter measures frequency from 10Hz to 60MHz with 10Hz resolution. It is a very useful bench test equipment for testing and finding out the frequency of various devices with unknown frequency such as oscillators, radio receivers, transmitters, function generators, crystals, etc.
1Hz - 2MHz XR2206 Function Generator

1Hz - 2MHz XR2206 Function Generator produces high quality sine, square and triangle waveforms of high-stability and accuracy. The output waveforms can be both amplitude and frequency modulated. Output of 1Hz - 2MHz XR2206 Function Generator can be connected directly to 60MHz Counter for setting precise frequency output.

BA1404 HI-FI Stereo FM Transmitter
USB IO Board PIC18F2455 / PIC18F2550
BA1404 HI-FI Stereo FM Transmitter

Be "On Air" with your own radio station! BA1404 HI-FI Stereo FM Transmitter broadcasts high quality stereo signal in 88MHz - 108MHz FM band. It can be connected to any type of stereo audio source such as iPod, Computer, Laptop, CD Player, Walkman, Television, Satellite Receiver, Tape Deck or other stereo system to transmit stereo sound with excellent clarity throughout your home, office, yard or camp ground.
USB IO Board

USB IO Board is a tiny spectacular little development board / parallel port replacement featuring PIC18F2455/PIC18F2550 microcontroller. USB IO Board is compatible with Windows / Mac OSX / Linux computers. When attached to Windows IO board will show up as RS232 COM port. You can control 16 individual microcontroller I/O pins by sending simple serial commands. USB IO Board is self-powered by USB port and can provide up to 500mA for electronic projects. USB IO Board is breadboard compatible.

ESR Meter / Transistor Tester Kit
Audiophile Headphone Amplifier Kit
 
ESR Meter / Capacitance / Inductance / Transistor Tester Kit

ESR Meter kit is an amazing multimeter that measures ESR values, capacitance (100pF - 20,000uF), inductance, resistance (0.1 Ohm - 20 MOhm), tests many different types of transistors such as NPN, PNP, FETs, MOSFETs, Thyristors, SCRs, Triacs and many types of diodes. It also analyzes transistor's characteristics such as voltage and gain. It is an irreplaceable tool for troubleshooting and repairing electronic equipment by determining performance and health of electrolytic capacitors. Unlike other ESR Meters that only measure ESR value this one measures capacitor's ESR value as well as its capacitance all at the same time.
Audiophile Headphone Amplifier Kit

Audiophile headphone amplifier kit includes high quality audio grade components such as Burr Brown OPA2134 opamp, ALPS volume control potentiometer, Ti TLE2426 rail splitter, Ultra-Low ESR 220uF/25V Panasonic FM filtering capacitors, High quality WIMA input and decoupling capacitors and Vishay Dale resistors. 8-DIP machined IC socket allows to swap OPA2134 with many other dual opamp chips such as OPA2132, OPA2227, OPA2228, dual OPA132, OPA627, etc. Headphone amplifier is small enough to fit in Altoids tin box, and thanks to low power consumption may be supplied from a single 9V battery.
 

Arduino Prototype Kit
RF Remote Control 433MHz Four Channel
 
Arduino Prototype Kit

Arduino Prototype is a spectacular development board fully compatible with Arduino Pro. It's breadboard compatible so it can be plugged into a breadboard for quick prototyping, and it has VCC & GND power pins available on both sides of PCB. It's small, power efficient, yet customizable through onboard 2 x 7 perfboard that can be used for connecting various sensors and connectors. Arduino Prototype uses all standard through-hole components for easy construction, two of which are hidden underneath IC socket. Board features 28-PIN DIP IC socket, user replaceable ATmega328 microcontroller flashed with Arduino bootloader, 16MHz crystal resonator and a reset switch. It has 14 digital input/output pins (0-13) of which 6 can be used as PWM outputs and 6 analog inputs (A0-A5). Arduino sketches are uploaded through any USB-Serial adapter connected to 6-PIN ICSP female header. Board is supplied by 2-5V voltage and may be powered by a battery such as Lithium Ion cell, two AA cells, external power supply or USB power adapter.
200m 4-Channel 433MHz Wireless RF Remote Control

Having the ability to control various appliances inside or outside of your house wirelessly is a huge convenience, and can make your life much easier and fun. RF remote control provides long range of up to 200m / 650ft and can find many uses for controlling different devices, and it works even through the walls. You can control lights, fans, AC system, computer, printer, amplifier, robots, garage door, security systems, motor-driven curtains, motorized window blinds, door locks, sprinklers, motorized projection screens and anything else you can think of.
 

Electronics-DIY.com © 2002-2024. All Rights Reserved.