The previous blogs are here MyIoT: Infineon Shield2Go Boards for IoT - Review
Here I present some results from the tests of the Wemos D1 mini Wifi module. This is a common module which is used with many IOT products and very cheap to buy. It is a mini wifi board with 4MB flash based on ESP-8266.
The features of wemos are
- 11 digital input/output pins, all pins have interrupt/pwm/I2C/one-wire supported(except D0)
- 1 analog input(3.2V max input)
- a Micro USB connection
- Compatible with Arduino, Compatible with nodemcu, Compatible with MicroPython
Install the CH340G Driver from the wemos website https://wiki.wemos.cc/downloads
I followed the getting started for the WEMOS installation in Arduino https://wiki.wemos.cc/tutorials:get_started:get_started_in_arduino
Then also install the wemos board packages
- Open Boards Manager from Tools > Board menu and install esp8266 platform.
- write this url : http://arduino.esp8266.com/versions/2.3.0/package_esp8266com_index.json
Now the Arduino is ready to use the WEMOS
Then I used the WIFI relay control sample code to control a relay via the internet browser. I modified the code to add my home wifi and password to connect the wemos to the home internet network.
Setting the correct baud rate to 11520 for programming the Wemos board as below
Finally controlling the LED On and OFF from the webrowser
Turning on and off the relay via web-browser
I needed more time to set up the Arduino environment to get the Wemos working properly. But once the environment is set there are many sample codes which are easy to understand and can be used to run the sensors.