Physical UI support?
Do you plan to add support for LCD + encoder? Or will control always be done through octoprint?
Do you plan to add support for LCD + encoder? Or will control always be done through octoprint?
My personal opinion is that new hardware designs would be better off talking directly to the host and use octoprint. For existing hardware, I think it would make sense for Klipper to support common lcd panels.
I don't have an immediate plan to add support. Contributions are welcome.
-Kevin
Please, I would like to contribute with this - just to have very simple functions (like show status, homing, change filament commands, etc) and use the card reader. What do you recommend as a starting point? I do know the (very) basics but not sure where to start besides your documentation.
On Mon, Jul 31, 2017 at 06:00:03PM +0000, brunofporto wrote:
Please, I would like to contribute with this - just to have very simple functions (like show status, homing, change filament commands, etc) and use the card reader. What do you recommend as a starting point? I do know the (very) basics but not sure where to start besides your documentation.
What hardware did you wish to support? If this is for basic lcd support, then what I would do is add a pass-through mechanism in the micro-controller code that would allow the host code to bit-burst out data to the lcd controller. Then the python host code would need to contain the logic necessary to draw the screen.
See the src/spicmds.c code for an example of how this was done to communicate with the ad5206 chip.
-Kevin
Thank you!
I have the http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller connected to the RAMPS.
The src/spicmds.c example should solve the data sent to the LCD part witch is already nice.
What about the other way around? Reading the encoder and push button to execute simple commands like change filament, move axys, etc.?
Would be simpler to run this code directly from the MC or would be interesting the have MC sending messages back to the host and process the request there?
Other interesting enhancement would become able to read the SD card :D
Wouldn't it be better to attach the LCD to the RPi? Since the host benefits from running Octoprint + klipper,I added a cheap $9 ILI9340C lcd with TouchUI plugin enabled. https://learn.adafruit.com/3-dot-5-pitft-octoprint-rig/overview
Though I do understand that one of the primary goals of Klipper is drop-in replacement.
TunaLatte... I can't argue with that.... Even the 3.5" LCD TFT is no more than US$ 16....
On Tue, Aug 01, 2017 at 03:18:40PM -0700, Bruno Porto wrote:
Thank you!
I have the http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller connected to the RAMPS.
This should solve the data sent to the LCD part witch is already nice. What about the encoder and simpler commands (change filament, move axys, etc.)? Would be simpler to run them directly from the MC?
Klipper is designed so that all the kinematics and timing is done in the host software. So, it would not work well to attempt to process general user commands solely in the micro-controller. However, it should not be a problem for the micro-controller to pass them back to the host for processing - the comms are fast enough that a button press could be sent and a full screen draw returned faster than a human eye could detect.
-Kevin
On Wed, Aug 02, 2017 at 03:51:52AM -0700, TunaLatte wrote:
Wouldn't it be better to attach the LCD to the RPi?
I'd certainly recommend that for new hardware designs. I don't have any objections should someone wish to get existing hardware functioning, however.
-Kevin
I see now, it made sense to me at first since in my case I had to add a host (rpi) to my existing setup due to the nature of how klipper works, same story with LCD. Would be also good to have MCU stats/debug info (like klippy log info) running in realtime on LCD (without host communication) as preliminary support for MCU LCD.
is there any CPU concern to run Klipper, a browser with octoprint and driver for one of those : https://www.waveshare.com/3.2inch-rpi-lcd-b.htm ?
Edit : Scratch that SPI screen, might be better off using an HDMI one. Should add less stress on the CPU.
On Tue, Nov 21, 2017 at 09:05:32PM +0000, Andre Q. wrote:
is there any CPU concern to run Klipper, a browser with octoprint and driver for one of those : https://www.waveshare.com/3.2inch-rpi-lcd-b.htm ?
An RPi3 has a ton of available CPU power. I'm not familiar with that particular hardware, but I doubt it would be an issue.
-Kevin
I have been looking at using a Nextion display recently with Marlin and just came across your firmware. I like what you have done a lot and think i will give it a try but was wondering if you think a Nextion display would be difficult to integrate? as even though i do use octoprint i still like to have local control of my machines.
I dont think for the nextion any integration is needed at all, it just works as a display for the pi and thereby should work with octoprint just fine.
The Nextions are small HMI panels so you need to upload your own interface designs to them. I have plenty of displays i could just use with Octoprint and the Pi directly but i do like the idea of just a custom solution for my own machine, Plus i have a 4.3" Nextion sitting doing nothing that i want to play with :-)
RepRap Full Graphic Controller is the worst option due to slow communication. Now Marlin 2 32bit has trouble with it.
I think we should more concentrate on getting UI connected to Rassberry Pi, on it even a slow LCD won't be any problem (just run the UI in separate thread).
Exactly
Hi, I'm new to Klipper and it seems to fit ideal to my own plans. In fact, from what I read in the forum, most things are already solved by you, even problems I didn't think of, really nice, Kevin...
now on the topic:
I don't really get why everyone wants some LCD. I bet everyone here has a Smartphone? Simply take the touch UI plugin of octoprint and use it. It couldn't get better. Touch UI is a lot faster and much more convenient than scrolling through menus and clicking.
This also has the advantage to be able to take it with you, say when cooking coffee or on the toilet (or use another device). And you can see the printers webcam... Full control everywhere.
Additionally, many people have older smartphones laying around and doing nothing. Just install one of them on the printer. In fact I do this since I have octoprint on my printer. You can even use a big tablet.
Additionally an old monitor and any kind of keyboard or mouse can be used. On linux you may find solutions to run a web browser fullscreen (easiest will be using F11).
Do you need any more?
I do not think it is worth to invest time in simple LCD screens. I have two laying around and didn't have any need for them for years.
^This, so much!
I plan on using this over the RPI https://shop.pimoroni.com/products/hyperpixel and from my initial test, it's gonna work great as a replacement from my old Graphical LCD running Marlin. One could use a cheaper screen sold in many size from China.
I'm not sure there should be much time invested in getting those old graphical/character LCD running on the arduino anymore. It will take a good chunk of the processing power for sub-part user experience.
The only thing I'll be missing (for now) is a physical rotary encoder/buttons with some macro, but it might be from many years of using the graphical LCD ;)
Edit : Btw, there's a script to launch TouchUI at boot time : https://github.com/BillyBlaze/OctoPrint-TouchUI-autostart
If this is for basic lcd support, then what I would do is add a pass-through mechanism in the micro-controller code that would allow the host code to bit-burst out data to the lcd controller. See the src/spicmds.c code for an example of how this was done to communicate with the ad5206 chip.
Not all displays use a SPI protocol. A lot of printers use the RepRapDiscountFullGraphicsSmartController, for example, which uses a pain-in-the-ass non-SPI protocol that is extremely sensitive to timing.
Perhaps this could be solved by defining a command called "send x bytes to LCD" and the firmware would know how how to send bytes to the specific type of LCD that was configured, either using SPI, or something else, as in the case of the RepRapDiscountFullGraphicsSmartController.