Go Down

Topic: WeMos D1 -- UNO like wifi board based ESP-8266 (Read 43926 times) previous topic - next topic

0xSAM

Are there any incompatibilities noted by any users of this? I suspect the board will be much faster than the Arduino (given the 32-bit architecture).

The URL and pictures posted originally by WeMos are down

pert

Are there any incompatibilities noted by any users of this?
You will definitely find that some sketches and libraries that run fine on other Arduino boards will not be compatible but the ESP8266 Arduino core does help to minimize this somewhat. One thing that got me when I first started using it is that the digital pin numbering is handled differently. On regular Arduino boards you just use the pin number(e.g. 13) but on the ESP8266 you have to put a D in front of it(e.g. D13) so this will cause a lot of breakage of any code that relies on pin numbers and you can't use the Dn pin names on regular Arduino boards either. Hardware wise you will also encounter a lot of incompatibility because it runs at 3.3V instead of the 5V of most Arduino boards so any shield or component that puts out a 5v signal will need level shifters to bring it down to 3.3V. The other hardware incompatibility you may have is that there's only one analog pin, A0. The headers where you would expect the rest of the the analog pins on an Uno are not connected. One thing I thought was nice about the D1 is that they put a voltage divider on A0 so it can handle up to 3.2V maximum input instead of the 1V max that the ESP8266 can handle without the voltage divider.
I suspect the board will be much faster than the Arduino (given the 32-bit architecture).
Yes, but it does have to handle all the WiFi processing also.
The URL and pictures posted originally by WeMos are down
D1(retired) http://www.wemos.cc/Products/d1.html

D1 R2 http://www.wemos.cc/Products/d1_r2.html

I'd be interested in hearing a comparison of the differences between the D1 and the D1 R2. From a quick look it seems like the main difference is the SDA and SCL pins are connected to the pins where A4 and A5 would be on the Uno as well as D1 and D2. Other than that there are a couple of differences in the schematic but don't have a clue whether they represent improvements. If I'm not mistaken, the voltage regulator on the R2 is way smaller.

I accidentally bought my D1 because it was advertised as a shield. I think I prefer the smaller form factor of the NodeMCU boards which are also significantly cheaper. I suppose the shield compatibility could be a benefit but I think many Arduino shields are not 3.3V I/O compatible. WeMos did do an excellent job of providing documentation and there is a Board menu entry for all the D1 versions in the ESP8266 Arduino core. I installed the core, plugged in my D1, and uploaded a sketch without a single problem.

a55830

can any one tell me if there is any digital pins free.... it sounds strange that all 13 pins is used
then the board cant be used for any thing other than reading a analog pin and there is only one analog pin on it.

the board i have is Wemos D1 (discontinuet) not r1/r2

if any one out there have some thing i can build with it please help me

pert

can any one tell me if there is any digital pins free.... it sounds strange that all 13 pins is used
then the board cant be used for any thing other than reading a analog pin and there is only one analog pin on it.

the board i have is Wemos D1 (discontinuet) not r1/r2

if any one out there have some thing i can build with it please help me
Sorry, I can't understand what you're asking. Please give more details.

Regarding the analog input pin: Yes ESP8266 only has one and it can't be used as a digital pin like you can do on other Arduino boards such as Uno, Mega, etc.

banjabi1

#19
Jul 22, 2017, 02:57 pm Last Edit: Jul 22, 2017, 03:03 pm by banjabi1
hi
does someone have this nice pinout for D1 r2 too?
https://forum.arduino.cc/index.php?topic=147582.0
and maybe all of these power, i2c, SPI etc areas should be added too, because at the moment i have no idea what are the IOL and IOH pins supposed to be..... from here:
https://wiki.wemos.cc/_media/products:d1:d1_v2.0.0.pdf

the top of the IOH are probably i2c and all of the rest are SPI? and what are the AD pins supposed to be? all not analog then?


thx

chaven

The board works with the Arduino IDE, but you need to install drivers CH341SER for your PC to detect the board

In your preferences set your Additional URL Board Manager to
http://arduino.esp8266.com/stable/package_esp8266com_index.json

You need the ESP8266 boards installed. In your boards Manager select WeMos D1 R1

In Device Manager on your PC check that the baud rate is set at 115200 for this device.
Use the same baud rate inside the Arduino IDE when checking your serial Monitor.

Lastly note compilation and upload of sketches take very long not as fast as an Arduino board.



matelot

I have just purchased one of the Wemos D1R1 boards.

Following instructions I have downloaded all the files I need, put it into operation and even succeeded in using it to send to a web server using the info on this page

http://cyaninfinite.com/tutorials/getting-started-with-the-wemos-d1-esp8266-wifi-board/

So I assume the D1 is working ok.

Looking at the thread
https://forum.arduino.cc/index.php?topic=346064.15 
it says the unit has 11 digital in/out pins.

Does this mean it can be used in a similar way to the uno? i.e. a blink program on say pin 6 will blink a led connected between pin 6 and gnd?
I am aware the output is 3.5 volts, if I put an LED/resistor across my power supply at 3.5 volts it is dim but lights, if I put the blink sketch in with the pin changed to pin 6 I get nothing out?
Am I hoping for too much from this unit?

pert

The confusing thing about these boards is you need to use the Dn pin names, just as written on the board, rather than the number only, as we do with the digital pins on normal Arduino boards.

For example, instead of digitalWrite(6, HIGH), you need to do digitalWrite(D6, HIGH).

matelot

#23
Oct 01, 2018, 12:12 pm Last Edit: Oct 01, 2018, 12:15 pm by matelot
Thank you for the very prompt reply pert.
I have a confession to make, I sent the message then read back through your previous messages and found exactly that in one. I was just trying it when you replied.
It does work with D1. thank you again.
Do you know of any further tutorials for this board?

pert

I'm glad to hear it's working now. The pin names thing had me confused as can be when I first got one of these boards. I made the faulty assumption that there was a mismatch between the board definition and the hardware and spent probably 30 minutes determining the mappings between the pin numbers and the names on the silkscreen before I realized what was going on.

Enjoy!
Per

Go Up