Already have the hardware setup? Jump to the Software section.
All files required for manufacturing the PCB can be found here:
👉 PCB Manufacturing Files
| Part Name | Quantity | Designation on Schematic | Link |
|---|---|---|---|
| Barrel Jack for power | 1 | J1 (Barrel_Jack) | digikey |
| PinSocket headers for Arduino Nano | 2 | J3, J5 | digikey |
| PinSocket headers for TMC 2208 driver chip | 2 | J4, J6 | digikey |
| Induction sensor terminal block | 1 | J7 | digikey |
| Terminal Block for stepper motor | 1 | J2 (Screw_Terminal for motor) | digikey |
| TMC 2208 motor driver chip | 1 | None | digikey |
| Adafruit adjustable power supply (Run it at 18 Volts) | 1 | None | digikey |
| Induction sensor | 1 | None | amazon |
Follow the designators on this PCB to solder the parts above: (also have schematic for reference)
Final assembled PCB:
For motor connector reference (What's color code M1B, M1A etc)

Follow this github tutorial to Solder UART bridge on tmc 2208 chip: https://github.com/teemuatlut/TMC2208Stepper?tab=readme-ov-file
git clone https://github.com/LeoLin6/TurretBot.git
cd TurretBotIf you don't already have the Arduino IDE installed, download and install it from the official website:
🔗 https://www.arduino.cc/en/software
- Open Arduino IDE
- Go to:
File→Open→ Navigate toTurretBot/main/src/experiment_arduino/experiment_arduino.ino - Connect your Arduino via USB to your PC.
- Select the correct board and port:
Tools→Board→ Select the correct Arduino board (e.g., Arduino Uno)Tools→Port→ Select the appropriate COM port (note it down, you'll need it for the next step)
- Click Upload (the right-arrow icon) to flash the firmware to the Arduino.
- Make sure you have Python installed (preferably Python 3.x).
- Navigate to the script directory:
cd main/src- Run the script:
python experiment.py- Follow the terminal prompts for calibration and testing positional movement.
💡 Make sure the COM port in the script matches the one your Arduino is using.


