This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
openbench:fgen [2007/04/13 04:53] ladyada |
openbench:fgen [2007/12/03 16:36] geekabit |
||
---|---|---|---|
Line 2: | Line 2: | ||
A completely open design for a function/waveform generator: hardware, firmware, software | A completely open design for a function/waveform generator: hardware, firmware, software | ||
- | for more info, read about [[|openbench:about]] | + | for more info, read about [[start|openbench]] |
For collected links, try [[http://del.icio.us/ladyada/dds|DDS link on delicious]] and [[http://del.icio.us/ladyada/fgen|Function Gen link on delicious]] | For collected links, try [[http://del.icio.us/ladyada/dds|DDS link on delicious]] and [[http://del.icio.us/ladyada/fgen|Function Gen link on delicious]] | ||
====== Notes & stuff ====== | ====== Notes & stuff ====== | ||
+ | |||
===== Design constraints ===== | ===== Design constraints ===== | ||
Line 17: | Line 18: | ||
* Sine wave | * Sine wave | ||
* Square wave (with variable PWM) | * Square wave (with variable PWM) | ||
- | * Triangle wave | + | * Triangle wave (with variable PWM?) |
* Sawtooth (possibly a modification of triangle wave???) | * Sawtooth (possibly a modification of triangle wave???) | ||
- | * arbitrary waveform (sync, envelopes, etc) | + | * Arbitrary waveform (sync, envelopes, etc) |
Frequency range: | Frequency range: | ||
* 1 Hz -> 100 KHz required (must cover audio ranges) | * 1 Hz -> 100 KHz required (must cover audio ranges) | ||
* 1mHz -> 10MHz is ideal (digital/analog ranges) | * 1mHz -> 10MHz is ideal (digital/analog ranges) | ||
+ | |||
+ | Output capabilities: | ||
+ | * 50 ohm/inf impedance | ||
+ | * 1mv -> 10V amplitude | ||
+ | * 0 -> 10V DC offset | ||
+ | * trigger output | ||
USB control? Panel control? Both? | USB control? Panel control? Both? | ||
Line 30: | Line 37: | ||
100mA is not a bad current capability to shoot for | 100mA is not a bad current capability to shoot for | ||
- | |||
- | 50 ohm/inf impedance? | ||
PCB is doublesided, 10/10 rule | PCB is doublesided, 10/10 rule | ||
Line 50: | Line 55: | ||
* 100 KHz or higher (must cover audio ranges) | * 100 KHz or higher (must cover audio ranges) | ||
* 1mHz -> 10MHz is ideal (digital/analog ranges) | * 1mHz -> 10MHz is ideal (digital/analog ranges) | ||
+ | |||
Line 74: | Line 80: | ||
Direct-Digital-Synthesis, currently popular. Basically: wavetable + 24 or 32 bit adder and sampling above nyquist to get precision waveforms. | Direct-Digital-Synthesis, currently popular. Basically: wavetable + 24 or 32 bit adder and sampling above nyquist to get precision waveforms. | ||
- | |||
* Pros: digital, precise, no PLL needed | * Pros: digital, precise, no PLL needed | ||
* Cons: hard to get high frequencies because of oversampling | * Cons: hard to get high frequencies because of oversampling | ||
Line 102: | Line 107: | ||
* Cons: 8 @ 20MHz -> low frequency output (20M/16samples/8cycles = ~150KHz), 8bit resolution | * Cons: 8 @ 20MHz -> low frequency output (20M/16samples/8cycles = ~150KHz), 8bit resolution | ||
Other possibilities include going with an SX instead of AVR: SX28 can be clocked up to 75MIPS (maybe give us 500KHz...but will draw an insane 100mA from 5V. jesus!) | Other possibilities include going with an SX instead of AVR: SX28 can be clocked up to 75MIPS (maybe give us 500KHz...but will draw an insane 100mA from 5V. jesus!) | ||
+ | |||
+ | **Idea #4**: A combination of idea #1 and idea #3. Take a simple AVR that is able to calculate waveforms, but not in realtime. Load the wavetable in some external RAM, and clock it at the desired speed. | ||
+ | * Pros: high frequency, adjustable waveform | ||
+ | * Cons: complex | ||
Line 123: | Line 132: | ||
* Pros: simple, regulated, ultra compact | * Pros: simple, regulated, ultra compact | ||
* Cons: expensive, noisy | * Cons: expensive, noisy | ||
+ | **Idea #4b** Build your own DC/DC converter, a bit like [[http://spritesmods.com/?art=ucboost&page=2|sprite_tm]] did. Have the processor generate the PWM needed for the converter. | ||
+ | * Pros: cheap, same as idea #4 | ||
+ | * Cons: noisy | ||
====== Planned versions ====== | ====== Planned versions ====== |