# Klipper Secondary MCU Arduino Uno MP6050 I2C CONFIG

**URL:** <https://klipper.discourse.group/t/klipper-secondary-mcu-arduino-uno-mp6050-i2c-config/10825>\
**Category:** General Discussion\
**Created:** [October 4, 2023, 11:20am UTC](https://klipper.discourse.group/t/klipper-secondary-mcu-arduino-uno-mp6050-i2c-config/10825 "2023-10-04T11:20:26Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Rafi](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@Rafi](https://klipper.discourse.group/u/Rafi)\
**Post date:** [October 12, 2023, 10:43am UTC](https://klipper.discourse.group/t/klipper-secondary-mcu-arduino-uno-mp6050-i2c-config/10825/8 "2023-10-12T10:43:23Z")

</div>

Your Uno should be on specified USB port(i use USB3.0), dont change it u need to attach it to specific USB port in your PC, like printer also.

U have attached it wrong(by-id) not works well.  
Probably u have printer attached wrong, and this way uno(nano in your case) will be same wrong setup.

First setup your printer right.  
I use UbuntuDDE.

So to check device look:  
plug in printer(always in same usb port)

sudo dmesg | grep usb

your printer should be present  
in my case its:  
usb 5-1.4: ch341-uart converter now attached to ttyUSB0

then u do:

ls /dev/serial/by-path/\*

in my case its:  
/dev/serial/by-path/pci-0000:05:00.0-usb-0:1.2:1.2 /dev/serial/by-path/pci-0000:05:00.0-usb-0:1.4:1.0-port0

and i have in my printer.cfg:

[mcu]  
serial: /dev/serial/by-path/pci-0000:05:00.0-usb-0:1.4:1.0-port0

start from there your printer.cfg file should look similiar to this.

Your printer in this case will be attached to same usb port always.  
Then u do same thing for your arduino.

I made arduino\_uno.cfg file and added to printer.cfg  
[include arduino\_uno.cfg]

and file looks like this:

[mcu nano]  
serial: /dev/serial/by-path/pci-0000:05:00.0-usb-0:1.3:1.0-port0

[mpu9250]  
i2c\_mcu: nano

[resonance\_tester]  
accel\_chip: mpu9250  
probe\_points:  
117.5, 117.5, 20(thats my center of bed your can be different)

If u have problems with flashing i will post u solution, but setup things like i told u first.  
Sorry for late answer. I will check it more often to help u a bit with this.

Before flashing do sketch to test your accelerometer.

I got on arduino uno connected to MP6050(for sketch and also for klipper):  
VCC to +5V  
GND to GND  
SCL to SCL  
SDA to SDA

Dont know how it should be connected on nano u should check it under ArduinoIDE  
and do proper sketch first. Make it working there will be easier.

---

_[View the full topic](https://klipper.discourse.group/t/klipper-secondary-mcu-arduino-uno-mp6050-i2c-config/10825)._
