The Godfather talking
You think I am funny guy huh?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 30, 2024, 03:31:34 03:31


Login with username, password and session length


Pages: [1]
Print
Author Topic: Precision sine wave oscillator  (Read 9260 times)
0 Members and 1 Guest are viewing this topic.
darksky
Junior Member
**
Offline Offline

Posts: 51

Thank You
-Given: 183
-Receive: 5


« on: September 20, 2007, 08:23:59 20:23 »

I am looking for an idea for very accurate sine wave source at 50 hz - what is the best way
Logged
ipek
Junior Member
**
Offline Offline

Posts: 95

Thank You
-Given: 59
-Receive: 79


« Reply #1 on: September 21, 2007, 03:17:03 03:17 »

find
http://rapidshare.com/files/57131459/Phase_control-50hz.rar.html
may be
Logged
user112
Junior Member
**
Offline Offline

Posts: 85

Thank You
-Given: 6
-Receive: 139


Salut tuturor(hello to all)


« Reply #2 on: September 21, 2007, 03:45:51 15:45 »

sine wave generators informations http://www.interq.or.jp/japan/se-inoue/e_ckt18_2.htm
and a integrated circuit for this   http://www.fairchildsemi.com/an/AN/AN-42025.pdf
http://www.eetindia.com/ARTICLES/2001AUG/2001AUG29_AMD_AN2.PDF?SOURCES=DOWNLOAD
Logged
digitalmg
Junior Member
**
Offline Offline

Posts: 96

Thank You
-Given: 136
-Receive: 109


« Reply #3 on: September 22, 2007, 11:25:24 11:25 »

AD9833 from Analog Device 0.004 Hz resolution
Logged
aslan_korhan
Active Member
***
Offline Offline

Posts: 147

Thank You
-Given: 1
-Receive: 60



WWW
« Reply #4 on: October 29, 2007, 05:54:58 05:54 »

XR2206   simple and accurate.
Logged
localcrack
Active Member
***
 Muted
Offline Offline

Posts: 173

Thank You
-Given: 64
-Receive: 21



« Reply #5 on: November 18, 2007, 07:52:40 19:52 »

Use microcontroller such as PIC, define the Sine table then use  timer interrupt to generate the sine
of desired frequency.

check the example given below that is provided with CCS PCWH Compiler

/////////////////////////////////////////////////////////////////////////
////                           EX_SINE.C                             ////
////                                                                 ////
////  This program demonstrates digital to analog conversion by      ////
////  using the RTCC (timer0) and the Max517 chip to generate a      ////
////  sine wave with a period of 10Hz.                               ////
////                                                                 ////
////  Configure the CCS prototype card as follows:                   ////
////     Connect Max517 pin 1 to scope (output)                      ////
////     Also make the following connections:                        ////
////          Max517 pin     Protoboard                              ////
////              2            gnd                                   ////
////              3            pin C1 (also use pull up resistor)    ////
////              4            pin C0 (also use pull up resistor)    ////
////              5            +5V                                   ////
////              6            +5V                                   ////
////              7            +5V                                   ////
////              8            +5V                                   ////
////                                                                 ////
////  Jumpers:                                                       ////
////     PCB        pin A2 to RS232 RX, pin A3 to RS232 TX           ////
////     PCM,PCH    pin C7 to RS232 RX, pin C6 to RS232 TX           ////
////                                                                 ////
////  This example will work with the PCB, PCM and PCH compilers.    ////
////  The following conditional compilation lines are used to        ////
////  include a valid device for each compiler.  Change the device,  ////
////  clock and RS232 pins for your hardware if needed.              ////
/////////////////////////////////////////////////////////////////////////
////        (C) Copyright 1996,2003 Custom Computer Services         ////
//// This source code may only be used by licensed users of the CCS  ////
//// C compiler.  This source code may only be distributed to other  ////
//// licensed users of the CCS C compiler.  No other use,            ////
//// reproduction or distribution is permitted without written       ////
//// permission.  Derivative programs created using this software    ////
//// in object code form are not restricted in any way.              ////
/////////////////////////////////////////////////////////////////////////


#if defined(__PCB__)
#include <16C56.h>
#fuses HS,NOWDT,NOPROTECT
#use delay(clock=20000000)

#elif defined(__PCM__)
#include <16F877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)

#elif defined(__PCH__)
#include <18F452.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#endif

#include <max517.c>


BYTE CONST SINE_WAVE[200] = {
128,132,136,139,143,147,150,154,158,161,165,169,172,176,179,
182,186,189,192,195,199,202,204,207,210,213,215,218,220,223,
225,227,229,231,233,235,237,238,240,241,242,243,244,245,246,
247,247,247,248,248,248,248,248,247,247,247,246,245,244,243,
242,241,240,238,237,235,233,231,229,227,225,223,220,218,215,
213,210,207,204,202,199,195,192,189,186,182,179,176,172,169,
165,161,158,154,150,147,143,139,136,132,128,124,120,117,113,
109,106,102,98,95,91,87,84,80,77,74,70,67,64,61,57,54,52,49,
46,43,41,38,36,33,31,29,27,25,23,21,19,18,16,15,14,13,12,11,
10,9,9,9,8,8,8,8,8,9,9,9,10,11,12,13,14,15,16,18,19,21,23,
25,27,29,31,33,36,38,41,43,46,49,52,54,57,61,64,67,70,74,77,
80,84,87,91,95,98,102,106,109,113,117,120,124};

BYTE sine_index;

#int_rtcc
void isr() {

   set_rtcc(102);         // frequency of interrrupt = (clock/(4*divisor))/(256-reload)
                          //                 2029 hz = (20000000/(4*16))/(256-102)

   write_dac(SINE_WAVE[sine_index]);

   if(++sine_index==200) {
      sine_index=0;
   }
}


void main() {

  setup_counters( RTCC_INTERNAL, RTCC_DIV_16);
  enable_interrupts(INT_RTCC);
  enable_interrupts(GLOBAL);

  while (TRUE) ;
}
Logged
FriskyFerret
Hero Member
*****
Offline Offline

Posts: 560

Thank You
-Given: 513
-Receive: 360


Put it in, take it out.


WWW
« Reply #6 on: November 19, 2007, 09:14:43 21:14 »

Quote
I am looking for an idea for very accurate sine wave source at 50 hz - what is the best way

All depends on what you mean by "very accurate."

Do you mean:

1. Less than 1% THD "accurate."
2. NIST primary reference standard "accurate."

There's only several hundred thousand dollars difference between the two extremes. Maybe you have some specifications in mind?


Logged

Dancing pants and leotards, that's what I'm talkin' about!
northballs
Inactive

Offline Offline

Posts: 6

Thank You
-Given: 1
-Receive: 1


« Reply #7 on: November 20, 2007, 09:45:29 21:45 »

you could try wien bridge osc.
Logged
piclover
Newbie
*
Offline Offline

Posts: 29

Thank You
-Given: 27
-Receive: 98


« Reply #8 on: November 21, 2007, 02:10:53 14:10 »

ICL8038 (if I remember correctly) -  less cost then XR2026, or some of PIC12F... PWM + rc filter and voila  Smiley
Logged
Trishool
Active Member
***
Offline Offline

Posts: 113

Thank You
-Given: 9
-Receive: 9



« Reply #9 on: November 21, 2007, 02:54:03 14:54 »

I am looking for an idea for very accurate sine wave source at 50 hz - what is the best way
darksky,
What THD you require , I mean what is the criterion of precision for your application. And what voltage ratings and Thermal operating conditions , unless these conditions are known nothing could be said regarding accuracy.

Ts
Logged
darksky
Junior Member
**
Offline Offline

Posts: 51

Thank You
-Given: 183
-Receive: 5


« Reply #10 on: November 27, 2007, 05:05:09 17:05 »

I would like to achieve 0.01% or better - with an accuracy of a crystal.

Is this possibe?
Logged
Trishool
Active Member
***
Offline Offline

Posts: 113

Thank You
-Given: 9
-Receive: 9



« Reply #11 on: November 28, 2007, 12:59:30 12:59 »

I would like to achieve 0.01% or better - with an accuracy of a crystal.

Is this possibe?

Its not difficult to attain .01% , I can give you hints , BTW what Operating temperature range you desire?

Ts
Logged
darksky
Junior Member
**
Offline Offline

Posts: 51

Thank You
-Given: 183
-Receive: 5


« Reply #12 on: December 10, 2007, 12:56:27 12:56 »

Looking for 5- 30 C as a temperature and 50 HZ centre with xtal accuracy.

THD bettter than .01%

Thanks
Logged
aslan_korhan
Active Member
***
Offline Offline

Posts: 147

Thank You
-Given: 1
-Receive: 60



WWW
« Reply #13 on: December 10, 2007, 04:24:22 16:24 »

Use a TCXO and divide it to give 50Hz. Then filter it to give sine-wave...
Logged
kcwcc
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 37
-Receive: 3


« Reply #14 on: December 10, 2007, 06:26:52 18:26 »

Probably too many harmonics filtering a square wave...
Logged
belinao
Newbie
*
Offline Offline

Posts: 16

Thank You
-Given: 1
-Receive: 12


« Reply #15 on: December 11, 2007, 03:25:45 15:25 »

i used to make sine waves using the pwm from PIC. Just generate a sine table, and then send it to pics pwm every pwm cycle, then use a low pass filter on picĀ“s pwm, your table will be big but the result is very good (i used to use it for a nobreak).
Logged
Tre
Newbie
*
Offline Offline

Posts: 9

Thank You
-Given: 2
-Receive: 0


« Reply #16 on: December 13, 2007, 07:12:04 07:12 »

This depends on what kind of qualities you want and how much work you are willing to invest in it.  If you want a fairly accurate, cheap signal, then using a PIC or a 555 + filtering should be sufficient.  The next step above this would be to use a crystal/resonator but you will have trouble finding one at such a low frequency.  Lastly, if you REALLY need a good sine wave and are concerned about things like phase noise/jitter, then it is probably time to steal some RF tricks.  Generate two sine waves (Colpitts oscillator and a Colpitts VCO) and then use a mixer + filtering to generate a REALLY good 50Hz sine wave.  So again, without more information on what you want to do with this it is hard to suggest the proper route.
Logged
Trishool
Active Member
***
Offline Offline

Posts: 113

Thank You
-Given: 9
-Receive: 9



« Reply #17 on: December 14, 2007, 06:20:36 06:20 »

Looking for 5- 30 C as a temperature and 50 HZ centre with xtal accuracy.

THD bettter than .01%

Thanks

You need to develop very stable and precise power supply for this, You can make this with Wien bridge oscilllator, using OP270 or better opamps, Use two opamps one for generating the the sinwave and the other for amplitude stabilization . Also the power supply required is precise , use opams in your power supply to to correct drifts also a GND adjustiong loop. You also need to use a precise temperature compensated reference voltage generator to do that.

Below is the Oscillator sch for your reference
Hope this helps
Ts
« Last Edit: December 14, 2007, 06:25:46 06:25 by Trishool » Logged
8K51
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 86
-Receive: 40


« Reply #18 on: December 14, 2007, 10:56:40 10:56 »

Hi

Here is another way... 3 chips, no tuning  : 4060, 4013 and a switched capacitor filter

-A 3.2768 MHz crystal with a CD4060 gives 200Hz square wave,
-Two more flip flop gives 50Hz square wave.
-A well tuned high order low pass or band pass filter (switched capacitor for instance) should reduce THD to your requirements.
The clock for switched capacity filter could come from previous 4060. (6.4kHz for a 64Hz low pass filter) !!

Simpler than earlier MF10 you can use a modern small switched capacitor filter from Maxim, Linear...
I use MAX7426 or MAX7400 for post DAC filtering

Here is an application note where frequency divide is done by a small microcontroller
http://www.maxim-ic.com/appnotes.cfm/appnote_number/2081

Regards

« Last Edit: December 14, 2007, 11:19:05 11:19 by 8K51 » Logged
kcwcc
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 37
-Receive: 3


« Reply #19 on: December 14, 2007, 07:31:05 19:31 »

Wow...the venerable MF10...I had forgotten completely about that chip...hehehe...I used to use them all the time...
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC