View Issue Details

IDProjectCategoryView StatusLast Update
00001853D machine toolbuildpublic2017-03-29 12:42
ReporterDigitalMy 
PrioritynormalSeveritymajorReproducibilityN/A
Status assignedResolutionopen 
Summary0000185: WiFi interface for controller of 3D printer: with web server
DescriptionESP8266 "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)
TagsNo tags attached.

Relationships

related to 0000180 assignedDigitalMy Design and produce universal controller for 3D printer: with touch screen display 

Activities

DigitalMy

2016-05-01 22:45

administrator   ~0000353

Last edited: 2016-09-13 15:21

View 6 revisions

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.

DigitalMy

2016-05-02 09:55

administrator   ~0000354

Last edited: 2017-03-27 16:42

View 9 revisions

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).

DigitalMy

2016-09-10 02:33

administrator   ~0000423

Last edited: 2016-09-11 09:57

View 2 revisions

Used the following software modules in "nodemcu" firmware:
file
wifi
gpio
uart
net
tmr

DigitalMy

2016-09-10 09:23

administrator   ~0000424

Last edited: 2016-09-11 09:58

View 6 revisions

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

DigitalMy

2016-09-10 10:15

administrator  

Gizwitswebsitebuttons.zip (751 bytes)

DigitalMy

2016-09-13 00:27

administrator   ~0000425

Last edited: 2016-09-13 11:44

View 6 revisions

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>

DigitalMy

2016-09-14 02:33

administrator   ~0000426

Last edited: 2017-03-25 21:40

View 9 revisions

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.

DigitalMy

2017-03-25 14:52

administrator   ~0000497

Last edited: 2017-03-26 23:20

View 9 revisions

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.

DigitalMy

2017-03-25 15:37

administrator  

esp202pin.png (208,976 bytes)
esp202pin.png (208,976 bytes)

DigitalMy

2017-03-25 21:50

administrator   ~0000498

Last edited: 2017-03-30 18:21

View 7 revisions

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

DigitalMy

2017-03-29 12:42

administrator   ~0000499

Last edited: 2017-04-02 11:07

View 4 revisions

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).