Run Klipper on Android!
ฝัง
- เผยแพร่เมื่อ 28 ธ.ค. 2022
- Thanks for watching this video on getting Klipper running on an Android phone!
I know it's choppy and a little scattered, it's my first large project and I ask that you please understand.
That being said I did what I could and I learned a lot from this video. I really should have made this into 2 videos, but I am already late on getting a video uploaded.
I used a lot of resourced to make this video. Here they are and please let me know if I missed any.
For getting through the installation of Octo4a.
github.com/feelfreelinux/octo...
For installing Klipper on Octo4a.
github.com/feelfreelinux/octo...
Feel free to let me know where I can improve, I know there is so much I could improve on that it hardly seems worth commenting about lol.
******** Here are the commands that I used, of course only the lines without starts ***********
This first part is just to ssh into your device, your ip address will probably be different
ssh root@192.168.254.67 -p 8022
123456
This next part might not need to be done if you octo4a app works fine
pip3 install --upgrade setuptools wheel tornado --no-cache-dir
curl -s raw.githubusercontent.com/fee... | bash -s
unzip octoprint.zip
A
cd Octo* && pip3 install .
After I fixed octo4a then I used this command
bash -c "$(curl -fsSL raw.githubusercontent.com/fee...)"
*********************
« Music by www.bensound.com » and by ClipChamp
Another great video, thanks! BTW, audio is way better when screen recording parts
Sweet! I was worried about being able to hear my kids crying too much in the background, but it wasn't too bad lol
Thank you for the guide. You helped me to understand what Klipper actually is. Prior this I thought that it's a custom firmware for a printer. But it's actually an app which runs on Linux and just needs a config file for the printer.
It is a custom firmware for the printer and an app that runs on Linux and needs a config file. Sorry if I didn't describe it well. You can go to the klipper website for more info
Hmm, I'm watching your second video and I probably was right and Klipper is a custom firmware for a printer...
Yeah it is. It's not too hard to setup though, if you can find a guide on your printer it's not that hard to create the firmware
@@DalTronPrinting So do I understand correctly?
The Klipper-app activation on the phone, like you showed in this video is universal?
And the Klipper-firmware for the printer itself is specific for the printer and can therefore be a bit different for each printer?
So I could disconnect my Klipper-app-phone from one printer (with Klipper on it) and connect it to an other printer (with Klipper on it) and it should be able to connect without the need to redo the installation on the Klipper-app?
Yep, you will need to change your printer config but it should work fine.
I really want to experiment connecting one phone to multiple printers, but my phone recently started having connection issues
helped loads thank you
Great! Glad I could help
Great video with step by step guide. Thank you!!! I followed every step in the video. Though I got bunch of "Operation not permitted" for all the inflating during installation but it did install at the end. Klipper is showing up in Octoprint. Now my question is, how do I install the klipper FW on my Ender 3 V2? All the other videos and tutorials are for Raspberry Pi and grabbing the bin file after the config is set. How do we do it here? Thank you again.
Unfortunately, I don't know any way to create the bin file without a Linux install. You can run a virtual environment on a computer or something to use Linux or get Linux running on your phone and create the bin that way.
I am trying to find out if there is a way to do all of this without root, so if I do I'll make a video on it.
Okay, if you install an app called Andronix and another app called Termux then you can get an installation of Ubuntu installed inside of Termux. Then you can install kiauh, you should look up the commands and find them on a github, once you have that installed you can use kiauh to create your firmware. I haven't tested if the firmware it builds works, but I am hoping to eventually. Unfortunatley with this method you will need to create a new user, you will have to look up those linux commands, and su into it. Then install kiauh. Otherwise it won't run. I can make a video on this as well it will just take me a minute of getting some things together.
@@DalTronPrinting Thank you very much for the additional information.
I actually do have a Raspberry Pi on hand that I forgot all about. I can follow other videos to run mainsail on Raspberry Pi to get the klipper bin file to flash the printer. The question is, would that work to interface with the Klipper in Octoprint on the Android phone running Octo4a? I don't wan to stuck with connecting the Raspberry Pi to the printer. It has to be used elsewhere.
Yes, it will work, or at least it should, that's actually what I did when I was testing this because I wanted to eliminate the possibility of the phone created bin file being one of my problems.
Thank you for the great video, very concise with step by step guide! I do have a question, can I use an unrooted phone? I don't recall you mentioning it in the video. Thanks in advance!
You can't do it without rooting with this method. You can use octoprint without rooting I think. I have a video on that as well
@@DalTronPrinting I've followed all of the steps in the video, including inserting /dev/ttyOcto4a under [mcu], but octoprint gives me the following error: mcu 'mcu' : unable to connect. Do you know how to fix this?
Not really, honestly I've dealt with error a lot and I don't really know how I fix it every time. It seems like it's different every time and I just mess around until I fix it. Sorry, I can't be more help. What phone do you have?
@@DalTronPrinting I have a rooted samsung galaxy s10
Hmm I'm not sure if that phone can do it, I don't have the time to find it right now but I know someone had a spreadsheet with a bunch of different phones and if they worked or not
Can you do Mainsail as well? I completed everything up to this video. Thanks!
The next video shows how to use it with fluidd and in that video I follow a GitHub that links to another GitHub that can get mainsail running.
I would make a video on it, but I have to go out of town for fmla
Thanks!
Of course! I use TH-cam for most everything, so not being able to find something on this really sucked!
Very detailed instructions, all steps went without problems. It’s all the more disappointing that at the very end of the video I won’t be able to connect to the printer, receiving the “Option 'serial' in section 'mcu' must be specified' error.
Hmm darn, have you gone through and double checked that you did all the steps correctly and that you've spelled everything correctly? Also, have you checked online to see if your phone supports otg?
@@DalTronPrinting Yes, my phone supports OTG and there is a message in Octoprint "Printer is connected" (/dev/bus/usb/001/002). But Klipper doesn't see the printer.
Hmm, then you should be able to get it working. Did you change your MCU to /dev/ttyOcto4a?
@@DalTronPrinting Yep, I have this line in the config.
Best I can think after that is t9 ask for help on some discords or githubs or something
Hi, I'm watching your video and working on it. In 10:45~10:47 of your video, you type something and the setup script of the 3D printer is output, but I don't know what key to type. I didn't understand the description of that part because I'm not from an English-speaking country. Can you explain what information to type in that part?
Do you mean the printer config or the mcu serial?
@@DalTronPrinting probably printer config. I thought that mcu serial was included in your link.
Do you have any idea if installing Klipper firmware on the printer is possible with just a phone?
Yes! It is! I am filming a video about that and I hope to release it soon, but you need to have your phone rooted. So, you do need a computer to root your phone as far as I am aware.
@@DalTronPrinting that's incredible! Can't wait. Keep up the awesome work!
Thank you! I appreciate it!
thank you for the guide!
i've successfully installed octoprint and make it work, but not so lucky with klipper
idk if is because i have a btt skr mini e3 v2 motherboard or what but i'm cant make it connect to the printer
That's great that you were able to make it this far. Is octoprint able to connect to the skr mini?
How do I get the printer.cfg instaled? Does it go in the printer firmware or octoprint? Thanks
When you have everything installed you should be able to click the open editor button on octoprint. There are a couple ways to get it open other than that.
Oddly I was getting the build wheel errors after following all steps. Turning the device all the way off and turning it back on, reinstalling the apk and just running the app seemed to fix the issue. After running the app Octo4a installed octoprint without any issues afterwards.
Awesome! I'm glad you got everything working!
I have a question, having a VPN IP address, could I use the octo4a remotely?? Without installing the klipper and nothing more than just installing the apk. Thanks!!
I have no idea! But if you figure it out let me know! Though you might have better luck just doing the apk and installing the octo everywhere or obico plugin. I can't remember what it's called
Hi, did you manage to run input shaping using accelerometer on the android phone?
No, not yet. I haven't been able to focus on it yet.
i went through all steps working well, but when im going to connect to the printer i keep getting errors message like mcu 'mcu': Unable to connect . Already checked mcu command and its just like showed in the video. Any suggestions? thanks
This GitHub might be helpful
github.com/gaifeng8864/klipper-on-android/issues/4
Make sure your printer's EEPROM is still alive. I spent several hours trying to set up klipper with a friend only to realize this error was because the printer's EEPROM failed.
HELP I keep getting a "Shutdown due to M112 command" I've looked everywhere to try and fix it but I can't
Hmm, I've seen that error before, but I don't remember it on this. The only thing it could think, and stay with you won't like it, is to kinda restart and go through each step slowly. I really hope you get a better solution, but that's all I can think. You might be able to go back 2-3 steps and restart from there
Followed the guide, set everything up - yet my Octo4a is showing offline with my printer status, and clicking connect does nothing. Any assistance? Ender 3 using 4.2.7 board and CR Touch
Well, what errors are you running into? Did make the bin file and flash it to your printer? Though even without that octo4a should be able to detect the printer
@@DalTronPrinting no errors. Just won't "connect" status says Klipper standby and the State shows "offline"
Did the octo4a log have any information?
@@DalTronPrinting I exported the log. And am seeing a few areas where it says permission is denied
I think there was an issue on the github about permissions, I don't know if they figured it out. You can try looking there
HELLO, i have the voron 0 but what do i need for get if i only have skr pico board and my android phone...is posible ??
or i still need the raspberry pi , in mean for get klipper installed on the skr pico
You don't need a raspberri pi if you install klipper on your phone. You will still need to flash your skr pico with klipper
@@DalTronPrinting even manta m8p too? Or i still need cb1?
Yeah, as far as I understand a cb1 is just a replacement for a raspberru pi, so you can use an android phone instead. Though I can't make any claims to how stable it is
@@DalTronPrintingThanks for answering my question
No problem, I hope you're able to figure your stuff out
can i check if the 3d printer needs to be flashed with klipper? im getting 'mcu' errors and im not sure why this is so
Yeah the 3d printer does need to be fleshed. I'm sorry, I didn't do a great job of explaining that.
At 4:27 you typed something between the ip address and the port#. What is it? Something, something p.
It's a dash "-" without quotes. It's basically saying right after this is where the port number starts.
at final step says me: Your printer's firmware reported an error. Due to that OctoPrint will disconnect. Reported error: Include file '/root/fluidd.cfg' does not exist.
i try to delete [include fluid.cfg] but still no working.... can you help me?
Did you check to see if the file /root/fluids.cfg exists?
now the last error is: Your printer's firmware reported an error. Due to that OctoPrint will disconnect. Reported error: Include file '/root/macros.cfg' does not exist
@@DalTronPrintingits needed? I follow step by step the tutorial and when Write the basic printer.cfg withouth "includes" send me the lastest error unable to conect mcu😢
This is a tough one to get past. It depends on the phone you phone you have and if it can do it and you have to have all the settings just right. What phone do you have?
@@DalTronPrinting i try, pocophone f1 and samsung galaxy s9
hey bro so i got octo4a installed an had quite a time getting the klipper plugin to install kept getting permission denied anyways its finale installed but octo4a is stuck in safe mode ive tryed everything rebooting restarting and shutting down from the browser server, force closing the app and restarting my galaxy tab 3 but i cant get it out of safemode
Interesting, I'll see if I can find info online. In the mean time you should see if the GitHub for octo4a has any information on your problem.
@@DalTronPrinting thanks bro i really apprecaite all your help
@@DalTronPrinting well i have tryed about 5 different ways to root the tcl 20 pro 5g, but since its the T810S version i cant find the boot img, or proper firmware to use to root it and from what i can see all that have tryed alternative ones have bricked there device, which sucks cause i have all the cords i need and a wireless charger i could easily have had this all set up if i could just get it rooted.. so i guess im going to try and root this galaxy tab e then since no matter what i do i cannot get octoprint out of safemode, and x server wont work either on this tab 3, damn what a shit show
@@clinthipfner6042 That really sucks. The only thing I can think of is to try installing an older version of octo4a. I think the oldest version I would try is 1.0.4 because that has klipper support. However, you could try going even further back to see if you can get anything working.
Hey im getting an "Include file '/root/fluidd.cfg' does not exist" error whenever i try to connect.
edit: was an issue with my printer config, all good now
Awesome! I'm glad you were able to figure it out. 👍
How did you get that light -P before you entered the port number ? Super noob here and am trying to load up octo on android but am so stuck please help
Can you tell me what part of the video you are in? I'll do the best I can to help you :)
@@DalTronPrinting do you have an Instagram or something so I can reach out ?
Not at the moment, but I have a reddit account. It's daltron001
@@DalTronPrinting I had already messaged you , how crazy
Yeah just message me on discord DalTron#5590. For whatever reason my reddit doesn't let me see any messages
( Include file '/root/mainsail.cfg' does not exist) I get an error like this when I press the connect button
check your printer.cfg file it probably has a include that shouldn't be there.
Were you able to solve it?
I'm having the same problem
Can you post your printer.cfg into pastebin? Then share everything after the forward slash and I'll take a look at it and see if anything stands out to me
le instale linaje a mi galaxy note 10.1 y cuando instalo octoprint me da error java.lang.runtimeexception: process exited with error code 255 .[proot warning: can't t sanitize binding "/data/data
si puedes ayudarme. gracias
I'm not sure what to do. When I first started trying to get klipper running on an Android phone I installed lineage os. But I was never able to get it to work. I've only gotten it to work with basic android, either rooted out unrooted. Sorry
@@DalTronPrinting mmm ya muchas gracias igual bro
carlos rivas yeah sorry, you can try googling your problem. A couple of things popped up when I searched it. I don't know if it would help at all though
but how did you flash klipper on the printer without the raspberry? i cant find anything about it
I really should have made that part of the video, but you can ssh into your phone and make the flash file that way. I tested it out and it worked for me. For the most part once you have this running your phone acts just like a a raspberry pi, with slightly different software.
@@DalTronPrinting okay... Do you have a link for a website where to find what tò type? I tried something but i can't even understand where to put the files in the sdcard and stuff Like that...
I can't right now, I'm entertaining guests, but if you tell me what your printer is, I might be able to find some time tomorrow to look into it, but every printer is different. Your best bet would be to find some TH-cam video or instructions on your specific printer.
do i need to flash my firmware? because i cant get to connect to my printer it says the printer is not ready
Yes, you do need to flash your printers firmware
@@DalTronPrinting how do i get the file for flashing?
You will have to create the firmware using kiauh or something. You will have to look up how to create a firmware for your printer, since each printer is going to be different.
How do I get the klipper.bin file to flash to my printer?
You will have to create one using Linux. There is an app called UserLAnd that you can use to create a bin file. You will have to look up the specifics for your printer, but you can use the UserLAnd app to act as your Linux system
Hi, Dal. How has the Android Phone performed so far? Is it a reliable alternative to raspberry pi?!
That's a great question! I really do need to do an update video, but I haven't been able to get to it. One of the phone I've done has been really reliable, but the other ones battery keeps having issues. I think it would've worked better if I setup an app that would keep the battery charged at 80%. So far I've had it disconnect randomly from the printer, but only after it finishes a print. For me it hasn't disconnected during a print.
@@DalTronPrinting Thanks for taking the time to show us your experiments. I'll definitely try it. All the best.
You too! Thank you!
would be good if it was possible to add klipper screen to this setup
Yeah it would be, but there are other ways of getting kipper screen. Though they are a lot more complicated. I have a video on it if you're brave enough to try it lol
@@DalTronPrinting I did try to get klipper, moonraker, fluid and klipper screen on phone but thers something has changed and I could not get it to work. Using or messing with Octo4a with klipper for now but if you have working instructions I'm up to test that out
I don't have any update instructions yet. Unless the GitHub has been updated, which you should always check.
please on the description put down all the commands that u used, can't read anything on the video a full 1080
I'll make some time to do this soon!
Okay, I updated the description. I hope that helps. Sorry about the poor quality screen recording. I still don't know how to get crisp text through OBS, I don't know if I should just find another screen recording software or just change my settings, but I will put more effort into typing the commands into the description from now on.
5:30 after uzipping octoprint it sais this:
-ash: unzip: Permission denied
what did I do wrong?
I'm not sure, but maybe the download didn't quite work or you need to run the unzip on root
i had the same problem on old samsung s5 phone with octoprint.But i installed lineage os on the phone with all the problems that camed with that.(FIrst roote the phone, after instal twrp as emergency software, instal lineage , and after instaling the software roote and instal emergency software under lineage os.But now the octoprint is working
Nice! Glad you got it working!
@@DalTronPrinting my question is if i had installed octo4a on the phone what is the difference between klipper and octo4a?
@@DalTronPrinting i had never made samething like that before, but the help of tutorials i maded
Octo4a just connects your phone to the printer and then runs octo print. Klipper is basically a different octo print. There are plenty of videos that go over the pros and cons of both. Looking into those is worth it
@@DalTronPrinting understood.With what i manage to play with octo4a(i printed samething small on my homemade printer( an hyper modified hypercube evolution) directly from my laptop to phone via wirelless network the product came pretty good).The only cable was between my mainboard and the phone.The mainboard had an usb type A (injket printer style) and the phone micro usb type b.Also what i liked is that you have an pluging in cura that send automaticaly to octoprint the file
is it possible to install klipperscreen and fluidd ui on top of this?
Not that I know of. I have another video showing how to install klipperscreen and fluidd
@@DalTronPrinting Is it on a raspberry pi?
No, it's still just using a phone
@@DalTronPrinting is it possible at all to do it without root access?
Not that I have been able to find. You need root access unfortunately
help iam ion ssh iam entering the code to pip3 install upgrade and it wont let me saying usage and giving me 5 other options
Hmm I'm not sure. If you go to the github and put your issue with screen shots I can try to help you there
well i got all the way to the end got it all forced closed the app and still no ip address
What does the log show you?
@@DalTronPrinting so now under octoprint is running it gave me a diffrent ip sat there for a min and went to installing in progress 150%
@@DalTronPrinting got extension remote web terminal (ttyd)
después de haber instalado Klipper debo modificar mi slicer o algo?
Depending on what slicer you are using you will probably want to change your printer settings. I recommend orcaslicer and I think it's just a drop down. I don't know for other slicers, but it should be pretty easy to find online. Also, I think that it will still work without, but klipper will give you errors telling what is going if something isn't setup right
@@DalTronPrinting Gracias, soy muy nuevo en esto y la verdad no sé cómo proceder.
I'll try to help as much as I can, but I don't know too much either haha. It would be worth finding a video of someone setting up klipper and following their tutorial once you get it set it working on your phone
donde puedo encontrar la configuración de klipper para mi computadora?
@@DalTronPrinting
I can’t seem to download. Can’t sanitize binding is what keeps popping up
Are you rooted? I can't really tell, but this github discussion sounds like root my be a problem github.com/feelfreelinux/octo4a/issues/40 I would suggest looking through the github more or even creating an issue and seeing if anyone there could help you.
Hi i have a question now i installed everything but how does this work now my phone is now my slicer or like my display
but when i click firmware can i get the klipperscreen too?
Your phone can work as a display, but is just the brains of the printer now. So, you will need to slice files on your computer and send them to your phone
Can i get the klipper screen too without the long tutorial you posted cause i knoq i can donit but is there an easiwr way?
@@DalTronPrinting so klipper is thw software from sonic pad right
@@DalTronPrinting i want my phone that it runs the klipper software, like sonic pad
I can't find the extension on the app
Did you look at the github?
Entonces podría instalar de esta misma manera en una tablet , y que al mismo tiempo me sirva como pantalla para klipper?
Yes, you can as long as it's an Android tablet it should be fine to do
@@DalTronPrinting bro pero no entiendo , igual es necesario tener klipper instalado ya?? En raspberry o algo??
Nope, it all runs on your phone! You will need to create the firmware to flash the printer. But then it all runs on the phone
@@DalTronPrinting :o excelente no haria falta instalar kiau ni nada.. practicamnete se puede utilizar como una soni pad , sirve de pantalla y para correr klipper
@@DalTronPrinting bro una pregunta y en ese caso como se haría para tener comunicación, por putty o algo , como se hace con el rasperry???
i tried to get my serial port but neither of the commands from github are working
Hmm I'm not sure. You can try going to the octo4a GitHub and following their klipper guide.
What phone are you using and what otg/USB hub do you have?
@@DalTronPrinting im using a zebra tc57 and im just using a type c to c wire for now
whenever i put in the command to find the serial port it says no such file directory
Very cool! I've never heard of that phone. Does octo4a work standalone? Is it able to connect to the printer?
@@DalTronPrinting no whenever i try its says i have to change the mcu
How well does it work though?
It works pretty well. I'm not sure that I would rely on it for a machine in a print farm or something. I have 2 pixel 4a phones die because their battery over heated, but I am going to bypass the battery and get them back up and running, when I get the chance. @greatscottlab has a really good video on that. But I have a pixel 2 that is still working fine. I don't use the printer it is hooked up to as much though.
for some reason the password is not working for me
Have you tried closing it and re opening it? Or did you change it and the new one isn't working?