This is a test of a rack and pinion mechanism for a retractable antenna.
STL files: https://www.thingiverse.com/thing:461...
Code on GitHub: https://github.com/BipeFlyer/Antenna...
BOM:
Standard Size Continuous Rotation Servo. I modified an Airtronics servo to make it continuous, but anything like this will work. https://hitecrcd.com/products/servos/...
2 CLT1073/CYT1076 CYT1073/CLT1073 micro switches. https://www.amazon.com/Cylewet25Pcs...
https://www.amazon.ca/gp/product/B07D...
1 8x3mm magnet https://www.amazon.ca/gp/product/B089...