Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 29th February 2008, 07:17 AM   (permalink)
Default Linear Ramp

Hey guys,

Im having a problem on designing a circuit that produces a linear ramp from 0V up to 6.5V, where u can actually control the ramp frequency. Can someone give ideas on this subject matter.
mahfuzmatyaacob is offline   Reply With Quote
Old 29th February 2008, 11:36 AM   (permalink)
Default

I'm unsure what you mena by 'ramp frequnecy', but I assume you mean 'saw tooth wave'. I believe a 555 timer chip can do this:

http://www.m.case.btinternet.co.uk/h...enerators.html

It uses the 555 in standard astable mode, but with a transistor to provide a constant current source to the charging capacitor. So it ramps up linearly. You can control the frequency simply by adding a pot to one of the timing resistors.

Blueteeth.
__________________
Inconsistency is the key to flexibility!
Blueteeth is offline   Reply With Quote
Old 29th February 2008, 05:39 PM   (permalink)
Default

Use the NE566.
http://www.genieelectrique.ca/docs_u...s/NE_SE566.pdf
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
Hero999 is offline   Reply With Quote
Old 3rd March 2008, 02:41 AM   (permalink)
Default

the ramp doesnt start from 0V. It start from 1.9V at the minimum value. Any adjustment i should make for the ramp to start from 0V up to lets say 6.5V?
mahfuzmatyaacob is offline   Reply With Quote
Old 3rd March 2008, 02:50 AM   (permalink)
Default

Did you use the schmatic (second one down) in the link I posted?

That will start at 0V. If you wish to make it 'stop' at 6.5V the I suggest a comparator (LM393 should do) connected to pin 4 of the 555 timer. Connect the output of the ramp generator (pins 2,6 and 7) to the _ of the comparator, and use a voltage divider on the + pin. I do'nt know what your power supply voltage is but I'm sure you can work out the resistor values.

Then the output of the comparator, with a pull-up resistor to VCC should connect to pin 4 of the 555.

Your ramp output 0-6.5v will be the output of the 555 timer (pins 2.6.7). All this does is reset the ramp (discharge the charging cap) when the threshold of the compartor is reached...in your case 6.5v. It will then discharge the cap to 0v, and start to ramp again.

I will post a schematic soon if I have time.

Good luck.

Blueteeth
__________________
Inconsistency is the key to flexibility!
Blueteeth is offline   Reply With Quote
Old 3rd March 2008, 03:04 AM   (permalink)
Default

Let me try again on your advice. I hope it'll work. Thanks man. Appreciate it
mahfuzmatyaacob is offline   Reply With Quote
Old 3rd March 2008, 05:13 AM   (permalink)
Default

Quote:
Originally Posted by Blueteeth
Did you use the schmatic (second one down) in the link I posted?

That will start at 0V. If you wish to make it 'stop' at 6.5V the I suggest a comparator (LM393 should do) connected to pin 4 of the 555 timer. Connect the output of the ramp generator (pins 2,6 and 7) to the _ of the comparator, and use a voltage divider on the + pin. I do'nt know what your power supply voltage is but I'm sure you can work out the resistor values.

Then the output of the comparator, with a pull-up resistor to VCC should connect to pin 4 of the 555.

Your ramp output 0-6.5v will be the output of the 555 timer (pins 2.6.7). All this does is reset the ramp (discharge the charging cap) when the threshold of the compartor is reached...in your case 6.5v. It will then discharge the cap to 0v, and start to ramp again.

I will post a schematic soon if I have time.

Good luck.

Blueteeth
The ramp in the second circuit in that link will not go to zero volts except with small capacitor values, where the propagation delay of the 555 is not fast enough to turn off when the cap voltage reaches Vcc/3. With large cap values, it will oscillate between Vcc/3 and 2*Vcc/3.
Below is a sawtooth oscillator which does a pretty good job of ramping between 0V and 6.5V. It's actually two monostables which trigger each other.
The two 555s could be replaced with a single 556.

Mahfuz, if this is for your A/D test fixture, it will not approach 50MHz. You might get a decent ramp at 50kHz.
Attached Images
File Type: png 555 ramp gen.PNG (31.7 KB, 18 views)
__________________
Ron

Roff is offline   Reply With Quote
Old 3rd March 2008, 06:00 AM   (permalink)
Default

Thanks Ron, but if i may ask, what is the purpose of that regulator? If its to produce a constant current, you already have the transistor for it? Mind sharing.. :-)
mahfuzmatyaacob is offline   Reply With Quote
Old 3rd March 2008, 06:06 AM   (permalink)
Default

Quote:
Originally Posted by mahfuzmatyaacob
Thanks Ron, but if i may ask, what is the purpose of that regulator? If its to produce a constant current, you already have the transistor for it? Mind sharing.. :-)
Study the LM555 datasheet. The 555 has an internal voltage divider with two thresholds, one at Vcc/3 and one at 2*vcc/3. In this circuit, the ramp cap charges until it reaches the upper threshold, where an internal flip-flop gets reset, discharging the capacitor.
You want the ramp to reset at 6.5V.
9.75V*2/3=6.5V. Hence the adjustable voltage regulator.
__________________
Ron

Roff is offline   Reply With Quote
Old 3rd March 2008, 07:00 AM   (permalink)
Default

Roff, I have tried to simulate the circuit you gave me, but it turns out to be errors on the connection. Is it because of my simulation program (PSpice) or what? Need you opinion on this. Attached the circuit diagram.
Attached Images
File Type: jpg test_circuit.JPG (58.1 KB, 13 views)
mahfuzmatyaacob is offline   Reply With Quote
Old 3rd March 2008, 03:16 PM   (permalink)
Default

Quote:
Originally Posted by mahfuzmatyaacob
Roff, I have tried to simulate the circuit you gave me, but it turns out to be errors on the connection. Is it because of my simulation program (PSpice) or what? Need you opinion on this. Attached the circuit diagram.
Do you get error messages from Pspice? What was the length (time) of your simulation? I don't see anything wrong with your schematic, except I would not set the pots to their maximum value. The pot to set the supply voltage (your Vin) actually needs to be about 30 ohms. For hardware, I would change the resistor in series with it to 680, or change the pot to 100 ohms.
I'm attaching the .ASC file for LTspice, which is what I used for simulation. You can just open this file with LTspice, and the schematic will appear, ready to simulate.
Attached Images
File Type: png 555 ramp gen wave.PNG (13.0 KB, 9 views)
Attached Files
File Type: asc 555 ramp1.asc (3.4 KB, 3 views)
__________________
Ron

Roff is offline   Reply With Quote
Old 4th March 2008, 12:39 AM   (permalink)
Default

Ron,

Thanks dude, seems like i need to install the LTSpice software.. Haha have to learn on how to use it, but anyhow thanks for your advice. need to find LTSpice library since there are certain libraries that are missing when you gave me the file. Thanks man for the help
mahfuzmatyaacob is offline   Reply With Quote
Old 4th March 2008, 03:12 AM   (permalink)
Default Linear ramp

I seem not to understand how does the LTSpice works, i mean the subcircuit. Based on the file you gave me, the software cant detect the LM317 device. I went searching around the forum on how the subcircuit works and it seems like you guys are editing/creating some sort of file to be rename as .sub file. Hmmm, confusing.....
__________________
-Mahfuz-
mahfuzmatyaacob is offline   Reply With Quote
Old 4th March 2008, 04:26 AM   (permalink)
Default

Quote:
Originally Posted by mahfuzmatyaacob
I seem not to understand how does the LTSpice works, i mean the subcircuit. Based on the file you gave me, the software cant detect the LM317 device. I went searching around the forum on how the subcircuit works and it seems like you guys are editing/creating some sort of file to be rename as .sub file. Hmmm, confusing.....
Sorry about that.
In the attached zip folder, unzip LM317.sub into C:\program files\LTC\swcadIII\lib\sub.
Unzip LM317.asy into C:\program files\LTC\swcadIII\lib\sym\misc.

I created that symbol. It doesn't come with the LTspice download, as you discovered.

You will have to close LTspice and restart it so the program can find these files.
Attached Files
File Type: zip LM317.zip (1.1 KB, 7 views)
__________________
Ron

Roff is offline   Reply With Quote
Old 4th March 2008, 06:29 AM   (permalink)
Default linear ramp

Hey Ron, thanks man, it works properly.. I never used LTSpice before and that is why i dont seem to understand the way the software works. But i guess from the overview of it, i think that this software allows you to create your own device based on your own specification. Again, thanks man for the help.. Appriciate that
__________________
-Mahfuz-
mahfuzmatyaacob is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
HS1101 capacitive humidity sensor; need nearly linear voltage to feed to a 1-wire ADC FirefighterBlu3 Electronic Projects Design/Ideas/Reviews 5 19th October 2007 11:06 PM
non linear signal to linear signal chandu13 Micro Controllers 7 4th March 2007 11:15 PM
Potentiometer link to linear actuator dermotcaf Electronic Projects Design/Ideas/Reviews 5 22nd January 2007 11:11 AM
Linear VCO's kieran.french Electronic Projects Design/Ideas/Reviews 15 10th December 2004 09:20 PM
linear glass scaler Maryam General Electronics Chat 1 29th August 2004 12:00 AM



All times are GMT. The time now is 08:27 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.