ATM/README.md

63 lines
4.3 KiB
Markdown
Raw Normal View History

2022-03-13 18:13:58 +00:00
# ATM
2022-04-05 18:16:56 +00:00
## Stepper-based Automated Tuning and Matching
Tuning and Matching of the resonator coil is an essential part of Nuclear Quadrupole Resonance (NQR) spectroscopy. Because unknown samples are often scanned over large frequency ranges, Tuning and Matching has to be performed frequently. For high Q probe coils using mechanically trimmable capacitors, this is a long and tedious task.
To overcome this issue, an automatic Tuning and Matching system was developed using widely available low-cost components. Stepper drivers control mechanically trimmable capacitors and a microcontroller measures the Return Loss at resonance frequency. The system is capable of Tuning and Matching of a resonator coil in a frequency range from 75 to 125 MHz. It can also measure the Return Loss of the probe coil at its resonance frequency. Therefore, a foundation has been laid for future implementation of broadband NQR scans using mechanical probe coils.
2022-04-05 18:41:57 +00:00
## What works
- Homing of the probe coil using the sensorless load detection of TMC2130 stepper drivers.
- A mechanically tunable probe coil can be tuned and matched in the frequency range of 75-125MHz.
- The Return Loss at single frequencies can be measured.
- The current resonance frequency of the probe coil can be measured.
2022-04-05 18:16:56 +00:00
## System overview
The ATM-system consists of multiple separate hardware components and multiple signal paths. One signal path is used to measure the reflection (characterized by the Return Loss) at a frequency with a fixed position for the tuning and matching capacitors. It is structured as following:
2022-04-05 18:52:49 +00:00
<img src="docs/img/system_overview.png" alt="drawing" width="500"/>
2022-04-05 18:16:56 +00:00
1. A frequency synthesizer outputs an RF signal to a filterbank.
2. The filterbank filters out harmonic components of the frequency \break synthesizer's output.
3. The filtered signal is guided to a directional coupler setup. The directional coupler is connected to the resonator circuit and decouples the forward signal and the signal reflected at the resonator circuit.
2022-04-07 05:39:12 +00:00
4. The forward and reflected signals are converted to a DC signal using a logarithmic amplifier.
2022-04-05 18:16:56 +00:00
5. An instrumentation amplifier takes the DC signals of the forwarded and reflected signal as differential inputs and outputs an amplified signal.
2022-04-07 05:39:12 +00:00
6. An ADC reads in the output of the instrumentation amplifier, which is a representation of the amplitude of the reflected wave.
2022-04-05 18:16:56 +00:00
Since the system also needs to be able to adjust the mechanically trimmable capacitors, stepper motors have to be controlled.
1. A microcontroller sends commands to two stepper drivers using a Serial Peripheral Interface (SPI).
2. Those stepper drivers control the steppers which are mechanically coupled to the the tuning and matching capacitors of the probe coil.
## Hardware
2022-04-05 18:41:57 +00:00
Schematics for the electrical circuit and mechanical housing can be found in the project directory.
2022-04-05 18:16:56 +00:00
2022-04-05 18:52:49 +00:00
<img src="docs/img/system_picture.png" alt="drawing" width="500"/>
2022-04-05 18:16:56 +00:00
## Install instructions
1. Download the project as a zip file and import it as a platformio project.
2. Connect your ESP32 microcontroller to your PC and flash the firmware onto it.
# Commands
The user can input different commands to the ATM-system using the serial interface of the ESP32. The general structure of such a command is a single character followed by a float value. The float value is only needed for certain commands as specified in the following table.
| Command Name | Character | Float Value | Float Range|
| :--- | :----: | ---: | ---: |
2022-04-05 18:41:57 +00:00
| Homing Routine | h | No | - |
| Frequency Sweep | f | No | - |
| Iterative Resonance Tuning | b | Yes | 35.0-260.0 |
| Measure Return Loss | r | Yes | 35.0-260.0 |
| Matching | m | Yes | 10.0-100.0 |
| Calibrate | c | No | - |
| Automatic Tuning and Matching| d | Yes | 35.0-260.0 |
2022-04-05 18:16:56 +00:00
## Future work
2022-04-05 18:41:57 +00:00
- Optimization for broadband NQR measurments.
- Implementation of electrical Tuning and Matching using varactor diodes.
- Automatic calibration to new probe coils.
2022-04-05 18:16:56 +00:00
## References
2022-04-05 18:41:57 +00:00
- [adf4351](https://github.com/dfannin/adf4351) by David Fannin was modified to be used with an ESP32 microcontroller.
- [TMC2130Stepper](https://github.com/teemuatlut/TMC2130Stepper) by teemuatlut was used for the TMC2130 Stepper drivers.
- [ArduiTaM](https://doi.org/10.5194/mr-1-105-2020) by Jouda et al. was an inspiration for the implementation.
2022-03-13 18:13:58 +00:00