This project helps you plot the frequency response of a passive circuit.
It was originally built to find the resonant frequency of an LC tank formed by the secondary of a Tesla coil and parasitic capacitance.
A function generator provides the driving signal in a frequency sweep mode, while the MCU samples the period of the signal along with it's amplitude at the output of the DUT.
On top of that, the USART peripheral allows for setting some acquisition parameters through a computer, for example.
MCU Pin | Description |
---|---|
PA2 | USART2 TX |
PA3 | USART2 RX |
PA8 | TIM1 input capture |
PB14 | TIM15 input clock |
PB0 | ADC CH8 input |