View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000185 | 3D machine tool | build | public | 2016-05-01 22:43 | 2017-03-29 12:42 |
Reporter | DigitalMy | ||||
Priority | normal | Severity | major | Reproducibility | N/A |
Status | assigned | Resolution | open | ||
Summary | 0000185: WiFi interface for controller of 3D printer: with web server | ||||
Description | ESP8266 "nodemcu" module, newest is ESP-14 *default option Wireless interface should implement the following: 1. Wireless connectivity "N" type at 300Mbps rate 2. Web server for printer monitoring and control (HTTP port 80) 3. Interface configuration: static address, network name and password - with saving settings, using web browser 4. Detect device (machine) on the network (SSDP) 5. Exchange data with machine using UART serial port 6. Be transparent WiFi to Serial adapter for client applications (TCP socket server) 7. Save and read data from SD memory card (web pages, settings, gcode files) | ||||
Tags | No tags attached. | ||||
|
Test v3 NodeMcu Lolin all-in-one module board with ESP8266MOD AI-Thinker ESP-12E module with integrated serial to USB converter CH340G with 5V to 3.3V power adapter but it has 3.3V Rx Tx uart... so, still need level converter for RX and TX. Use ESP8266Flasher.exe to upload nodemcu_float_0.9.6-dev_20150704.bin Use ESPlorer.jar to write init.lua and other lua scripts: dofile("main.lua"); dofile("webserver.lua"); dofile("RAMPS.lua"); Power failed when joined with "NodeMcu Base ver 1.0". I found one of 2 SMD (diode) burned near reset button. There was one for 5V in pin, and one for USB-in 5V - both joined into one track of "inner" curcuit, going directly to AMS1117 3.3v adapter. |
|
Test ESP-201 module with 2dBi external antenna. In Arduino IDE 1.6.8 added http://arduino.esp8266.com/stable/package_esp8266com_index.json In boards manager installed v2.2.0 of esp8266 http://arduino.esp8266.com/nightly/package_esp8266com_index.json needed for v2.4.0 package Arduino has different pin numbering: "Serial" port is UART0, uses GPIO1(TX) and GPIO3(RX). |
|
Used the following software modules in "nodemcu" firmware: file wifi gpio uart net tmr |
|
Tested Gizwits cloud development board with ESP-12F (Witty) sandwich stacked with usb to com adapter it has 3-color LED, AMS1117 3.3V, button (readable), microUSB port for power in 5V used ESPlorer for code execution over serial port, got working website and LED Pins soldered like: LDR = 0 BUTTON = 2 led0= 4 --inernal inverted led1= 7 --blue led2= 6 --green led3= 8 --red |
|
Gizwitswebsitebuttons.zip (751 bytes) |
|
Chosen in Arduino IDE library: ESP8266 version 2.3.0 - by the link above. Implemented the following services: SSDP (Simple Service Discovery Protocol) - for device (Windows) detection; WebServer - for configuration and management and monitoring. WifiServer - listen to TCP port for client data. SSDP gives error with windows 10 client: "The properties for this item are not available." \possible fix: install KB3140745 Compared with IP-camera SSDP xml. Missing <modelDescription> and <serviceList> |
|
Source links: https://github.com/toxuin/ESPRINTER https://github.com/luc-github/ESP3D *default https://github.com/lhartmann/esp_rtos_reprap https://github.com/sarchar/3DPrinterWiFi Tested another custom simple procedures. We have wireless connectivity with manager, HTTP, SSDP, now need Serial passthrough (TCP socket - to - UART). Module esp8266 successfully transmit (Tx) messages to RAMPS using "Serial", but nothing comes back from RAMPS to esp8266 now. Also tested send back from esp8266 to TCP client, no data comes by serial from RAMPS. Tested Serial1 (Tx) on esp8266 for debug messages, they go to some other board (used Arduino Uno). Test from RAMPS to other board now. |
|
Tested ESP-01/ESP-202 serial WiFi board (YISON): it has ESP-202 format soldered module (may be ESP-12F), and has 8-pin socket header for ESP-01 module, it has A-B double jumper switch near ESP01 header for serial port (CH340G): upper TX, lower RX - connection choice: side A (both jumpers) for ESP-202 and side B (both jumpers) for ESP-01. It has RGB LED. It has ON-OFF switch. S1 jumper: installed for flash programming mode, removed for running code from flash (regular start). Change jumper state with power off. S2 DIP switch: 1=ON,2=OFF - ESP-202 ON, ESP-01 OFF 1=OFF,2=ON - ESP-202 OFF, ESP-01 ON It has 2-pin power input 5.0V, paralleled with mini-USB. These 2 pins are used. It has 3-pin serial port, "RXD" is 5.0V (Tx) and "TXD" is 3.3V (Rx). These 2 pins are used. They are labeled opposite, like: to which pin to connect on other board. https://r3wald.github.io/YISON-ESP-01-ESP-202-Development-Board/ Connected RX, TX, G0 and 5V from "corner" pins to RAMPS1.4 (UART). Serial data exchange works. Tested speed 250000. |
|
|
|
Tested ESP3D uses: 1) Current GIT needs v.2.4.0 ESP8266 library for Arduino IDE https://github.com/esp8266/Arduino 2) tools/ESP8266FS/tool/esp8266fs.jar plugin for upload of files to SPIFFS https://github.com/esp8266/arduino-esp8266fs-plugin/releases 3) it needs clock speed set to 160Mhz (in Arduino IDE) Flash of filesystem (1MB esp3d.spiffs.bin) may be done to offset 0x00300000 (choose 1MB SPIFFS) or at 0x00100000 (choose 3MB SPIFFS). Tested with Marlin 1.0.4 in RAMPS1.4. Used 4 inner row pins in AUX-1: 5.0V (from Arduino Mega2560 AMS1117-5.0 power) + GND (common) + TX0 (Arduino pin D1) + RX0 (Arduino pin D0). Found problems in esp3d (used D1-mini): 1. cannot upload file to SD-card on RepRap controller: it starts to heat up and fails to upload 2. cannot delete file from SD-card on RepRap controller, cannot read full name of file Updated Marlin to version 1.1.0-RC8, #define LONG_FILENAME_HOST_SUPPORT |
|
Tested ESP-01S module with 1MB flash memory. Upload firmware with USB-serial adapter CH340G. Use on printer with 5V arduino UART adapter. Set flash memory frequency to 40MHz in IDE. ESP8266EX frequency 160MHz. Used 512KB for EEPROM + 512KB for SPIFFS. As for ESP3D, it fails to start with CAPTIVE_PORTAL_FEATURE on this module, as well as on ESP-01 (1MB). |