There are two main methods of creating an analog waveform using a digital one. Due to various limitations of the Trinket Pro hardware the pros/cons are listed below.
- PWM driven Low Pass Filter
- Maximum analog waveform frequency between 3-6khz
- Only uses a single pin (with good fidelity with proper filter design)
- R2R DAC
- Maximum theoretical analog waveform frequency of ~2Mhz
- Uses mutliple pins (more for better fidelity)
Due to the fact that method 1 uses only a single pin the function generator could theoretically contain 8 analog channels whereas you would be lucky to be able to get 2 channels from method 2.
Given enough time I plan on using a mix of both methods 1 and 2, where I have a single high speed output line and multiple low speed outputs.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.