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
Open Source Hardware
  • Technologies
  • More
Open Source Hardware
Blog Oscillator design
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Open Source Hardware to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: strb
  • Date Created: 8 Jan 2023 2:03 PM Date Created
  • Views 2117 views
  • Likes 11 likes
  • Comments 6 comments
  • colpitts
  • oscillator
Related
Recommended

Oscillator design

strb
strb
8 Jan 2023

I was surfing the net looking for inspiration to build something new to me when I stumbled across Building a Voltage-Controlled Oscillator (VCO) by shabaz .

His blog post inspired me quite a lot, but also showed me the amount of work and test needed to build something like this and since I have absolutely no experience in this field, I took a step back and decided to build a simpler oscillator.

Going back to university lessons, I brought back the one where we talked about oscillators and used it as base to design a Colpitts oscillator. Added a couple resistors for DC biasing my bjt and started designing it. Since it's just for learning, I don't have any stringent requirement. I'm shooting for an oscillation frequency around 10MHz and an output waveform that could resemble a sine.

After a couple iterations on paper I was happy enough with the result. After a quick verification with LTspice using a 2N2222 I was ready and impatient to build my circuit.

imageimage

Powered up the circuit and... nothing happened. The output sadly wasn't showing any oscillation.

Back to the paper (and the simulator), I realized I made some rookie mistakes:

  • First of all, 2N2222 used for the first simulation is nowhere similar to the D882 I'm using in the actual circuit. Using a similar bjt the simulation is correct and does not oscillate
  • Feedback capacitors value is too small: I miscalculated loading effect on feedback network thus obtaining the wrong feedback ratio
  • I did not include in my analysis the attenuation due to resistor network to bias my bjt instead of an ideal current/voltage source

After these corrections, I obtained this scheme:

This circuit no longer has the resonant frequency I initially hoped, instead it should resonate around 4MHz, which for me is "high enough". C3 in the scheme could be easily removed, but it was there from the previous revision and I did not remove it.

image

image

It works! Looking at the waveform in the time domain I was quite happy with the result: 500mVpp with an oscillation frequency just under 4MHz and no major distrortion.

FFT unfortunately tells me another story, with a calculated THD just over 4%. I guess it's fine, but I was hoping for a slightly better result.

Just for fun I decided to try measure the oscillation frequency using a DIY near field probe I made a couple years ago.

image

With the H field probe I was fortunate enough to be able to pick up a very faint signal, just enough to display first and second harmonic with the FFT.

image

image

image

Overall it was great fun and I've learned (once again! :) ) that it's better to not rush things (like I've done in the first revision of this circuit) just because I was impatient to see if the circuit works.

  • Sign in to reply
Parents
  • shabaz
    shabaz over 2 years ago

    Nice work! 

    That's actually good results, if you've got your second harmonic down by what looks about 26 dB. It's hard to optimise, it just takes experimentation, swapping out components etc, because LTSpice is only partially useful for oscillator circuits. Component books with loads of pF capacitors helps a lot, just sitting there experimenting all day! The 2N2222 will struggle to reach 10 MHz oscillation, due to limited fT value. The old BF199 NPN transistor is good for experimenting since it is TO92 package, but unfortunately it's hard to find now (it is probably available from ebay etc but they are probably not genuine which doesn't help!). Anyway since you're comfortable with surface-mount, the SOT-23 BFR92P is really nice, well worth getting a few of those for experimentation, and Farnell has loads of them in stock currently although I bet they often run out of those. You'll easily get that to function for 10 MHz operation.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • strb
    strb over 2 years ago in reply to shabaz

    Thank you for your suggestions! And you're right, second harmonic is about 26dB down.

    I looked at BFR92P and indeed it seems very very nice, I will probably buy some of those in my next order. BF199 looks nice too but I usually prefer SOT23 compared to TO92 package Slight smile.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • strb
    strb over 2 years ago in reply to shabaz

    Thank you for your suggestions! And you're right, second harmonic is about 26dB down.

    I looked at BFR92P and indeed it seems very very nice, I will probably buy some of those in my next order. BF199 looks nice too but I usually prefer SOT23 compared to TO92 package Slight smile.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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