Electronics > Projects, Designs, and Technical Stuff
Very slow quadrature generator
Didgitalpunk:
--- Quote from: Ian.M on January 18, 2019, 01:35:59 pm ---A PPI display isn't much use unless you have something to plot on it, and most worthwhile data sources on the internet (e.g. weather radar) have already been converted to a rasterised format. Building a rotary scan radar or sonar system from scratch, is almost certainly well outside your capabilities, or you wouldn't be here asking about generating low Hz frequency quadrature sinewaves
OTOH if you take a fast enough MCU board with three reasonably fast DACs (min 8 bits for X, Y and 6 for intensity) you could build a very nice vector graphics terminal.
Another scope CRT based project that's well worth building is a semiconductor curve tracer. Depending on the tube persistence, you may be able to display more than the usual eight curves for the stepped parameter.
--- End quote ---
Indeed, the entire radar setup is WAAAAAY out of my reach. For now it's more of a project to learn to work with high voltages (~10kV for the crt acceleration) and have a "cool looking" thing in my room. The curve tracer is a good idea, I'm gonna be building what amounts to a basic scope anyways to drive the CRT, so I would only have to make the actual curve tracer after that.
Wolfgang:
Have you seen the curve tracers from ChangPuak ?
https://www.changpuak.ch/electronics/Curve_Tracer_advanced.php
BrianHG:
--- Quote from: BrianHG on January 18, 2019, 02:15:57 am ---I would use a cheap voltage output audio I2S stereo 24 bit DAC with a small 16bit or 32bit DSPic, using the PICs ADC if you want to sync to an external source reference sine wave. Search on this forum, we have already discussed making a true perfect sine and cosine waveform using only integer math available in any microcontroller with a 16 bit adder and 16 bit multiplier with access to the top additional 16 bits. Using a 24 bit stereo audio DAC running at 96Khz, you have no excuse about synthesizing a waveform which should roast anything under the sun well in-between 1Hz and 3KHz with only 2 ICs, 3.3v supply, for less than 4$ in parts. The circuit should perform well up to 20KHz.
However, you need to be able to program for microcontrollers in 'C'.
Perfect sine generator example using all integer math: (It will need adjustments for 3Hz and 24 bit amplitude)
https://www.eevblog.com/forum/microcontrollers/code-used-for-sine-table/msg1108123/#msg1108123
You wont need to store this table, just generate it on the fly...
--- End quote ---
Just 1 note, is you only need 3Hz, just use the simple floating point Sin() and Cos(), the MCUs are plenty fast today if you are only generating 2 sines with a minimum 32khz sample rate.
As for the Audio DACs, a stereo thru 8 channels I2S DAC from TI is only around 4$ today, and it internally up-samples as low as 32k source audio samples to 384k meaning less MCU processing clock cycles and no output filters.
With 24 bits, you plenty room to run a 10 to 16 bit sine with another 8-14 bits for digitally controlled deflection position alignment and amplitude. With this depth, you can also add a look-up table to correct linearity in your display/electronics.
Though, with some larger MCUs which can drive 1080p panels / or HDMI, add a 24bit ADC and you can make an all digital display curve tracer with on screen display.
Bud:
Digital phase splitter
https://goo.gl/images/8fNnRY
Followed by a 4Hz LPF on each shoulder to remove the harmonics
SiliconWizard:
--- Quote from: SilverSolder on January 18, 2019, 03:14:38 am ---An Arduino can easily do this - use two PWM channels and change the PWM duty cycle to slowly create the sine waves in the two channels.
Put a simple RC filter on each channel to smooth out the PWM to a nice, clean, slowly changing voltage to drive the scope.
--- End quote ---
Good point, I don't know what kind of specs the op requires though in terms of distortion.
I suggested an op-amp-based quadrature oscillator as a simple solution (and that gives an opportunity to learn for those that didn't know this topology), but if the requirements are not too stringent and the OP is familiar with MCUs, PWM would indeed be a very decent solution and pretty low-cost too. For signals up to a few Hz, you could use PWM at a few tens of kHz while still keeping a good resolution and requiring only simple RC filtering. Would be a lot more flexible than the above analog solution as well.
Note: If you're feeling adventurous and would like lower distortion than what you'd get with simple PWM, you may also implement a sigma-delta modulator. For signals up to a few Hz, even a modest MCU can do this if this is its only task.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version