- Connect your Raspberry Pi Pico pins:
- Button to GP0
- STEP to GP3
- DIR to GP2
- EN to GP4
- Connect Pico to computer while holding BOOTSEL button
- Pico will appear as a USB drive
- Copy
main.pyto the Pico drive - Disconnect and reconnect Pico (without BOOTSEL)
- Windows: Usually COM3 or COM4
- Linux: Usually /dev/ttyACM0
- Mac: Usually /dev/tty.usbmodem*
- LED should blink when code is running
- Button press should move conveyor
- Serial communication should show position updates
- If motor doesn't move, check EN pin connection
- If position tracking is wrong, check STEP_PER_POSITION value
- If button doesn't work, check PULL_UP configuration
Motor will respond to these commands:
- "move": Moves to next position
- Response formats:
- "moving_1": Moving to position 1
- "moving_2": Moving to position 2
- "moving_3": Moving to position 3
- "done": Movement complete