# Rpi zero w usb connection

**URL:** <https://klipper.discourse.group/t/rpi-zero-w-usb-connection/14569>\
**Category:** General Discussion\
**Created:** [March 1, 2024, 5:11pm UTC](https://klipper.discourse.group/t/rpi-zero-w-usb-connection/14569 "2024-03-01T17:11:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jroe](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@jroe](https://klipper.discourse.group/u/jroe)\
**Post date:** [March 1, 2024, 5:11pm UTC](https://klipper.discourse.group/t/rpi-zero-w-usb-connection/14569/1 "2024-03-01T17:11:33Z")

</div>

### Basic Information:

Printer Model: Ender 3 V3  
 MCU / Printerboard: stock  
 `klippy.log`

_Fill out above information and_ **_in all cases attach your_ `klippy.log` _file_** (use zip to compress it, if too big). _Pasting your_ `printer.cfg` _is **not** needed_  
_ **Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there** _

### Describe your issue:

…Trying to use a zero w as replacement for a pi 3B+. Used kiauh to install klipper, moonraker and mainsail. Everything seems to work with old klipper.bin and printer.cfg until time to connect. Kiauh indicates mcu is on /dev/ttyAMA0. Putting that into printer.cfg causes klipper to simply spin. klippy.log last few lines indicate it is waiting for a connection

"mcu ‘mcu’: Starting serial connect  
webhooks client 3038670272: New connection  
webhooks client 3038670272: Client info {‘program’: ‘Moonraker’, ‘version’: ‘v0.8.0-318-g9813011’}

“jroe@picam:~ $ ls -l /dev/serial\*  
lrwxrwxrwx 1 root root 7 Mar 1 10:17 /dev/serial1 → ttyAMA0”

It appears zero w doesn’t implement usb hotplug the same as 3 B+. Does anyone have a fix, maybe in the zero w?  
[klippy.log](https://klipper.discourse.group/uploads/short-url/niEVxYmfmjz33LXbMzd9tCmCDAX.log) (12.3 KB)

---

<div class="post-metadata">

**Author:** ![jroe](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@jroe](https://klipper.discourse.group/u/jroe)\
**Post date:** [March 1, 2024, 5:24pm UTC](https://klipper.discourse.group/t/rpi-zero-w-usb-connection/14569/2 "2024-03-01T17:24:24Z")

</div>

Fixed my own problem! Turns out I could disable OTG mode in zero w, sorry to waste your time but maybe this might help some other misguided soul.

---

<div class="post-metadata">

**Author:** ![mykepredko](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/mykepredko/32/2085_2.png) [@mykepredko](https://klipper.discourse.group/u/mykepredko)\
**Post date:** [March 1, 2024, 6:30pm UTC](https://klipper.discourse.group/t/rpi-zero-w-usb-connection/14569/3 "2024-03-01T18:30:00Z")

</div>

Maybe you could explain what you did? I’m curious to understand your solution.

---

<div class="post-metadata">

**Author:** ![jroe](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@jroe](https://klipper.discourse.group/u/jroe)\
**Post date:** [March 1, 2024, 7:25pm UTC](https://klipper.discourse.group/t/rpi-zero-w-usb-connection/14569/4 "2024-03-01T19:25:11Z")

</div>

sudo nano /boot/config.txt

add to bottom

```auto
dtoverlay=dwc2,dr_mode=host

```

save and reboot.

should fix it.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [April 30, 2024, 7:25pm UTC](https://klipper.discourse.group/t/rpi-zero-w-usb-connection/14569/5 "2024-04-30T19:25:45Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
