How to Configure a Computer to Read an External 24v on/off Pulse Over Time

Lately the new electronic boards of the company BigTreeTech (SKR V1.4 and SKR ane.4 Turbo) are enjoying quite a notoriety within the earth of 3D printing. And information technology is not surprising, since they have perfectly understood the "Maker" movement and have adapted to the needs of users and potential clients.

Having dissimilar sockets for all types of displays, specific BLTouch/3DTouch connectors, ease of apply with TMC drivers without external wiring, specific connectors for LED strips, removable protection fuses and a few other things are just some examples of how information technology has targeted BigTreeTech the market quite successfully.

In fact, in our Telegram channel of 3DWork frequently enough people with this type of electronics enter to ask questions. So I had in mind for some time to fix a guide to configure Marlin 2.ten with SKR v1.4 / SKR v1.4 Turbo electronics + TMC2209 Sensorless drivers. And, of form, its first-class TFT35 V3.0 hybrid display, which seems to me a real virgin if I am honest.

Then let's get to it without farther delay. And don't forget to add together us to our social networks (Facebook, Twitter, Instagram), this way you will back up the 3DWork project.

Introduction to SKR electronics

In today's article we are going to focus on how to configure our SKR V1.iv / V1.four Turbo electronics, along with TMC2209 Sensorless drivers and the new hybrid TFT35 V3.0 display.

Sensorless, in case you don't know, ways non putting mechanical limit switches on the X and Y axes. Modern TMC2209 drivers allow us to perform this function and salvage united states time, money and unnecessary wiring.

In fact, if you already accept these limit switches, y'all can use them every bit filament cut sensors. And then at least you lot could give a new utility and it would not be left in the forgotten drawer.

I am aware that you may not have the same display or your drivers are different. Yet, even if this were the case, quite a office of the commodity will be useful to you, and yous only have to skip the component and discover your own configuration.

As well, if you experience similar it, you tin always visit usa at our Telegram channel, and if the necessary information is non documented help united states of america complete the article to facilitate the same procedure for other users.

Technical specifications and connections

SKR v1.4 and v1.4 Turbo boards have an exact size of 110 ten 85mm (102 ten 76mm between holes). Their architecture is ARM Cortex-M3 (CPU) and they can exist powered interchangeably at 12V and 24V (5A-15A).

They have a connector for WiFi modules ESP-01S, can employ different communication modes for their drivers (SPI, UART and STEP / DIR) and support 10, Y, ZAM, ZBM, E0 and E1 motors.

Then I get out you some official images of the manufacturer where you can come across all the connections and sockets of the electronic v1.iv and v1.iv Turbo.

Comparison betwixt SKR V1.3, V1.4 and V1.4 Turbo

The differences are more marked when we compare a SKR v1.3 electronics with its college versions v1.4 and v1.iv Turbo. As you lot tin see in the image above, the latest electronics add quite interesting functions. Double interface for the Z centrality, support for external power modules, back up for LED strips, and some other things.

If we only compare the concluding two models, the just thing that differentiates the SKR v1.iv electronics from the v1.four Turbo is that it has a superior microcontroller. In the v1.4 model we tin find a 100 Mhz ARM Cortex-M3 micro, while in v1.4 Turbo the micro it presents can accomplish frequencies of up to 120 Mhz. This is certainly a remarkable twenty% increase in procedure speed, which is no small feat.

In this other table you tin see some other comparison on different aspects of the electronic v1.iii and v1.four / 5.fourteen turbo, mainly the possibility of advice via WiFi.

This requires a specific module for this task, and manual speeds are certainly quite low. Sending a GCode of some megabytes tin get yous desperate, so at this point it is more advisable to use a Raspberry Pi with Octoprint for such a task.

If you do not know what Octoprint is and the possibilities it tin can offer yous, I recommend you read the article Octoprint: Manage your 3D printer remotely with Raspberry Pi and Octopi

Even so, although these tables extracted from official SKR support indicate that information technology does not have WiFi back up, this does non in whatsoever style imply that you cannot install one if you wish. It simply means that the v1.3 versions practise not have a specific port to connect them to, but you could plug your WiFi module into the TFT connector and remap information technology into Marlin (for example).

Necessary components

Here I exit you some of the components that appear in today's article. It is my duty to inform you lot that they are affiliate links to different online marketplaces online stores.

If by chance you use them, the price of the product will be the same equally if you lot access regularly. And 3DWork will have a small commission left to help maintain this website.

SKR v1.four
SKR v1.4 Turbo
BTT TMC2209 v1.2
MKS TMC2209 v1.0
MKS TMC2209 v2.0
FYSETC TMC2209 v3.0
ERYONE TMC2209 v3.0

Or if you wish, you can apply our component search engineMarkets.sx, where y'all can compare prices in unlike Marketplaces (Amazon, Aliexpress, Banggood, etc.) with a unmarried search and very easily.

Preparing the project

Visual Studio Lawmaking

Actualiza tu impresora 3D a Marlin 2.x.x con Visual Studio Code y Platform.io

Before starting to edit Marlin, I recommend that you install a good code editor. For this purpose, the platonic – and recommended by me – is that y'all install Visual Studio Code. Not just is it a powerful code editor, but it besides has a large number of extensions, and you can even compile Marlin directly from it.

Visual Studio Code tin be freely downloaded (completely free) from your project's website at next link. And one time you have edited Marlin and the necessary parameters – which you lot will detect a footling afterwards – you lot tin compile it and upload your new firmware to the printer.

In this article you tin can find more information on how to correctly compile your new Marlin firmware and upload it directly to your printer: Configure and update your 3D printer using Visual Studio Code and Platform.io

Downloading Marlin 2.x

Guía completa para configurar Marlin 2.0.x desde cero y no morir en el intento

The next matter you should do, of course, is download the Marlin sources – or source lawmaking – to your estimator. To practice this nosotros volition get to its official website and access the download section.

Here I exit you the direct link, to that you lot can save some time. I usually download the firmware LATEST RELEASE, just below the word DOWNLOAD. In that location, click on the 2.0.x.naught link, which is the one available today for version 2.0.5.3

Delight note, notwithstanding, that new updates and revisions are released regularly. Then it is possible that when you read this article at that place is a higher version and its proper name is different. In that instance it would not be a major problem, download the latest version and that'south information technology.

Another pick is to download the version of the manufacturer Bigtreetech, although I do not know the configuration that will be established and of course it volition not adapt to the mechanics of your automobile. Firmwares are available on Github at side by side link.

Using 3DWork Marlin Builder

Although, in the previous section we recommend you download Marlin directly from the official page, you can besides use our Marlin Architectthat nosotros prepared some time ago in 3DWork.

Marlin Builder offers you ii possibilities. The beginning is to straight configure the firmware with the desired parameters from your browser and download it after. In this fashion, yous will save a lot of work in this regard and then y'all will only have to finish configuring your SKR electronics with TMC drivers with the information in this article.

The 2d option Marlin Builderoffers you to download a serial of pre-configured firmwares officially offered past Marlin. I personally would search between manufacturers and firmwares if your printer exists and I would use it as a base, since it volition exist absolutely everything previously configured.

Then you just take to follow the instructions in this article and you lot can enjoy your new electronics quickly. You simply have to select the brand and model from a dropdown and printing the download button (see image above).

Check the board supply (12V / 24V)

If you look closely, in that location is a jumper in the central function of our SKR v1.4 and v1.4 Turbo electronics that indicates the style of feeding the board.

Before connecting your electronics you must select the ability that you lot are going to supply to your board correctly (5V USB or 12 / 24V VDD). If you are going to power the board from a USB cable, you lot must choose the USB option, and if you use a power supply, the VDD pick.

My electronics is connected to my 24V power supply, and so I choose the VDD selection every bit you can see in the image above (click to overstate)

Another important detail is that the SKR electronics back up 12V or 24V. Regardless of the ability source you apply, you should always utilise components that match it.

If your ability supply is 24V, the fans you employ must be 24V (otherwise you can irreparably harm them). Probably it was not necessary to remember information technology but it never hurts, since there are several components to consider.

Configuring the firmware (Marlin)

Before starting with the Marlin configuration, if y'all are starting from scratch to prepare your new firmware, I recommend that yous read this other article before: Consummate guide: Set up Marlin two.0.x from scratch and not die trying.

The reason is that in this article I am only going to explain how to configure the SKR v1.4 and SKR v.fourteen Turbo electronics to use all the power that the TMC2209 (Sensorless) drivers offer u.s., configuring themselves "intelligently" and their "hybrid" brandish TFT35 v3.0

The rest of the components of the printer such equally the number of extruders, speeds, printer size, temperature parameters and many other things we already explained previously in the article that I indicated a few lines above (Consummate guide of Marlin).

It wouldn't make much sense deploying once again all that information here as we will duplicate content without any need. Well antiseptic this point … Permit'due south kickoff!

Modifying "Platformio.ini" file

The first file that nosotros are going to change is the "Platformio.ini" to indicate to our compiler what type of microprocessor we have in our electronics. If we exercise non signal it Visual Studio Code y'all would have problems compiling our firmware.

This file is located inside the Marlin firmware, exactly in the root directory. Here you have the values ​​depending on which of the two we are going to install on your printer.

Electronic board type ENV_DEFAULT
SKR v1.4 LPC1768
SKR v1.iv Turbo LPC1769

Already knowing what values ​​we accept to use, nosotros volition edit "Platformio.ini" and in the field "env_default" we volition put the chord to our electronics. In my case I have a v1.four Turbo so I directly added "LPC1769"

[platformio] src_dir = Marlin boards_dir = buildroot/share/PlatformIO/boards default_envs = LPC1769 include_dir  = Marlin        

Modifying "Configuration.h" file

Once the microprocessor type of our electronics is configured in Visual Studio Code, we proceed to modify the ii files that are necessary in Marlin.

Nosotros will outset with the parameters to configure the communication ports (main and secondary) and the advice speed. In this last parameter I usually put 250,000bds simply if yous experience whatever problem, use 115,200bds.

/** * Select the serial port on the board to use for advice with the host. * This allows the connexion of wireless adapters (for instance) to non-default port pins. * Serial port -1 is the USB emulated serial port, if available. * Notation: The commencement serial port (-1 or 0) will always be used past the Arduino bootloader. * * :[-i, 0, 1, 2, 3, 4, v, 6, 7] */ #define SERIAL_PORT 0  /** * Select a secondary serial port on the board to use for communication with the host. * :[-1, 0, i, 2, iii, iv, five, 6, 7] */ #define SERIAL_PORT_2 -1        
/** * This setting determines the advice speed of the printer. * * 250000 works in most cases, just you might endeavor a lower speed if * you commonly experience drop-outs during host printing. * You may attempt up to 1000000 to speed upwardly SD file transfer. * * :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, million] */ #define BAUDRATE 250000        

At present we are going to tell Marlin exactly what type of electronic lath our printer has. I exit you lot a list here of the different SKR models and on your correct the parameters that you must enter:

Electronic board blazon Parameter
SKR v1.1 BOARD_BTT_SKR_V1_1
SKR v1.3 BOARD_BTT_SKR_V1_3
SKR v1.4 BOARD_BTT_SKR_V1_4
SKR v1.4 Turbo BOARD_BTT_SKR_V1_4_TURBO

I accept a v1.4 Turbo, so I indicate information technology to Marlin equally follows:

// Choose the proper noun from boards.h that matches your setup #ifndef MOTHERBOARD #define MOTHERBOARD BOARD_BTT_SKR_V1_4_TURBO 

0 Response to "How to Configure a Computer to Read an External 24v on/off Pulse Over Time"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel