The crux of this matter is that it is so simple once you've done it that explaining it seems redundant... Thanks for making this a complete tutorial, I got it working thanks to you. Sometimes I feel like the 3D printing community doesn't expect the less electronics literate to want to participate as well :D.
@Kregary42 Жыл бұрын
Thank you for your work, your tutorials are really great! I have very little knowledge about programming and I got an error after I did all your shown steps. Klipper says "Unknown pin chip name "adxl"". The solution for this was that I just have to rename the [mcu ADXL] into [mcu adxl]. I just want to pass it to others in case someone had the same problem. By the way, I used an RP2040 zero, it is a little bit smaller that the RPi Pico. It seems to be almost identical to the RPi Pico. No pins have to be changed in the programming. Happy printing! 😜
@CanuckCreator2 жыл бұрын
Quick additional TIp, instead of using something like winSCP to get the klipper.uf2 file off the RPI run cp out/klipper.uf2 ../klipper_config/klipper.uf2 after creating the firmware flash file, this will copy the file to the same director as your printer.cfg file and you can just download it from the klipper interface webpage
@glabifrons2 жыл бұрын
You'll get a similar error the first time you run the command as you received at 11:23 due to a bug introduced in Klipper several months back. It always fails on the first try and works after that. I found the exact commit that caused the problem, but as far as I know, they still haven't fixed it. Nice video, by the way... you went into even more detail than I did on my write-up. I tried to link to it, but even mentioning the site name gets my post auto-deleted. Just google "Raspberry Pi Pico as a secondary MCU for resonance testing working!". There's good discussion in there about how Klipper identifies which group of SPI pins are in use, among other things. If you use a ribbon cable instead, you can use 3D printed snap-together case that allows you to press the button as needed. It's linked in the above mentioned thread.
@yaVDRgda2 жыл бұрын
No need to use another computer and winscp or any other copy method. Your Raspberry Pi is running a very sophisticated operating system, named Linux, that can flash the pico without any help. Just hold the boot button on the pico and connect it to the RPi. Now mount the pico by using 'sudo mount /dev/sda1 /mnt'. Next copy the flash file: 'sudo cp ~/klipper/out/klipper.uf2 /mnt/' and umount the pico 'sudo umount /mnt'. Ready!
@ashleywhitehead37102 жыл бұрын
Doesn't work
@henniero2 жыл бұрын
Great. Thanks! Using an ADXL has always been a big hassle for me as I have a display installed on my Raspberry PI. I will definitely implement this method.
@robsligter15772 жыл бұрын
Same for me
@aleksaggor9 ай бұрын
Thank you for making this tutorial, it made the integration way smoother than it would if Id had to do it all based on the documentation :)
@TechBuild2 жыл бұрын
Using this approach is a great solution if one is using an old laptop or PC instead of a Raspberry Pi due to the shortage.
@DouglasFish Жыл бұрын
This is a no brainer compared to using headers for a pi; I love it.
@vanlife42567 ай бұрын
Awesome video! Thank you for your contributions to our 3D Printing Community
@P1-Engineering2 жыл бұрын
Great stuff! I use the Zero 2W on all my printers with a screen which goes directly on the GPIO pins. So for input shaper I always had to disassemble the casing, remove screen etc etc. Now I have a USB hub to the Zero 2W and connect the Pico!.
@Tuxedo2680 Жыл бұрын
Thanks Nero for pointing me to the workaround I needed to get input shaper to work on my BTT-CB1 equipped Trident. I can now confirm that it works perfectly. The Pi Pico dongle is a convenience if you have a Rpi in your printer but it is a necessity if you have a CB1.
@therealjamescobb2 жыл бұрын
Great idea to use a pi pico as another MCU specifically for this! You need an affiliate link for the components listed. I would buy an adxl as im in need.
@MakerMeraki2 жыл бұрын
This is a great solution for using an ADXL on multiple printers!
@rahsaankcole2 жыл бұрын
This is awesome. I run 5 Mainsail machines from a i5 desktop running Ubuntu. This will allow me to run input shaper on all my machines without connecting to the SPI on the SKR 1.4turbo board. THANK YOU SO MUCH!!!! Changes everything.
@rahsaankcole2 жыл бұрын
Think I am going to make a plug for the ADXL's and permanently mount one to each machine.
@prestonmorris6332 жыл бұрын
Have you been successful in this yet? I'm also looking at the same thing but just getting started on the switch to klipper
@PhatToni Жыл бұрын
Thanks man. I used this to get my USB mellow fly working with the following changes. Thanks again cs_pin: adxl:gpio9 spi_software_sclk_pin: adxl:gpio10 spi_software_mosi_pin: adxl:gpio11 spi_software_miso_pin: adxl:gpio12
@HackMonkey2 жыл бұрын
I did this exact setup a couple weeks ago. So much handier to use USB to connect! Now I need some universal way to securely attach the accelerometer to each machine.
@philr68292 жыл бұрын
Another well done video! If you are looking for ideas: I just recently switched my case light from the MCU to a WEMOS D1 Mini with WLED. One quick section added to moonraker config file and now Macros can send commands to WLED. WLED has a web interface so you can set any number of presets for klipper to call up. Can have multiple strings (like case lights and SB) and control all from the WEMOS. Very simple install and significant increase in options/ability.
@JosephStory2 жыл бұрын
I have one of these accelerometers laying around from 2015 when I was running a head tracker with Elite Dangerous. Electronics hoarding finally pays off.
@jcfpv3454 Жыл бұрын
Wow how I have struggled so much getting klipper up and running has been a long journey but hopefully in time will prove to be a great using fluiddpi
@TechExploresNYC2 жыл бұрын
Thanks, I don't have a raspberry pi on my printer because of the shortage and for the life of me I can't activate the SPI pins on an alternative board, this is a great alternative
@prestonmorris6332 жыл бұрын
So I managed to get my klipper up and running on a desktop with 2 printers. I have noticed that if I include the adxl.cfg in my printer.cfg for both printers one of them does not want to connect to klipper. I'm assuming it cannot run like that on both printers. So far I'll add the include adxl.cfg as I need to but I thought I'd throw that tip out there in case someone needed it. Thanks again for the video. It's been very helpful diving into a very deep subject and not get too lost.
@JakusJacobsen2 жыл бұрын
Thanks for doing this. It made it super easy to install on configure the Fysetc portable input shaper by just doing it along with you, with some of the steps already done for me. I can recommend the Fysetc kit so far, really good.
@tavarisjones5512 жыл бұрын
This was great info. I'm running klipper on an intel nuc. So I was trying to figure out how to manage input shaper with an adxl. Just ordered my pico. Looks like these instructions will solve my problem.
@lightburnsoftware71892 жыл бұрын
This was a great video. Hoping to use this setup when the Swichwire build is finished :). Much nicer than screwing around with the Pi pins each time.
@substratum3d Жыл бұрын
This is awesome. It's simpler than I was thinking it would be. I just built my first voron 2.4 and have really grown to like klipper as I set it up. I'm planning on switching over my other printers to klipper over time and with this I'll be able to replace some of my full blown pi's with zero w's. Thanks man and keep the great videos coming.
@starkastic2 жыл бұрын
Using the old ethernet cable was also a great tip. I have a ton of ethernet cable with broken connectors that I could easily cut up and make use of.
@BarrettAnderies2 жыл бұрын
In case anyone has the same problem, I was getting the "Invalid adxl345 id" error despite having the correct wiring. Just run the ACCELEROMETER_QUERY twice and you'll see that on the second time it's working fine... I have to do this every time I use this method, but it works fine.
@andrewfazio73302 жыл бұрын
I've tried that and still get the error.
@rock4401 Жыл бұрын
I had to try it twice and it did work the second time... thanks for the info! I read this after I made my second unit thinking the original was bad, and both units required two query commands. So they are both working after all.
@ryanarhart4994 Жыл бұрын
Any clue what causes this? Did you ever find a fix?
@polycrystallinecandy2 жыл бұрын
Every time he calls numpy as "num pee" I laugh so hard 😂💀
@timmturner Жыл бұрын
Num-Pie 😊
@recer_10 ай бұрын
You dont program in pee-thon?!
@b0ggyb338 ай бұрын
So many people do that..
@polycrystallinecandy8 ай бұрын
@b0ggyb33 Don't tell me they also call PyPi as peepee
@b0ggyb338 ай бұрын
@@polycrystallinecandy superb
@jodyking72782 жыл бұрын
Great timing! Was planning on doing this tonight.
@DustinGorman Жыл бұрын
Hey thanks Nero. I really appreciate the video. I appreciate all the hard work you do bringing us this type of content. It's super helpful! I currently only have 1 voron, a 0.1, still in pieces in it's box. In a couple months I'll be getting a 2.4 350mm, then I'm done getting FDM printers. I'll have 10 at that point. I really like this idea. I've tossed up the idea of converting all of my Prusa machines over to Klipper, but still weighing the pros and cons. Anyhow, thanks again man, you're awesome!
@chucktaylor5878 Жыл бұрын
How do I like the smash button? I can't even find the smash button! (13:50) Great video it helped me a ton!! As an added bonus I got a nice little chuckle at the end with the whole like the smash button thing.
@blake_schwanke2 жыл бұрын
Probably going to utilize this. thanks! I've got a bunch of picos laying around.
@andrebonneau87382 жыл бұрын
Love your video ! I made the Pico input shaper and got it to work ! One thing that I got hung up on is that the Pico was not seen by the Pi and the fix was to reboot the Pi also the Acceleratometer_query gave me an invalid response on the first try .
@jay1st1st2 жыл бұрын
I used some mpu6050 using i²c bus. Connected them directly to the mcu board, and i can move them from one printer to the other, only the cables stay in place. Or i could add a plug to move the wiring as well.
@jose91cr2 жыл бұрын
Your channel is amazing, man! I've watched a few videos already and they have all been great. Thank you for all the work you put into them
@AdventurePrinting2 жыл бұрын
I missed yesterday subscribers live, damn, but thanks for all of your content. I’m klipperizing here and there, raspberry shortage permitting, and I will use imput shaping for all of those printers and this video is absolute gold. Still no Voron tho, need to save a bit more..
@aeiounix2 жыл бұрын
I put pin 4 and 5 on gpio4 and gpio5. Good times. Video is great help!
@davethetaswegian2 жыл бұрын
Great stuff, I was just about to wire up an ADXL to the RP 3B of a printer I am upgrading. But I have some Pi Picos in a draw somewhere, so definitely going to use this method instead. Thanks.
@wayoutthere9072 жыл бұрын
Thank you for all your knowledge sharing over the years!
@CanuckCreator2 жыл бұрын
Glad it was helpful!
@KatazuiOfficial2 жыл бұрын
Just got my first soldering kit, I’m excited to start my first build 😃
@MattJonesYT Жыл бұрын
Requesting a follow up video on this topic using the 'FYSETC USB Portable Input Shaper' which looks like it can do the whole job without needing an extra pico or mcu.
@okol52112 жыл бұрын
if you have bigtreetech octopus you can connect the adxl345 direct to it and assign a pin in klipper just like any other devices
@HReality2 жыл бұрын
Ordered.. at only 10.00 can’t go wrong. Going to try this with my current 2.4 :) once it’s built
@fbwa64522 жыл бұрын
Nice but the mod for molex micro fit costs few additional connectors and it’s gonna be in front skirt of your printer. Also no need to comment out the line. Works as a charm especially with 6pin molex connector :)
@lesbac11 ай бұрын
Thank you sir!
@substandard649 Жыл бұрын
I'm new to Klipper and your videos have been gold! I was wondering if its also possible to use an esp32 or esp8266 for the secondary MCU instead of the Pico?
@eclypse3d2 жыл бұрын
On mine I had one pin initially that did not solder well enough so when I pushed on the DuPont connector it pushed the ping up every so slightly and separated the solder joint from the pcb just a hair. I pulled it back down till the pin started to pull through the hole just till it was just about flush, resoldered it and as I was soldering I pushed the pin back through it to make the connection. After that everything was fine, but I did experience what Ludwig below did and noted that it failed on my second printer on the first try, I redid the query a second time and everything was fine. =)
@jcfpv3454 Жыл бұрын
I am new to klipper but so far really enjoy it, definitely a challenge but well worth it so far I was wondering if you would do a video on macros of klipper I haven't seen many that i trust.
@creativitybyph2 жыл бұрын
Looks nice :) Personally I've just lengthening the pins in the pie to an easy to attach place. Much like you've done with the male-female USB but with another connector. That way I'll skip the pico :)
@Blueyedevil2702 Жыл бұрын
If you use a thin client (instead of the Pi), like I do, this video is gold ;)
@giannism71572 жыл бұрын
Great video!!! I have klipper running from on an old laptop with debian via docker(prind) from my understanding i can run input shaper with this setup as the only thing i miss with my setup is the GPIO of the raspberry, Please correct me if i have misunderstand something. Thank you.
@vignesh_waran2 жыл бұрын
Hi.. I also have same qn. Are you able to do it without raspberry pi ?
@GregsMakerCorner2 жыл бұрын
Such a great idea! I love the portability of it. Thanks for sharing the video, definitely going to give this a shot.
@arvenebinny Жыл бұрын
Hi.. thanks for this clearly explained video. Just wondering if we have to update the pico if there is a newer version of klipper to make it connect to the mother board?
@gold-junge912 жыл бұрын
thanks for this clever idea This saves a lot of cable management
@kaizenwasher3 Жыл бұрын
can use an arduino oard instead like an uno or such coz shortage here picos as well
@priuxls Жыл бұрын
Thanks for the video, but when using an Mellow Fly-ADXL345 you need to change cs_pin: PIS:gpio13 to cs_pin: PIS:gpio13
@doogle41442 жыл бұрын
Speaking of unavailability of electronics, can you make a video on running multiple instances of Klipper to run different printers on a single RPi?
@radian23232 жыл бұрын
So fancy with the subscribe animation.
@scharkalvin Жыл бұрын
I have an Adafruit rp2040 itsybitsy (same processor as Pico) but smaller board. Guess I can use that too.
@vintagehomecomputer2536 Жыл бұрын
Hi Nero nice video I have one question about the firmware for this pico, you say je need the last klipper updates on your pi to make the file for the pico, do we have to update this pico every time when klipper updates or is this a one time install thanks in advance
@aivkara2 жыл бұрын
Thanks mate, you saved me a ton of time! Your instructions were spot on. I used this with an FYSETC Portable input Shaper board, and it worked first time. Grasias!
@redboom9874 Жыл бұрын
hey man, I am also using the fysetc portable, but got this error Unknown config object 'adxl345 usbadxl' I am using the PIS.cfg fysetc provides, what gives?
@aivkara Жыл бұрын
@@redboom9874 ooo, I can't remember what I did to make it work. What is your hardware setup?
@redboom9874 Жыл бұрын
@@aivkara never mind, I got it working LMAO. had to alter their PIS.cfg fysetc included, and it worked. thank you however. the setup btw is a voron trident (formbot)
@GCheung552 жыл бұрын
Thanks for the video on this topic! I plan on adding adxl to my Ender 3. Do you have any advice for handling two adxl boards to a pico board?
@rukidding75882 жыл бұрын
WARNING! If, like me, you had already set up Input Shaper by attaching your ADXL directly to the Pi, make sure you comment out or delete the [adxl345] and [resonance_tester] sections in printer.cfg. They have been moved to the new config file: e.g. ADXL.cfg. Failing to do this will cause Klipper to error out. I can also confirm that, the first time you run ACCELEROMETER_QUERY it may report "invalid adxl345". If it fails a second time you may have a wiring issue.
@wanderlust_vlad9 ай бұрын
Thanks a lot for the guide! It seems that I'm going to buy a Pico =)
@mikewhite2991 Жыл бұрын
awesome! great video! But for anyone doing this ATM the ls /dev/serial/by-id/* command didnt work to find my mcu address on my rpi4, i think this is common until an update rolls out
@EmptyPocketProductions Жыл бұрын
Just subbed, Nice work. When using input shaping, Do you alternate between the head and the bed on a bed slinger. Or use 2 adxl's at the same time? And could you attached 2 adxl's to the pico or arduino nano? THanks!
@robertjamessantos97082 жыл бұрын
Hi, great video. quick question on attaching the adxl345 to the printer. I have a ender 5 plus and im attaching the adxl facing forward. what will be the graph i need to see when doing x axis and y axis? hope im making sense. thank you
@corey3122 жыл бұрын
how would you do this with a pi zero w thats already using the usb for communication?
@fkncobra2 жыл бұрын
Great video as always. Setting up klipper for the first time on my very first printer, with a thin client (rpi zero not available everywhere where I resides) this gives me hope to try rpi pico as secondary mcu on usb with adxl345.
@bellers852 жыл бұрын
Your videos are always very informative and thanks for creating them. What advantages does this give you over extending the raspberry pi's gpios and plugging the adxl directly in? I'm not hating, just want to understand.
@LightCarver2 жыл бұрын
I think the biggest advantage comes in when you have Pi versions without the pins on some of your machines. Even if you have all full size Pi with header pins, you would have to make an extension for every one to achieve the same convenience.
@justinsfunthings8263 Жыл бұрын
he mentioned this already at the beginning of the video. he wants portability, the ability to move the device to other printers easily, and without having to go back under the printer.
@Arek_R. Жыл бұрын
There are 2in1 boards which include both chips and require no soldering
@MihaiDobrin882 жыл бұрын
i had the same issue and i used 22awg cables from pi inside the printer connected to the pins for adx and at the other end i used male dupont connector basically is a kind of extension cable and it works just fine is over 1m in total extension + cable. i think is easier than reflashing all the time the pico. is the exact concept u did with ur usb cable i just used dupont directly from pi where adxl is supposed to go
@tigerfacexxl2 жыл бұрын
Hey Nero, thanks for this very nice video! Do you have a solution for a pi zero 2 w? When i try to connect a usb hub to the pi in order to use a 2nd device like a cam or now the pico as per your video, I loose the connection to the printer. If it is possible to connect more than 1 device to the pi zero 2w it could be cool to make a short video on the setup or to discuss on your Q n A stream you mentioned lately...
@SchwettyBawls Жыл бұрын
I have a couple RasPi 0W boards from before the shortages. Will that work the same way, or do I need to do anything differently?
@dodong_daniel2 жыл бұрын
Because the INT1 and 2 are not used, you can solder 1 with a pin and leave 2 empty. Then if you fill the location for INT1 in the Dupont connector, it's impossible to connect the Dupont connector the wrong way around.
@DGworksIvan2 жыл бұрын
strangely my adxl is invalid in klipper, but with the same wiring i can get a reading on a arduino sketch... i never get input shaper working
@GigaDanMan Жыл бұрын
Did you ever get around to designing an enclosure? 😅 Also, I just have 1 printer. Is there a reason I shouldn't just leave the ADXL attached to the Pi?
@MrRobertlbrown22 жыл бұрын
Nero, thank you for your videos. I just stumbled across them but after watching, you gave me the needed push to install klipper. I have an Anycubic Vyper, pi4, Miuzei display which occupies the gpio pins and want to install two ADXL’s. My question is this, since I do not want to mess with the gpio on the pi4, could I use two pi picos, with an ADXL on each, then plug these into the pi4? Overkill yes, but I want to permanently install the ADXL’s and not have the aggravation of moving them around. I have a second Vyper I will be installing klipper on, as well as a Kobra Max. Still looking at options for the max.
@KwadFan2 жыл бұрын
A quick mention. On mainsailOS you have not to install Input Shaper dependencies, they are already installed :)
@AG-cg7lk2 жыл бұрын
Good idea. I might try something similar with a spare klipper expander board I have - edit: no go.
@lopezbaron2 жыл бұрын
Can you please do a display one with the pico.
@hobbyistnotes2 жыл бұрын
Thanks! Perfect setup for Pi-Zero!
@whocares98472 жыл бұрын
Super video! I presume that this will work on a RPI-ZERO as well.
@hobbyistnotes2 жыл бұрын
@@whocares9847 Nope it's not. I have tried and same issues as with GPIO version, RPI still used to analyze the data. Unless you have RPI W Zero 2 with faster Processor.
@vignesh_waran2 жыл бұрын
@@hobbyistnotes is it possible to use our laptop as raspberry pi ? for using input shaper.
@hobbyistnotes2 жыл бұрын
@@vignesh_waranYes, you can even use VirtualBox to run FluiddPi or Mainsail. Over all RPi Zero W is powerful enough to run printer with configured shaper but in stock it's not strong enough to do shaper calibration and calculation process, I've seen people overclock Zero W and it helps to solve this issue. Personally I use RPI 4 to get shaper values and than run printer on Pi Zero W (1gen)
@vignesh_waran2 жыл бұрын
@@hobbyistnotes Thanks for the reply.
@sanderveenman5992 жыл бұрын
i followed your steps but for some reason i do not get a second MCU to show up in the mainsail dashboard. when i run ls /dev/serial/by-id/* i do see it, but after adding it in my printer.cfg, it does not show up.. any thoughts?
@NickChamberlain98010 ай бұрын
Is it possible to have multiple adxl345 attached to one pico? New to Klipper and I'm looking at setting up input shaper but interested in the idea of leaving it in place on the printer
@Mike_Neukam2 жыл бұрын
@NERO 3D Thanks for the video. I left a comment on your part 7 live stream with details on fixing the display neopixel config. If you haven't seen it, check it out.
@dclisboa792 жыл бұрын
Hi, first I would like to congratulate you for your work. I have a doubt, could you tell me if the ERCF (Enraged Rabbit Carrot Feed) works well with the Raspberry Pi3? Do you have any studies done with the Pi3? Or would it be better with the Raspberry Pi4? Thanks
@Altirix_2 жыл бұрын
id just get ethernet connectors and a cheap breakout pcb to convert the rj45 to 8 dupont connectors. wire up the ethernet port to the pins used for the adxl on the pi. ofc label the port as custom and cover after use. but you save needing to use a pico at all as its just a direct connection, also means you dont need to go into klipper to update its config when connecting/disconnecting. neither is superior, but both have diffrents pros/cons
@KrystianKociszewski8 ай бұрын
Amazing, great fature!!! Love it!
@stcmiki Жыл бұрын
Hi I'm quite new to klipper and input shaper. Just upgraded my ender 3V2 with BIQU H2 V2S extruder, and mount ive printed has a dedicated place for accelerometer to be screwed in. Is there possibility to have two accelerometers conected to raspberry pico. One that would be mounted permanently on extruder and second for print bed? Thank you for answer. (Also sorry for my english not my first language)
@mattiafiorini2 жыл бұрын
hi! thanks for cristal clear video & idea! What about using a Rpi zero W2 in place of the pico? I have a speederpad and wanna try your approach using a Pi zero W2 (and eventually a MPU6050 I have laying on my desk)....any particular advice?
@Cyb3rGlitch2 жыл бұрын
I wonder if you could create a wireless version using the Pico W. That way just need to worry about power.
@SeanTaffert2 жыл бұрын
Great vid, as always. Question: Will the ADXL/PiPico always get the same ID when plugged into the RasPi? Basically, will I have to edit the ADXL.CFG everytime I re-connect?
@CanuckCreator2 жыл бұрын
It will differ between machines but as long as you use the same USB port each time that will remain the same on each individual machine
@macdox692 жыл бұрын
@@CanuckCreator One of my machines has a PI 3a+ and only has 1 USB connection. Do you know if using a HUB would work while doing Input Shaping and the both the printer and Pico would get unique serial addresses.
@Will3DPrint Жыл бұрын
What if you Main board only has one USB slot? Which is used to plug the board to the printer? Would a usb hub work for this instance?
@CanuckCreator Жыл бұрын
Yup. A hub will work
@jimkozma Жыл бұрын
Couldn't you load the firmware on the Pico directly from the RP4 instead of transferring it to a PC? (Just plug it into the RP4 while holding down the boot button, same as the PC.) Thanks for all the great videos!
@Djambo57 Жыл бұрын
I get the invalid ID error, checked the connections 10 times, desoldered my harness and connected the the adxl to the pico with some short silicone wires, edited the config, the klipper is recognizing the pi mcu and still nothing... the adxl does support both 3.3 and 5V power so I really don't know what's wrong on
@tiagoassis54822 жыл бұрын
Would this work in a laptop with klipper installed?
@oldcrazyeye64822 жыл бұрын
Was just setting this up and ACCELEROMETER_QUERY failed on multiple machines. After troubleshooting and reading through the comments the issue was fixed by removing ground from the adxl345
@MrVladp3 ай бұрын
Could you please point me in the right direction. I've flashed klipper to a pi pico and trying get the configuration going to toggle GP25 ( the led pin on the pico )
@cristianopersi79532 жыл бұрын
OK mine works too thank you.
@nicolastigliano90512 жыл бұрын
Hi Nero, you channel is a bless. Just a question: this will work on a pc running klipper? Thank you.
@robertblot45132 жыл бұрын
How do I connect if I am running on a laptop, not a PI?