I tend to plug the Wemos directly into the USB port on my laptop and use the "flasher" program that comes in the same bundle as ESP Easy.
i.e. When you unzip the firmware you should see an app called ESP8266.
If you run this it asks for the Port number your Wemos is plugged in to and the filename for the firmware.
You don't need to put the Wemos into programming mode as the Wemos has a interface-controller-chip on-board that does it all for you.
Once you have flashed the device it should create a WiFi hotspot that you can connect to and then login to the Control panel at URL 192.168.4.1
Here you can setup details of your primary and secondary WiFi networks, node name etc. then reboot the unit.
You should now be able to login to the Wemos on your normal network and finish-off the settings.
I received a set of five Wemos D1 Minis last week, and have just got round to flashing them.
I think I may have ordered the incorrect version (think they are pre-flashed with Lua) as I've had a lot of trouble trying to flash them with my normal flasher.
I finally found this program that flashes the device and sets-up all the networking stuff all in one go.
https://github.com/Grovkillen/ESP_Easy_Flasher
I've managed to flash all five devices with this program - yipppppeeee.
Hi to Paul-Reed,
I use my Wemos devices on breadboards.
I use the headers with the very long pins.
Push them through the top of the board and solder underneath, they then
fit really nicely on a breadboard.
As I said in a previous post, I had trouble flashing these units as they
were pre-flashed with Lua.
Note: some of these really cheap ones are clones of the real wemos d1. While I’ve not had a serious problem with mine, one or two have failed to drive things like a neopixel so I suspect the clock timings may not be very accurate. (Not seen problems with WiFi or programming or sensors like ds18b20 etc)
The vast majority floating about in Ebay, AliExpress, etc seem to be clones, but I haven't had any problems with them, and they do seem well constructed.
The most obvious test of copies, is that they are square cut PCB's, whilst the original Wemos PCB has rounded corners at the top...
I've bought over 30 of these devices during the last year from Banggood.
They are used with ds18b20, LCD via I2C, push-buttons, driving LEDs and relays, and reading analog values.
Apart from one where the miniature push-button was stuck - they have all worked fine.
I've just checked the shape of the PCBs.
I seem to have a mixture of curved ends and diagonal cuts.
The PCB construction and soldering looks the same across all the devices I have.
I was worried about mine because I was having so much trouble getting it to connect to my MQTT broker. It has the diagonal cut corner and purchased from Aliexpress for $2.49 free shipping. I did get it working, though, the connection between my DHT22 shield and the board is a little iffy. I've had to reseat it twice in two days.
BTW: Paul- do you have a shield for your moisture sensors or solder directly to the board?
Imroy/pubsubclient library has been further developed to add a set of MQTT classes which allow a number of additional features to be available.
In particular, the full range of QoS, allowing me to now use QoS1 or even QoS2, to send and receive messages. I've settled with QoS1 which is probably adequate for this project, and looking at the mosquitto logs, appears to work well.
Integrating Imroy/pubsubclient into an existing project requires a few code changes, but nothing major.
Hi Paul,
Way back in June of 2018 we "chatted" about Wemos D1 Mini devices.
I've now had three of the devices fail because the USB power connector (socket) has snapped off the board.
Last month I spotted this Breadboard Power Adapter on AliExpress for 30p.
They are also listed on Amazon UK - but at twice the price.
A set of them arrived today.
They fit really well onto a breadboard and have enabled me to get each of my defunked D1 Minis back to life again.
So if any of your Wemos clones pack-up with a faulty USB connector I suggest you purchase some of these.
Thanks Dave, they look really useful.
I haven't had any of the connectors break myself - although I generally solder the Wemos onto veroboard and make the power connection a permanent feature, so I'm not constantly plugging/unplugging the power cord.
The cost of these chinese tech imports is ridiculous!!