Skip to content

LeoLin6/TurretBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TurretBot for automated acoustic experiments.

Already have the hardware setup? Jump to the Software section.

Final Assembled PCB

Sourcing the parts

🧾 Fabrication Files

All files required for manufacturing the PCB can be found here:
👉 PCB Manufacturing Files

🔩 Component List

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

🔧 Assembly Instructions

Follow the designators on this PCB to solder the parts above: (also have schematic for reference)

 PCB

Final assembled PCB:

Final Assembled PCB

For motor connector reference (What's color code M1B, M1A etc) color code Image

Follow this github tutorial to Solder UART bridge on tmc 2208 chip: https://github.com/teemuatlut/TMC2208Stepper?tab=readme-ov-file

Software

1. Clone the Repository

git clone https://github.com/LeoLin6/TurretBot.git
cd TurretBot

2. Install Arduino IDE

If you don't already have the Arduino IDE installed, download and install it from the official website:
🔗 https://www.arduino.cc/en/software

3. Flash the Arduino

  1. Open Arduino IDE
  2. Go to:
    FileOpen → Navigate to TurretBot/main/src/experiment_arduino/experiment_arduino.ino
  3. Connect your Arduino via USB to your PC.
  4. Select the correct board and port:
    • ToolsBoard → Select the correct Arduino board (e.g., Arduino Uno)
    • ToolsPort → Select the appropriate COM port (note it down, you'll need it for the next step)
  5. Click Upload (the right-arrow icon) to flash the firmware to the Arduino.

4. Run the Python Script for Calibration

  1. Make sure you have Python installed (preferably Python 3.x).
  2. Navigate to the script directory:
cd main/src
  1. Run the script:
python experiment.py
  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors