Using the original schematic as a starting point, I reworked the electrical diagram and incorporated an A4988/DRV8825 module.
You can download a pdf file of the reworked schematic here: MagLoopTuner.pdf
The two jumpers in the schematic deserve a little explanation:
JP1 connects the sleep and reset pins of the A4988/DRV8825 module board. I’ve seen schematics where these pins are soldered together, but I preferred to use a jumper. This way you have the possibility to add a reset switch, or if you think it’s not needed, just bridge the two contacts.
JP2 was incorporated for future use. It connects the unused pin 19 of the Teensy 3.2 with pin MS3 of the A4988/DRV8825 module. Without this connection, the maximum resolution of the magnetic loop controller is a 1/8th step. With some extra coding, we could drive the stepper motor as precise as 1/16th step (with the A4988) or even 1/32th step (with the DRV8825). This coding is not yet done, and I’m also not sure if this fine stepping is useful for this project, but I thought it was a nice idea to experiment with it. So for now, you can leave JP2 open.
If you are not using end-stop switches, then there is no need for D2, D3, R25, R26, C19, C20, C21, C22 and T3.
Depending on the type or brand of the rotary encoder, the A or B phase can be reversed. However, VCC and G must always be respected. You can check the correct wiring of A and B when you scroll through the menu. Turning the rotary encoder clockwise must increase the menu option, the steps and the frequency. When this is correctly done, you can start checking the wiring of the stepper motor. In order for the backlash and auto-tune function to work correctly, the capacity must go down when you turn the rotary encoder clockwise.
Don’t need the SWR / power meter function? Then you don’t need R15, R16, R17, R18, C25, C26 and R20, R21 and R22 (and their corresponding switches) either.
Please check Loftur’s project page for a more detailed explanation, the BOM and building instructions: https://sites.google.com/site/lofturj/to-automatically-tune-a-magnetic-loop-antenna
For any inquiries or questions about the PCB, please send an email to email@example.com. Add my email address in your contacts to prevent my response email from landing in your spam folder.