element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
DIY Test Instrumentation
  • Challenges & Projects
  • Project14
  • DIY Test Instrumentation
  • More
  • Cancel
DIY Test Instrumentation
Blog DIY 100kHz VCO - Build & Test
  • Blog
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join DIY Test Instrumentation to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: navadeepganeshu
  • Date Created: 10 Aug 2021 5:39 PM Date Created
  • Views 5878 views
  • Likes 15 likes
  • Comments 15 comments
  • testing
  • diytestinstrumentationch
  • breadboarding
  • oscilloscope
  • diystuff
  • opamps
  • ee
  • project14
  • soldering
  • redpitaya
  • analog
Related
Recommended

DIY 100kHz VCO - Build & Test

navadeepganeshu
navadeepganeshu
10 Aug 2021

image

VCO -- A black box that provides an oscillating electrical signal whose frequency can be controlled by providing DC voltage input to it.

Voltage Controlled Oscillators are fairly popular circuits used as subsections in PLLs, Music Synthesizers, Test and Measurements for generating known signals, etc. From a little of what I had known, I thought VCOs are sophisticated RF/signalling blocks that are tiny and go into Integrated Circuits, Generators and RF sources. Recently, for my  Analog Circuits class assignment, I was going through this datasheet of LM393 comparator IC and surprisingly saw a VCO application circuit!

 

Me: Wait,....what? That's definitely pleasing. It looked like this:

image

(yes, nice catch. you've spotted a mistake in the datasheet circuit where both the outputs are shorted)

 

Me a noob -- grabbed the breadboard from my table drawer, a cheap old through-hole resistor kit and some LM393's on a SOIC-8 to DIP adaptor PCB which I had soldered long back with no purpose after getting a couple of LM393 chip samples from TI and rushed upon:

image

Overall this is a relatively simple high-frequency two-decade VCO design that uses 3 x LM393 comparators to generate square and triangular signals with tunable frequency based on the control voltage +Vc. It can be operated with a supply Vc of up to 30V DC and control voltage ranging from 250mV to 50V DC for adjusting the output signal frequency expected to be in the range of 700Hz to 100kHz.

image

LM393 SOIC-8 package comes as a dual comparator and so each block is 1/2 LM393. Here, Block2 is a square wave generator using the classic LM393 comparator as Schmitt trigger with non-inverting terminal feedback and inverting terminal gets Vc/2.

Over Block1, the voltage divider arrangement is put and because of this, half of the control voltage that is given in always goes to the non-inverting terminal of the OpAmp. The same level of voltage is maintained at the negative terminal too. This is to sustain the voltage across the first 100K as half of the control voltage.

Block 3 with an open-loop plain comparator takes reference of Vc/2 with respect to the Output1 and feeds it back to Block1 which controls charging/discharging of the capacitor in Block1 OpAmp feedback via a 100K resistor creating a slowly increasing and decreasing voltage at the output(triangular wave). Overall, all the networks have a sense of input control voltage +Vc and get control over the frequency of the output signal.

image

Wiring up,...wiring up more,....checking,...checking again,......that did work! (after long troubleshooting to finally find that pin short at the signal outputs)

I am using a supply of 24V DC and by adjusting input frequency control voltage +Vc between +12V to +24V DC, signal frequency up to 77kHz is observed!

 

imageimage

There is a lot of noise and ripple in here though, and I wonder if that has to do a lot with The breadboard's stray R, L, C effects. Isn't breadboarding good for this range of frequencies? What more good ways to quickly prototype a design? Cladboard? (wish I could reuse the components.......greedy haha). The datasheet spec did say a 100kHz range and I definitely wanted to try cranking up still further.

 

I got a piece of copper clad board, sanded out all the tarnish and planned a layout to fit in the two of SOIC-8 LM393 chips. Because this was a thing which I had never tried, I looked up at some videos on tips and tricks for cardboard prototyping. Prototyping oscillator on clad board by W2AEW, Techniques for Building Electronic Circuits by Leo's Bag of Tricks and shabazprototype designs on RF stuff were inspirational to see and learn.

imageimage

Cutting the board and scratching the layout was a bit painful for me without the right tools. A nice sharp acrylic cutter like this will do the job with extreme ease which I bought later on. After breathing some solder smoke and a couple of burnouts on my fingers, here it is!!!

imageimage

Now comes the testing,....did it meet the 100kHz mark? Watch out:

 

{gallery} Testing the VCO proto

image

image

image

 

The jitter is extreme and still has a lot of harmonics. Optimisation tips? Welcome.

I am using a RedPitaya STEMLab 125-10 as an oscilloscope and spectrum analyzer to test and measure signals. Here is a short video on VCO functionality. I am sweeping the input voltage and thereby output square and triangular signal frequency sweeps, hitting up the mark of 83kHz here.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

The old school method wins, It was fun!!!

  • Sign in to reply

Top Comments

  • navadeepganeshu
    navadeepganeshu over 4 years ago in reply to shabaz +4
    Oh, wow shabaz LM331 seems promising. The cost of LM393 based system after including all passives and effort of putting into the circuit might compensate for LM331's price and would render higher performance…
  • DAB
    DAB over 4 years ago +2
    Nice post.DAB
  • Jan Cumps
    Jan Cumps over 4 years ago in reply to navadeepganeshu +2
    This is great. w2aew has a few videos on making copper cladding easier.
Parents
  • DAB
    DAB over 4 years ago

    Nice post.DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • DAB
    DAB over 4 years ago

    Nice post.DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • navadeepganeshu
    navadeepganeshu over 4 years ago in reply to DAB

    Cool, Thanks DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 4 years ago in reply to navadeepganeshu

    This is great. w2aew has a few videos on making copper cladding easier.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • navadeepganeshu
    navadeepganeshu over 4 years ago in reply to Jan Cumps

    Very insightful ones, yeah. I search for some topics and his video dated 3yr+ pops up. Feels like: Oh, wow he has experimented and shared this a long agoimage. Awesome content to learn!!!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube