Code Monkey home page Code Monkey logo

cinetryx / marlin_2.0.x_beta_alfawise_ux0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hobiseven/marlin_2.0.x_beta_alfawise_ux0

0.0 1.0 0.0 5.5 MB

Port of Marlin 2.0.X bugfix 14/04/2019 ( resync 3/05) snapshot to Alfawise Ux0 boards, using awsome JMZ52 code

License: GNU General Public License v3.0

C 45.08% C++ 52.95% Makefile 0.12% Objective-C 1.21% Python 0.31% HTML 0.01% CSS 0.01% JavaScript 0.01% Shell 0.23% CMake 0.03% OpenSCAD 0.03% G-code 0.01%

marlin_2.0.x_beta_alfawise_ux0's Introduction

Marlin_2.0.X_Beta_Alfawise_Ux0

This is the initial commit of the Marlin 2.0.X code port to Alfawise Ux0 boards. ONLY COMPILES with STM32 5.3.0 Libs or above

This is based on a Marlin2.0.x_bugfix pull 14th April 2019 + custom code modified from JMZ52 + Hobi code specific for Alfawise. Marlin code has then be synched to 03rd May 2019, and they have already merged a part of our common changes.

To build the code, you need to install Vscode + Platformio. Detailled tutorial in French available at that URL :

https://www.lesimprimantes3d.fr/forum/topic/18260-alfawise-u20x-u30-marlin-2x-firmware-alternatif/

Development

For developpers, or debugging if the screen does not work :

  • ILI9341 support / init code
  • Improved detection for ILI9341 screens that do not have the proper identifier in register 0x04 of the driver chip,* but in alternate ID register 0xD3. This is selectable in the Config.h Alfawise section
  • Removed SPI hardware driver for touch screen management, and replaced it by a pure software SPI as the Longer3D board designer mixed pins MOSI and MISO while routing the board
  • Changed CPU from STM32F1203ZE to STM32F103VE
  • Changed the Marlin pins file for Alphawise Ux0 boards
  • Disabled JTAG debug, but kept ST Link debug capability/SWD
  • Use the original Alfawise bootloader to update from SD Card. For STLink flash, please comment the py script in platformio.ini and rebuild.
  • Integrated touchscreen calibration in Configuration/Touchscreen menu (to get your values)
  • Fixed the runout sensor

To be done

  • Store the calibration results directly in settings
  • Include some Z Probes configuration samples
  • Fix the Powerloss recovery resume (seems a Marlin bug for now)

Configuration

  • 1 extruder with 1 temperature probe
  • 1 heater bed with 1 temperature probe. U20 or U30 flag to be set at the beginning of config.h
  • 4 drivers type A4998 for the 3 axis + extruder
  • Homing on X,Y,Z on (-) direction. No Xmax,Ymax and Zmax declared.
  • Filament detection has been assigned to Xmax pin, like the alfawise fw. Users can modify and use this.
  • SD-Card support for the code.
  • 2 serial ports running at 250,000 baud (on the alfawise USB port, which is directly connected to STM32 CPU)
  • Support in theory only 2 types of LCD screen : ILI9341, ST7798V. However Alfawise Ux0 printers may have 6 different types of screens.

In case you need to add your specific 320x240 screen if the LCD is not one of the 2 above: All the screen detection is in file u8g_dev_tft_320x240_upscale_from_128x64.cpp, at line 275. Place a breakpoint here to check the value. 0 is bad, and means an alternate ID method is needed. ILI9341 can have its ID in register 0x04 sometimes or in alternate ID4 register 0xD3. Returned value for 0xD3 is 0x9341. The LCD register to be checked for ID is configurable in Config.h.

In the same file additional screen initialization sequences canbe added if you have a screen different from the 3 listed above. Initialization sequences are at lines 132-177.

โš ๏ธ Warning

We have tested the code on U30 and U20 as good as we could but bugs may remain. YOU ARE WARNED. I will NOT do ANY customer support.

marlin_2.0.x_beta_alfawise_ux0's People

Contributors

tpruvot avatar acenotass avatar cptwobbles avatar fourmi avatar marcio-ao avatar timmmoore avatar coliss86 avatar sensei73 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.