Author Topic: simple ramp generator  (Read 6124 times)

0 Members and 1 Guest are viewing this topic.

Offline electronics manTopic starter

  • Frequent Contributor
  • **
  • Posts: 686
  • Country: gb
simple ramp generator
« on: January 29, 2015, 09:27:22 pm »
i am creating a circuit that requires a ramp generator, it needs to be fairly high speed (4Mhz to about 20Mhz), it doesn't require a 555 timer as there are squire waves available in the circuit. can anyone help?

it does seem like a really dumbs question i know because i have been doing electronics for years
« Last Edit: January 29, 2015, 09:28:57 pm by electronics man »
follow me on twitter @get_your_byte
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: simple ramp generator
« Reply #1 on: January 29, 2015, 09:34:13 pm »
CCS charging up a capacitor.

20Mhz however is kind of high.
================================
https://dannyelectronics.wordpress.com/
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: simple ramp generator
« Reply #2 on: January 29, 2015, 09:36:14 pm »
Yes, even at 20 MHz a current source charging a capacitor is likely going to be your best bet. However, everything needs to move fast, and you're going to have to put a lot of consideration into things like switching (when you switch on/off the current source, you'll couple in charge through the capacitance of the switches...)

There were some old function generators that could take their triangle wave/ramp this fast - not many, but a few. Wavetek made a couple, IIRC. Look for service manuals for ideas.
« Last Edit: January 29, 2015, 09:41:08 pm by c4757p »
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: simple ramp generator
« Reply #3 on: January 29, 2015, 10:06:08 pm »
Think of a voltage source + resistor as a (less-than-ideal) ccs. So you just need a bjt/mosfet over the capacitor to discharge it at the desired frequency. The voltage over the capacitor would be your output.
================================
https://dannyelectronics.wordpress.com/
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 28328
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: simple ramp generator
« Reply #4 on: January 29, 2015, 10:08:55 pm »
i am creating a circuit that requires a ramp generator
Any active devices in the circuit already that could possibly be used?
Micro, ADC's etc?
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: simple ramp generator
« Reply #5 on: January 29, 2015, 10:12:54 pm »
Think of a voltage source + resistor as a (less-than-ideal) ccs. So you just need a bjt/mosfet over the capacitor to discharge it at the desired frequency. The voltage over the capacitor would be your output.

...or, you could put absolutely no thought into charge injection at all.

Why don't you try it, and get back to us?

I look forward to the "el cheapo ramp generator, ghetto style" thread.

Here's mine. More in there than "just" a BJT over a capacitor - I'll let you figure out what it is. And that's not even a very good ramp.
« Last Edit: January 29, 2015, 10:19:17 pm by c4757p »
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline w2aew

  • Super Contributor
  • ***
  • Posts: 1780
  • Country: us
  • I usTa cuDnt speL enjinere, noW I aR wuN
    • My YouTube Channel
Re: simple ramp generator
« Reply #6 on: January 29, 2015, 10:16:33 pm »
..as stated above, 20MHz is a bit fast, but with careful design choices, a constant current source into a cap is a good way to go.   Here's a video I did that uses this technique along with some diode switching.  This particular circuit won't likely reach 20MHz, but maybe it will spawn some thoughts and ideas for you:

YouTube channel: https://www.youtube.com/w2aew
FAE for Tektronix
Technical Coordinator for the ARRL Northern NJ Section
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: simple ramp generator
« Reply #7 on: January 29, 2015, 10:49:22 pm »
Here is what I meant:

5Mhz ramp, 1k/1n network, discharged via a bjt.

You can vary a few factors to get the desired results.

Adding a jfet will help linearity.
================================
https://dannyelectronics.wordpress.com/
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: simple ramp generator
« Reply #8 on: January 29, 2015, 10:50:49 pm »
Is that by any chance a "perfect" NPN model? Try sticking a realistic one that has all its capacitances in there.
No longer active here - try the IRC channel if you just can't be without me :)
 

Online Marco

  • Super Contributor
  • ***
  • Posts: 6718
  • Country: nl
Re: simple ramp generator
« Reply #9 on: January 29, 2015, 11:15:18 pm »
RF transistors have sub-pf range capacitances, doubt it matters much ... what the simulator won't simulate is that transistor blowing up, cause I'm pretty sure the discharge current is going to be in the Ampere range :)
 

Offline electronics manTopic starter

  • Frequent Contributor
  • **
  • Posts: 686
  • Country: gb
Re: simple ramp generator
« Reply #10 on: January 29, 2015, 11:32:13 pm »
i like w2aew's circuit, when it comes to speed i will try to get it to go as fast as i reasonably can
follow me on twitter @get_your_byte
 

Online Marco

  • Super Contributor
  • ***
  • Posts: 6718
  • Country: nl
Re: simple ramp generator
« Reply #11 on: January 30, 2015, 12:43:46 am »
You're going to need low capacitance Schottky diodes and a much smaller capacitor though (100 pf range, at which point you will get some feed through through the bridge).

Temperature stability will of course not be great (capacitance and current source change the slope, Vos on the comparator changes the thresholds).
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: simple ramp generator
« Reply #12 on: January 30, 2015, 12:54:48 am »
The r/c idea mentioned earlier is nothing more than an r/c (relaxation) oscillator used on mcus or dedicated oscillators -> that's another way to build it.

You can also approach this digitally: a counter + weighing resistor network gives you a precision ramp generator. It has the advantage of consistent waveform amplitude and good tuning range -> change the input clock and your output will be perfectly synchronized.
================================
https://dannyelectronics.wordpress.com/
 

Online IconicPCB

  • Super Contributor
  • ***
  • Posts: 1534
  • Country: au
Re: simple ramp generator
« Reply #13 on: January 30, 2015, 04:56:34 am »
This is nothing new... this kind of approach ( current source into a capacitor is used by modern flying probe bare board testers to measure capacitance down in the femto farad region ( lower limit approx 50 fF ) which is the capacitance of the a pad in the order of a couple of square mm.
 

Offline electronics manTopic starter

  • Frequent Contributor
  • **
  • Posts: 686
  • Country: gb
Re: simple ramp generator
« Reply #14 on: January 30, 2015, 01:07:49 pm »
The r/c idea mentioned earlier is nothing more than an r/c (relaxation) oscillator used on mcus or dedicated oscillators -> that's another way to build it.

You can also approach this digitally: a counter + weighing resistor network gives you a precision ramp generator. It has the advantage of consistent waveform amplitude and good tuning range -> change the input clock and your output will be perfectly synchronized.
that sounds quit good, there is already a high speed counter and clock in the circuit
follow me on twitter @get_your_byte
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf