Re: New experimental firmware: all kinematics in host December 19, 2016 06:21PM |
Registered: 9 years ago Posts: 19 |
Re: New experimental firmware: all kinematics in host December 19, 2016 09:48PM |
Registered: 11 years ago Posts: 290 |
Re: New experimental firmware: all kinematics in host December 19, 2016 10:19PM |
Registered: 14 years ago Posts: 107 |
Quote
keedley
Hello, Kevin!
Thanks for your efforts.
Could you tell me - is there any doc or clue how to connect arduino part to drivers and thermisors?
for example, i've got an old machine with ramps & mega sandvich, prusa style (double Z motors), 2 thermistors, heaters for extruder and the bed, running Marlin.
what could my steps look like to make this machine run using Klipper?
pins declarations, thermistor-tables and all this low-level setup.
is there any plans to support Delta kinematics, may be?
Re: New experimental firmware: all kinematics in host December 19, 2016 10:28PM |
Registered: 14 years ago Posts: 107 |
Quote
zungmann
Hi, I am playing around with klipper
I can upload the firmware to my RAMPS, run klippy host and connect with OctoPrint. I get the temperature readings for my hotend and bed. I also get position reading with M114. I checked endstop with M119 and got all triggered. So I think need to invert the endstops config. My endsops are all mechanical, so pull-up must be enabled, which correctly set by using '^' (^ar3 for X). But how to invert it, shall I use the combination of '!' and '^' ? This should be easily tried by changing the configuration, but whenever I changed the configuration and re-run the klippy host, I got this error message:
MCU error during connect
Traceback (most recent call last):
File "/home/pi/klipper/klippy/klippy.py", line 152, in connect
self.build_config()
File "/home/pi/klipper/klippy/klippy.py", line 130, in build_config
self.mcu.build_config()
File "/home/pi/klipper/klippy/mcu.py", line 444, in build_config
self._send_config()
File "/home/pi/klipper/klippy/mcu.py", line 459, in _send_config
raise error("Printer CRC does not match config")
error: Printer CRC does not match config
Any hints appreciated....
Re: New experimental firmware: all kinematics in host December 20, 2016 04:59AM |
Registered: 11 years ago Posts: 290 |
Re: New experimental firmware: all kinematics in host December 20, 2016 11:25AM |
Registered: 14 years ago Posts: 107 |
Quote
zungmann
Thanks. Manually restarting the microcontroller works and helps alot since whenever hit an 'unhandled communication error' in the OctoPrint, the connection to the host is terminated. Reconnect does not help, the problem remains there until restarting the microcontroller and restart the klippy host. I find this quite annoying.
Quote
zungmann
Now I am stuck with error when homing the Z. It just run like 10th of second and stop and error.: Failed to home Z stepper....
Re: New experimental firmware: all kinematics in host December 20, 2016 11:35PM |
Registered: 7 years ago Posts: 363 |
Re: New experimental firmware: all kinematics in host December 21, 2016 10:37AM |
Registered: 14 years ago Posts: 107 |
Quote
obelisk79
Kevin,
I have to say, reading the thread and understanding at least some of the planning, consideration and work that has gone into this I'm both impressed and gracious. I intend try this out on my RAMPS/MEGA setup some time in the next couple of weeks. Seeing this inexpensive hardware being pushed to higher levels of performance is both impressive and good for the community at large.
Since it is python code, I should be able to easily run klippy directly on a laptop (or old netbook) instead of a RPi, correct? would I need a specific OS to support it?
Klipper v0.3.0 release December 23, 2016 08:02PM |
Registered: 14 years ago Posts: 107 |
Re: New experimental firmware: all kinematics in host December 23, 2016 10:39PM |
Registered: 11 years ago Posts: 290 |
Quote
KevinOConnor
Quote
zungmann
Thanks. Manually restarting the microcontroller works and helps alot since whenever hit an 'unhandled communication error' in the OctoPrint, the connection to the host is terminated. Reconnect does not help, the problem remains there until restarting the microcontroller and restart the klippy host. I find this quite annoying.
You can instruct OctoPrint to not disconnect on error by unchecking "Not only cancel ongoing prints but also disconnect on unhandled errors from the firmware" under Settions->Serial Connection.
Quote
zungmann
Now I am stuck with error when homing the Z. It just run like 10th of second and stop and error.: Failed to home Z stepper....
I'll take a look - can you email me ([email protected]) your config file and the log file (/tmp/klippy.log) containing the error.
-Kevin
Re: Klipper v0.3.0 release December 24, 2016 02:59PM |
Registered: 10 years ago Posts: 14,683 |
Quote
KevinOConnor
It's worth noting that Klipper does not do kinematic approximations (no bresenham algorithm, no segmenting of moves into small chunks) nor does it do step multiplication (no double stepping, quad stepping, etc.). Instead, Klipper calculates the exact time for each step and every step. This means even at very high speeds the step timing will be precise; this helps limit vibrations and noise.
Re: New experimental firmware: all kinematics in host December 24, 2016 07:34PM |
Registered: 9 years ago Posts: 138 |
Re: Klipper v0.3.0 release December 26, 2016 02:28PM |
Registered: 14 years ago Posts: 107 |
Quote
dc42
There is no disadvantage to using double, quad etc. stepping provided that they only kick in at high enough step rates. Stepper drivers use a chopper frequency of about 40kHz and the step pulse rate needs to be several times lower than that for the motors to notice the timing of individual microsteps.
Re: New experimental firmware: all kinematics in host January 03, 2017 12:13AM |
Registered: 11 years ago Posts: 290 |
Re: New experimental firmware: all kinematics in host January 04, 2017 05:31AM |
Registered: 11 years ago Posts: 290 |
Quote
zungmann
After got several fixes I finally managed to print my fave test: Swan with Klipper using my Prusa Steel. Overall looks pretty good, some small blobs at sharp edges but not all layers which I did not get using other firmware (the same gcode). One other thing: I noticed high pitch humming during extruder heating toward end of target temp and few occasions during print.
I will post the print picture later.
Re: New experimental firmware: all kinematics in host January 04, 2017 10:58AM |
Registered: 14 years ago Posts: 107 |
Quote
zungmann
After got several fixes I finally managed to print my fave test: Swan with Klipper using my Prusa Steel. Overall looks pretty good, some small blobs at sharp edges but not all layers which I did not get using other firmware (the same gcode).
Quote
zungmann
One other thing: I noticed high pitch humming during extruder heating toward end of target temp and few occasions during print.
Quote
zungmann
100 mm/s travel (capped by the printed config).
Re: New experimental firmware: all kinematics in host January 09, 2017 02:33AM |
Registered: 11 years ago Posts: 290 |
Quote
KevinOConnor
Thanks for testing!
I can't see the blobs in the picture, but if you're seeing more blobs at sharp edges on klipper (vs other firmwares) then I suspect it's due to the cornering algorithm. Klipper uses a cornering algorithm based on "centripetal acceleration" - the same algorithm used in GRBL and Smoothieware. The original author's description of it is pretty detailed. In contrast, several other firmwares implement cornering based on limiting the jerk of the individual stepper motors. The end result is that Klipper is likely going to be more conservative on cornering speed at sharp edges, and I suspect that the longer time the head spent traveling these corners resulted is slightly more blobbing.
I think so. After that first print, I change my configuration of junction_deviation from default example of 0.02 to 0.1 and gave better result, but still a few blobs seen. I will increase my acceleration to 3000 and run another print.Quote
KevinOConnor
I much prefer the "centripetal" cornering algorithm as I find that the rapid jerks on sharp edges of other firmwares disturbs filament already put down. In particular, I was unable to get good first layer adhesion on prints with sharp edges when I used Marlin. (In contrast, on Klipper, I get great first layer adhesion - to the point where I can now print very complex first layers at 100mm/sec in PLA on heated glass without failure - a huge improvement considering I couldn't get those types of prints to adhere at any speed on that printer back when I used Marlin.)
I can recommend two ways to proceed:
In earlier configs you sent me, it looks like you had the acceleration set to 1000mm/s^2. That's a bit lower than I typically see. The centripetal acceleration cornering scheme uses the moves' acceleration when determining maximum cornering speed. If you choose 1000 just to be conservative then you may want to try a more common acceleration of 3000. If you really want to accelerate the motors no faster than 1000mm/s^2 then I'd try increasing junction_deviation in the Klipper config from its default of 0.02 to 0.06.
Quote
KevinOConnor
The other method to reduce blobbing is to enable and tune pressure advance. Alas, I don't know of a good guide for tuning pressure advance. A typical value is between 0.05 and 0.15 though. I've nearly eliminated ooze on my printer; I set pressure_advance to 0.07.
Quote
zungmann
One other thing: I noticed high pitch humming during extruder heating toward end of target temp and few occasions during print.
I don't know why that would be. Klipper uses a pretty standard PID algorithm and it doesn't toggle the heater more than 10 times a second. There's a bunch of info we can grab with the logs though, so I'm sure we can track it down. I'll contact you via email.
Quote
zungmann
100 mm/s travel (capped by the printed config).
FYI, with the stepper precision you had in the config you sent me, the MCU (16Mhz AVR) should be able to reach a stepping rate equivalent of 300mm/s without issue.
Re: New experimental firmware: all kinematics in host February 28, 2017 02:51AM |
Registered: 7 years ago Posts: 1 |
Re: New experimental firmware: all kinematics in host March 01, 2017 08:14AM |
Registered: 14 years ago Posts: 107 |
Implementing corexy should not be very difficult. If you or someone else has the hardware and is willing to run tests, I'll code it up. If interested, send me an email or PM.Quote
chromedome1964
Very interesting project. I'd love to test it out. Any idea when corexy might be implemented?
Re: New experimental firmware: all kinematics in host March 03, 2017 05:43PM |
Registered: 11 years ago Posts: 290 |
Re: New experimental firmware: all kinematics in host March 03, 2017 08:30PM |
Registered: 14 years ago Posts: 107 |
Quote
zungmann
Hi Kevin,
Glad to hear new features, would love to test it again.
One question: is there a way to limit the 'power' of the bed heater? My current setup for bed is 12V and using 24V so my config limit the current to say 1/4 of pull power (255).
Re: New experimental firmware: all kinematics in host March 06, 2017 02:43AM |
Registered: 11 years ago Posts: 290 |
Re: New experimental firmware: all kinematics in host March 06, 2017 10:32AM |
Registered: 14 years ago Posts: 107 |
Quote
zungmann
Hi Kevin,
I tested the pressure.advance feature. It was jittering a lot, especially on beginning of print. There were in many ocassions during print. I think or guess it happens on low speed printing.
Re: New experimental firmware: all kinematics in host March 06, 2017 12:47PM |
Registered: 7 years ago Posts: 14 |
Re: New experimental firmware: all kinematics in host March 06, 2017 02:47PM |
Registered: 14 years ago Posts: 107 |
Quote
Swift
Great project Kevin, I'd love to test it as well, seems a great way forward.
Would it be difficult to add support for thermocouples? (e.g AD595, À la Marlin "TEMP_SENSOR -1")
Re: New experimental firmware: all kinematics in host March 06, 2017 10:15PM |
Registered: 11 years ago Posts: 290 |
Re: New experimental firmware: all kinematics in host March 07, 2017 12:47PM |
Registered: 14 years ago Posts: 107 |
Quote
zungmann
pressure_advance is 0.07 and lookahead_time 10ms
here you go the log.
Re: New experimental firmware: all kinematics in host March 13, 2017 08:19AM |
Registered: 12 years ago Posts: 54 |
Quote
KevinOConnor
Implementing corexy should not be very difficult. If you or someone else has the hardware and is willing to run tests, I'll code it up. If interested, send me an email or PM.Quote
chromedome1964
Very interesting project. I'd love to test it out. Any idea when corexy might be implemented?
-Kevin
Re: New experimental firmware: all kinematics in host March 13, 2017 04:36PM |
Registered: 7 years ago Posts: 363 |
Re: New experimental firmware: all kinematics in host March 13, 2017 06:47PM |
Registered: 14 years ago Posts: 107 |
Quote
obelisk79
Is the Raspberry Pi Zero powerful enough to run Klipper without issue? I'm thinking about pairing this up with the new Zero W and my RAMPS 1.4