Updated WiFi Installation (english) (markdown)

Oliver Köster
2021-09-18 09:53:49 +02:00
parent 0f5ba1688d
commit 55528f0a8a

@@ -1 +1,110 @@
This Tutorial is currently only available in [german](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/wiki/WLAN-Installation-(deutsch))
# Installation and configuration of an ESP8266 WiFi module
This section is based on the great project [ESP3D](https://github.com/luc-github/ESP3D) by [luc-github](https://github.com/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
- Anycubic 3D printer with Knutwurst's MEGA Hybrid Firmware from [Version 1.3.0 Beta 3](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/releases)
- [ESP3D Firmware](https://github.com/knutwurst/ESP3D/releases) for the ESP01 module.
- [ESP3D-WebUI](https://github.com/luc-github/ESP3D-WEBUI/releases)
- [ESP01 module and breakout board](https://s.click.aliexpress.com/e/_AOI1W4). The breakout board on which the ESP01 is plugged contains not only an LDO voltage converter from 5 to 3.3 volts, but also a level converter for RX and TX. So all we want :)
- [ESP01 USB Programmer](https://s.click.aliexpress.com/e/_9g6kNq)
- [20cm cable with Dupont connector](https://s.click.aliexpress.com/e/_9Iw3wG).
- [Soldering iron](https://s.click.aliexpress.com/e/_9hpVjk) (If possible with T12 tips)
- [solder with flux core](https://s.click.aliexpress.com/e/_AVDM04)
- PC with USB
- Some time
- Optional: [Double-sided adhesive pad](https://s.click.aliexpress.com/e/_AXEBLI) to stick the module on the outside or inside of the printer.
(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.
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP_01.jpg | width = 800px]]
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.
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP_02.jpg | width = 800px]]
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.
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP_03.jpg | width = 800px]]
The individual Dupont plugs are now plugged into RX, TX, 5V and GND to match the labeling.
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP_04.jpg | width = 800px]]
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.
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP_05.jpg | width = 800px]]
## 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](https://github.com/knutwurst/ESP3D/releases).
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP_06.jpg | width = 800px]]
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](https://nodemcu.readthedocs.io/en/latest/flash/).
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP01_Flash.jpg | width = 800px]]
## 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.
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP3D_Inst_01.jpg | width = 500px]]
## 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](https://github.com/luc-github/ESP3D-WEBUI/releases), unzip the .zip file and upload the **index.html.gz** in it directly.
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP3D_Inst_02.jpg | width = 800px]]
## 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.
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP3D_Inst_03.jpg | width = 800px]]
If this was overlooked in the settings, you can still change all values afterwards.
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP3D_00.jpg | width = 600px]]
## 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.
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP3D_01.jpg | width = 1280px]]
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP3D_02.jpg | width = 800px]]
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP3D_03.jpg | width = 800px]]
[[https://raw.githubusercontent.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/master/images/ESP3D_04.jpg | width = 800px]]
***
## Closing words
This page, as well as various installation instructions, frequently asked questions etc can also be found in the [**Wiki**](https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/wiki )
***
### If you like what I do you can buy me a coffee*: [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/oliverkoester)
<sub>*It doesn't have to be a generous donation. A few cents are enough to show me who is interested in further development. So the motivation stays and I just know that I am not programming for the bin ;)<sub>