logo elektroda
logo elektroda
X
logo elektroda

[Solved] WeMOS D1 mini ESP8266-12F CH340, ArduinoIDE 1.8.9 WinXP - does it work or not?

Gelip 135 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21810412
    Gelip
    Level 35  
    I want to compile and program the WeMOS D1 mini in ArduinoIDE

    I am using WinXP and ArduinoIDE 1.8.9. I have tested different versions of board esp8266 and only with version 2.5.0 it compiles and uploads.

    Can someone write briefly how the WeMOS D1 mini behaves, how the LEDs flash, how to use it?

    When uploading, the blue LED is on, in ArduinoIDE you can see that it has compiled (with a warning) and is uploading:
    Screenshot of ArduinoIDE 1.8.9 showing uploaded sketch and upload completion message.

    When I connect WeMOS to USB, the blue diode flashes once and in a moment in Windows I can see the Wifi network ESP-cipheres Unsecured

    In the sketch I gave my Wifi network name, password and IP of my network but I don't see any device at the specified IP address on the local network.

    What is wrong?

    Full name from the allegro where I bought it: WeMOS D1 Mini NodeMCU ESP8266-12F ESP-12 CH340

    Added after 15 [minutes]:

    Specifications:
    WeMOS D1 mini module with microUSB connector and technical specifications on the left Details

    When I set up a static IP in Windows, e.g. 192.168.1.4, it seems to connect me to this network, but so what.

    Added after 18 [minutes]:

    What Flash Size should be selected in ArduinoIDE ? I think it programs on each, or is it indifferent to what is selected ?
    Screenshot of Flash Size settings for WeMOS D1 mini in Arduino IDE

    Added after 9 [minutes]:

    Here someone wrote that setting Flash Size 4M (1M SPIFFTS) helped:
    https://www.elektroda.pl/rtvforum/topic3695403.html#18706362

    It compiles, uploads, but doesn't do the job and I don't know what's going on.
  • ADVERTISEMENT
  • #2 21811280
    Gelip
    Level 35  
    I soldered the PS/2 cable, WeMOS gets power, WebServer works but the computer I connect to the PS/2 keyboard port doesn't detect the keyboard and it doesn't work.

    I have compiled with the ps2dev library the latest i.e. 0.0.4 and it is the same as with version 0.0.1 - message:
    WARNING: library ps2dev claims to run on (avr) architecture(s) and may be incompatible with your current board which runs on (esp8266) architecture(s).
    Sketch uses 339460 bytes (32%) of program storage space. Maximum is 1044464 bytes.
    Global variables use 30692 bytes (37%) of dynamic memory, leaving 51228 bytes for local variables. Maximum is 81920 bytes.
    Uploading 343600 bytes from C:\DOCUME~1\xxx\LOCALS~1\Temp\arduino_build_732377/d1mini.ino.bin to flash at 0x00000000
    ................................................................................ [ 23% ]
    ................................................................................ [ 47% ]
    ................................................................................ [ 71% ]
    ................................................................................ [ 95% ]
    ................                                                                 [ 100% ]
    


    Why doesn't it work?

    Sketch d1mini.ino is here - I just changed my SSID, password and IP details:
    https://github.com/remy/ps2-remote
    https://remysharp.com/2021/04/14/building-a-ps2-remote-keyboard

    I soldered according to this:
    Wiring diagram of a PS/2 connector to a WeMos D1 mini board with labeled wire colors

    Added after 15 [minutes]:

    From the script it seems that every key press on the WebServer page should appear in the Serial window and the LED on the WeMOS should flash and nothing happens - something is wrong, just what? My WeMOS has different pins than the older version of WeMOS ???? The author refers to this page:
    https://chewett.co.uk/blog/1066/pin-numbering-for-wemos-d1-mini-esp8266/
  • #3 21811362
    Gelip
    Level 35  
    Jeeeest :-) :-)

    I changed the IP 160 to 167 in the sketch - the one shown by WeMOS when I compiled with IP 160. Now it bangs nicely :-) Previously on WebServer I had Status: 0 in red at the bottom now I have Status 1 in green:
    WeMOS D1 mini ESP8266-12F CH340, ArduinoIDE 1.8.9 WinXP - does it work or not?

    Great stuff - I'm typing on my laptop and WeMOS plugged into the ZX Spectrum emulator's PS/2 port
    WeMos ESP8266 module connected via PS/2 cable to a ZX Spectrum emulator

    • WinXP SP2 64-bit
    • ArduinoIDE 1.8.9
    • ESP8266 Board 2.5.0
    • ps2dev 0.0.3
    • WebSockets 2.3.5


    And these ArduinoIDE settings:
    WeMOS D1 mini ESP8266-12F CH340, ArduinoIDE 1.8.9 WinXP - does it work or not?
ADVERTISEMENT