v1.8 works on a WeMos D1 Mini

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
User avatar
mcauser
Posts: 310
Joined: Mon Jun 15, 2015 8:03 am

v1.8 works on a WeMos D1 Mini

Post by mcauser » Fri May 06, 2016 1:09 am

Successfully installed v1.8 on my WeMos D1 Mini.
The D1 mini features a ESP-12F and CH340G and found at /dev/tty.wchusbserial1410 or /dev/tty.wchusbserial1420 on my MacBook Pro.

Code: Select all

$ cd esp8266
$ make axtls
$ make
$ esptool.py --port /dev/tty.wchusbserial1420 erase_flash
$ esptool.py --baud 230400 --port /dev/tty.wchusbserial1420 write_flash -fm dio -fs 32m -ff 40m 0x00000 build/firmware-combined.bin
$ screen /dev/tty.wchusbserial1420 115200
Won't flash at anything above 230400.
Screen only works at 115200.

Detailed instructions posted here: http://forum.wemos.cc/topic/161/micropy ... 6-it-works, including setting up esp-open-sdk on a case sensitive FS.

mindrobots
Posts: 3
Joined: Fri Aug 15, 2014 12:58 am

Re: v1.8 works on a WeMos D1 Mini

Post by mindrobots » Fri May 06, 2016 1:37 pm

Thanks for sharing this!!

I had been using a NodeMCU which was having a UART REPL issue but working otherwise. I happened to have a WeMos sitting on my desk and loaded my same ESP8266 binary onto it and it started up like a champ. REPL and AP access! Now I can replace my Lua with sensibilities of MicroPython!

User avatar
platforma
Posts: 257
Joined: Thu May 28, 2015 5:08 pm
Location: UK

Re: v1.8 works on a WeMos D1 Mini

Post by platforma » Fri May 06, 2016 1:41 pm

Glad to see you got it up and running. Those WeMos things look quite interesting, especially the little OLED shield.
Adafruit has been out of huzzah boards for weeks now, so I'll be tempted to buy one of these :)

User avatar
mcauser
Posts: 310
Joined: Mon Jun 15, 2015 8:03 am

Re: v1.8 works on a WeMos D1 Mini

Post by mcauser » Fri May 06, 2016 2:23 pm

@platforma I found the little OLED shield a little too tiny at only 64x48. Beautiful display, but doesn't fit many words.
If you are considering ordering the DHT11/22 shield, get the Dual Base shield to avoid the ESP8266 warming up the sensor and skewing the results.

There are not any WeMos shields for it, but you can connect 128x32 and 128x64 OLEDs with a SSD1306.

I found cheap Nokia 5110 LCDs work great: https://github.com/mcauser/WeMos-D1-min ... 10-PCD8544
Low power consumption, 84x48 resolution, fast refresh rate, readable in daylight without the backlight, nice and cheap.

I also have these displays working:
1.44" 128x128 TFT with ST7735 (green tab)
2.2" 320x240 TFT with ILI9341 (green tab and red tab, not touchscreen, but does have a sd card slot)
08x2, 16x2 and 20x4 Character LCDs with HD44780 and PCF8574T

User avatar
platforma
Posts: 257
Joined: Thu May 28, 2015 5:08 pm
Location: UK

Re: v1.8 works on a WeMos D1 Mini

Post by platforma » Fri May 06, 2016 2:34 pm

Are you using the Arduino library to drive the ST7735? We had a port a while ago by someone to pyboard, but I have recently started rewriting it as a more generic driver and was testing it with ESP.

User avatar
mcauser
Posts: 310
Joined: Mon Jun 15, 2015 8:03 am

Re: v1.8 works on a WeMos D1 Mini

Post by mcauser » Mon May 09, 2016 7:15 am

Yeah, currently using a modified version Adafruit's ST7735 Arduino library.

Was going to have a crack at porting it to python, but since you've already started, I'll instead work on my other TFT ILI9341 (240x320).
There is also an Adafruit library it.

torwag
Posts: 202
Joined: Fri Dec 13, 2013 9:25 am

Re: v1.8 works on a WeMos D1 Mini

Post by torwag » Wed May 11, 2016 2:10 pm

I can confirm it works here too... even Apple-less, all under Arch Linux as base system ;)
However, for my boards, it seems the heartbeat LED is reversed. a Pin.low() will enable the LED and vice versa. Not a big think just want to mention.

Still struggle to get wifi working. Guess I am missing something here. I can see a SSID "MicroPython-83bf4e" but have no idea about the password.

Llwy
Posts: 34
Joined: Thu Mar 10, 2016 7:43 am

Re: v1.8 works on a WeMos D1 Mini

Post by Llwy » Wed May 11, 2016 5:27 pm

According to the tutorial, default password is "micropython"

Llwy

torwag
Posts: 202
Joined: Fri Dec 13, 2013 9:25 am

Re: v1.8 works on a WeMos D1 Mini

Post by torwag » Thu May 12, 2016 7:56 am

The password is "micropythoN" note the capital N according to the tutorial.
I would love to get this info as well as some very very first start into the readme of the esp8266 port.
It was kind of hidden in the tutorial.
Will try to get a patch for the doc upstream

User avatar
platforma
Posts: 257
Joined: Thu May 28, 2015 5:08 pm
Location: UK

Re: v1.8 works on a WeMos D1 Mini

Post by platforma » Fri May 13, 2016 12:55 am

Just an update: here's my WIP version of ST7735 driver: https://github.com/hosaka/micropython-st7735

Post Reply