7
WiFi Installation (english)
Oliver Köster edited this page 2022-06-13 09:43:17 +02:00
This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Installation and configuration of an ESP8266 WiFi module

This section is based on the great project ESP3D by luc-github and enables the relatively simple Integration of an ESP Wifi module into a 3D printer. Normally you have to sacrifice the USB port for this, because you need a serial interface for connection, but with the right firmware this can be implemented via a second hardware serial interface, especially with Trigorilla mainboards. In addition, you are not limited to the previous maximum USB serial speed, but can also operate the second interface about twice as fast, which even enables (slow) file transfer via WiFi to the SD card.

What we need

(The above links are affiliate links to Aliexpress. You can of course also buy elsewhere. This is not important to me. But you don't pay on it if you use the links and support this project somewhat. Thank you :))

Connection of the breakout board

Solder on the EXP1 header

The EXP1 connector is typically used for graphic displays. In Anycubic printers with a touchscreen, however, this connection is completely unoccupied and is usually hidden under a small plug-in circuit board.

/images/ESP_01.jpg

Only 4 pins have to be soldered to this connection. UART requires RX (receive), TX (send) and a power supply. Since the power supply on the board works with 5 volts, an ESP01 cannot be operated without a voltage converter! Hence the aforementioned breakout board, which already contains it.

/images/ESP_02.jpg

After the 4 lines (color-coded if possible) have been soldered on, the board can be reinstalled. How you lay the cables now is up to you. I led the cables directly under the board to the USB port and there led them to the outside through one of the ventilation holes. To the outside, because the printer's housing is made of metal and could otherwise severely restrict WiFi reception.

/images/ESP_03.jpg

The individual Dupont plugs are now plugged into RX, TX, 5V and GND to match the labeling.

/images/ESP_04.jpg

If you want, you can now attach the circuit board to the housing. I used one of the above adhesive pads for this. Regular double-sided tape is too thin and the contacts on the underside would touch the case. By attaching the WiFi module to the outside of the housing, it is not necessary to open the printer later for firmware updates. Simply pull out the ESP01 module, flash it and plug it in again.

/images/ESP_05.jpg

Enable wifi in firmware

In order to be able to use the WLAN functionality, it must first be activated in the firmware. To do this, the two lines SERIAL_PORT_2 and BAUDRATE_2 must be commented out, as can be seen in the screenshot. Only then is the preconfigured second port active and communication with the wifi module works.

/images/ESP_Firmware_Enable.jpg

ESP firmware flashing

To flash the firmware, we connect the ESP01 to the ESP programmer and plug it into a free USB port. We also download the ESP3D firmware for the ESP01 module.

/images/ESP_06.jpg

Which software you use to write on the ESP is up to you. I like to use the NodeMCU PyFlasher here. However, there is here a guide and a good overview.

/images/ESP01_Flash.jpg

Connect to the new WIFI Network

After flashing, we can switch the programmer so that the ESP01 boots. After about 20 seconds a new network named "ESP3D" should be found.

/images/ESP3D_Inst_01.jpg

Install web interface

After we have connected, we open a browser on the mobile phone or PC and navigate to the address http://192.168.0.1/. Here we are greeted with the setup wizard, which first asks for the web interface for ESP3D. This we download here, unzip the .zip file and upload the index.html.gz in it directly.

/images/ESP3D_Inst_02.jpg

configuration

It is important to set the baud rate to exactly 500,000, as this is the speed of the printer's new UART interface. It should then be possible to read out and change the data from the printer.

/images/ESP3D_Inst_03.jpg

If this was overlooked in the settings, you can still change all values afterwards.

/images/ESP3D_00.jpg

Complete

The following images show the web interface in an overview and in the specific printer settings. I find the option to be able to change all parameters and also the mesh directly via WiFi at any time very helpful.

/images/ESP3D_01.jpg

/images/ESP3D_02.jpg

/images/ESP3D_03.jpg

/images/ESP3D_04.jpg


Closing words

This page, as well as various installation instructions, frequently asked questions etc can also be found in the Wiki