欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

MKS TFT(3d打印触屏屏幕)如何定制客制化图标及logo制作说明

发布时间:2024/1/18 编程问答 58 豆豆
生活随笔 收集整理的这篇文章主要介绍了 MKS TFT(3d打印触屏屏幕)如何定制客制化图标及logo制作说明 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

以TFT7.0为例:

MKS TFT7.0使用手册第27页有介绍如何定制图标及logo制作说明

https://raw.githubusercontent.com/lineuve/MKS-TFT/master/MKS-TFT7.0/MKS%20TFT7.0%20V1.0%E4%BD%BF%E7%94%A8%E6%89%8B%E5%86%8C.pdf

主要用到Img2Lcd软件进行图像更换,

开机logo,对应的bmp_logo.bin

保存的时候要保存为bmp_logo.bin,并放到mks_pic文件夹下:

 

 

MKS TFT3.5,触摸屏的开源源程序:

https://github.com/makerbase-mks/MKS-TFT35-Firmware

 

以下大致的推测原理:

TFT屏幕用的是ARM STM32F4的主控控制,连接主板只通过AUX-1跟主板通讯,通过串口uart的rx,tx跟主板通讯。TF卡内或usb内的g-code也要通过主控STM32F4来协同,通过uart协议跟主板的Marlin通讯。

TFT屏幕的STM32F4直接控制并绘图tft屏幕的图像,控制不同的翻页更新,回应对应的触屏操作,把他们统一编写成g-code通讯格式跟主板的Marlin通讯,

当打印U盘或TF卡的g-code文件,STM32F4先读取U盘或TF卡的g-code文件,再通过uart协议主板的Marlin通讯

 

 

 

MKS TFT3.5最新编译好的bin文件TFT35_V1.0.8 Release file

https://github.com/makerbase-mks/MKS-TFT35-Firmware/blob/master/Release%20files/TFT35_V1.0.8%20Release%20file.zip

只要把压缩解压到u盘,插上tft屏幕的usb或sd卡接口,重新上电即可更新最新的固件和操作界面。

由文件就结构可以看出:mkstft35.bin和mkswifi.bin都是由VSCode编译出来。

 

对于近年开发robin系列板配合robin tft屏幕配合

注意robin tft屏上是没有任何stm32的主控。robin主板就搭载了stm32主控,这类板基本都支持触屏,它们的源程序都要带ui面板控制程序。robin主板stm32直接绘画出并控制

MKS Robin Nano is a powerful 32-bit 3D printer control board with STM32F103VET6

其中V1.2只能接robin 3.5寸tft屏幕。

而Nano V2.0和Nano V3.0则支持多种LCD

不过可见它们连接exp1和exp2接口

MKS Robin2 is a powerful 32-bit 3D printer control board with STM32F407ZET6

对于Robin1.x默认marlin设置也是robin tft屏幕

https://github.com/makerbase-mks/MKS-Robin/blob/master/MKS%20Robin/firmware/Marlin2.0-MKS-Robin/Marlin/Configuration.h

MKS Robin Nano V1.x build and update firmware

  • Build config:
    • platformio.ini:

      default_envs = mks_robin_nano35

    • Configuation.h:
      #define SERIAL_PORT 3
      #define MKS_ROBIN_TFT35
      #define MOTHERBOARD BOARD_MKS_ROBIN_NANO
      #define TFT_LVGL_UI
      #define TOUCH_SCREEN

  • Update firmware:
    • Enter the .pio\build\mks_robin_nano35 directory, copy the assets folder and Robin_nano35.bin to the sd card
    • Insert SD card to the motherboard, and you can see the update interface after power on.

     

    MKS Robin Nano V2.x build and update firmware

  • Build config:
    • platformio.ini:

      default_envs = mks_robin_nano35

    • Configuation.h:
      #define SERIAL_PORT 3
      #define MKS_TS35_V2_0
      #define MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2
      #define TFT_LVGL_UI
      #define TOUCH_SCREEN

  • Update firmware:
    • Enter the .pio\build\mks_robin_nano35 directory, copy the assets folder and Robin_nano35.bin to the sd card
    • Insert SD card is to the motherboard, and you can see the update interface after power on.

     

    MKS Robin Nano V3.x build and update firmware

  • Build config:
    • platformio.ini:

      default_envs = mks_robin_nano_v3_usb_flash_drive_msc

    • Configuation.h:
      #define SERIAL_PORT -1
      #define MKS_TS35_V2_0
      #define MOTHERBOARD BOARD_MKS_ROBIN_NANO_V3
      #define TFT_LVGL_UI
      #define TOUCH_SCREEN

    • Configuation_adv.h:
      Now you can either use the TF card or USB disk, use TF card:
      // #define USB_FLASH_DRIVE_SUPPORT
      Use USB disk:
      #define USB_FLASH_DRIVE_SUPPORT

  • Update firmware:
    • Enter the .pio\build\mks_robin_nano35 directory, copy the assets folder and Robin_nano_v3.bin to the sd card or usb disk
    • Insert sdcard or usb disk to the motherboard, and you can see the update interface after power on.
  • Example build config:
    • Open the example configuration file.
    • Modify the parameters, replace configuration.h and configuration_adv.h in the Marlin path of the source code.
    • Compile the firmware.
  • Prebuilt *.bin firmware for update
    • We have prebuilt the robin nano v3 firmware for some type of printers and some extended usage.

     

    MKS Robin Mini is a powerful 32-bit 3D printer control board with STM32F103VET6

    官网已经不卖了

    MKS Robin Lite3 is a powerful 32-bit 3D printer control board with STM32F103RCT6

    官网已经不卖了

    MKS Robin Pro is a powerful 32-bit 3D printer control board with STM32F103ZET6

    可见对于Mks-Robin-Nano,v1.2支持3.5寸robin触摸屏。都是通过主板的sd卡烧录,烧录时必须要有bin和font和pic文件夹一起在sd卡根目录下,烧录才能进行。

    https://github.com/makerbase-mks/Mks-Robin-Nano-Marlin2.0-Firmware

     

    https://github.com/makerbase-mks/Mks-Robin-Nano-Marlin2.0-Firmware/blob/master/config/MKS%20Robin%20nano%20v3.0/Config%20example%20for%20suport%20sd%20card/Config%20example%20for%20Ender3(4988)/Configuration.h

    默认marlin设置是MKS 3.5寸robin tft屏幕

    Mks-Robin-Nano之所以可以预览图像其实是切片的时候加入了图片信息到g-code里头。当读取屏幕读取g-code时,即可显现并预览图像出来。要在cura切片加上插件plugin,Cura在切片时才会输出带模型图片信息

    同样的MKS-TFT在2019年底更新后也有图像预览功能,其实都是切片的时候加入了图片信息到g-code里头。

    plugin已经变成wifi命名插件,功能都是可以让切片加入图片预览图形信息

    https://github.com/makerbase-mks/mks-wifi-plugin

    About the gcode file preview

    The images should be added to gcode file when slicing, and MKS has developed the plugin for Cura to make it.

     

     

     

    可以用MKS-TOOL去客制化robin屏幕ui界面

    https://github.com/makerbase-mks/MKS-TOOL

    MKS-tool网页客制化robin屏幕ui界面

    https://baizhongyun.cn/home/mkstoolview

    VSCode如何编译出marlin的bin文件

    https://marlinfw.org/docs/basics/install_platformio_vscode.html

     

    MKS SBASE is a powerful 32-bit 3D printer control board with LPC1768.

    MKS SBASE如何更新板载固件。LPC1768引导从sd卡上导入bin,并加载到它的flash里头

    https://github.com/makerbase-mks/MKS-SBASE/tree/master/Firmware

    https://github.com/makerbase-mks/MKS-SBASE/tree/master/English/firmware

    MKS-Robin-lite3如何更新板载固件

    https://github.com/makerbase-mks/MKS-Robin-lite3/tree/master/firmware/MKS%20Robin%20lite3-Marlin-bugfix-2.0.x/mks_bin

    总结

    以上是生活随笔为你收集整理的MKS TFT(3d打印触屏屏幕)如何定制客制化图标及logo制作说明的全部内容,希望文章能够帮你解决所遇到的问题。

    如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。