Can’t read any MPU6050 accel data. I’ve got it on short leads, 2 twisted pairs, i2c seems to work on the pi, i2cdetect -y 1 shows it on the hex address 068, the pi secondary mcu seems to be running, i THINK i’ve got the various bits & bobs in the configs…
I tried several spares, all with the same result : comms appear to work via ssh, it’s got whois 0x68 written and I can set some of the configuration registers but get no data out on any of the data registers so i don’t know what to do next. (except buy an adxl345). I see plenty having the same issue and @mattaw seems to know his way around them. I wonder if it’s max baud rate vs cheap chips…
I see many people connecting the adxl345’s via an arduino nano instead of directly to the pi, is this just to give it usb connectivity so it can be swapped between machines & thrown into a drawer when not used, or is there some other reason ?
I think i’ve got one kicking around somewhere so could use that if it gives an advantage.
This is strange indeed.
I have multiple MPUs and ADXLs and had them connected via Orange Pi 3 LTS, Raspberry Pi 3B, Raspberry Pi Pico, Banana Pi BPI-M5 and BTT CB1 (here except the MPUs because I couldn’t get I2C to work on this beast)
I’d suspect that it goes wrong on system (Linux OS) level, as even the low level tools do not get something useful.
Yes, very convenient. Works with MPUs as well. Easily connects up to a Pi Pico for example.
Hi, Unfortunately I’ve created myself another problem. I’ve been attempting to connect to the accels via an arduino nano, and after multiple attempts think i’ve managed to flash that eventually … (after reverting to earlier version of avrdude … and after turning various compile options off to reduce the file size) but now i can’t seem to connect klipper host to the printer mainboard at all…
What I’ve tried :
I’ve disconnected the uno, commented out all the secondary mcu pi and nano config sections and all the accel and input shaper stuff, and i’ve tried configuring [mcu] to both the path and id descriptors returned by ls /dev/serial/by-id/ or …/by-path/ , so that in the attached log plus :
[mcu]
serial: /dev/serial/by-path/platform-3f980000.usb-usb-0:1.1.2:1.0-port0
Tried reverting to a previously working config file.
I’ve built a fresh klipper image and tried to install via sd & bootloader… nothing
I thought I’d accidentally flashed the nano .bin to the main board and screwed up its bootloader but i managed to revert to marlin from sd OK so that doesn’t seem to be the problem.
sigh why do you need to use an Arduino Nano?
A blue pill or Pi Pico is a handful of money but without the hassle of the Arduino 8bit crap.
Never tried this combination, so I’m not even sure if the options to reduce code size are giving you a working SPI + ADXL setup.
Your error that you are now receiving for the main MCU indicates that already on serial connection level, i.e. between the Linux OS and the MCU something is failing.
This is usually due to: