6 ms·
Friends don't let friends use Arduinos. Please use a Wemos D1 Mini, which costs $3, has WiFi, runs your Arduino code almost unmodified, and is amazing.
by StavrosK 10y ago
Friends don't let friends use Arduinos. Please use a Wemos D1 Mini, which costs $3, has WiFi, runs your Arduino code almost unmodified, and is amazing.
- noonespecial 10y agoAlso has an NTP library that's simple to use so you won't need a ridiculous 1960's mechanical wall timer to time your modern micro board.
- Alupis 10y ago> Please use a Wemos D1 Mini It's actually the ESP8266 chip inside that you're after. It runs Arduino code, although you must tell your IDE you're targeting an ESP8266 (it has special libraries for wifi use, etc...). ESP8266's come on many boards, including the bare-boned ESP-01 [1], which is even cheaper at $1.53 per each. The only problem with ESP8266's, is they are very power hungry, requiring 500mA-1A for doing wifi related things. Although, when not using WiFi, you can shut down the antenna and save on power consumption. [1] https://www.aliexpress.com/item/ESP8266-Serial-Esp-01-WIFI-Wireless-Transceiver-Module-Send-Receive-LWIP-AP-STA/32278773466.html https://www.aliexpress.com/item/ESP8266-Serial-Esp-01-WIFI-W...
- JosephRedfern 10y ago1A? Do you have a source for that? It could have an impact for a project I'm working on. Most documentation I've seen seems to state a typical max draw of <250mA (for instance, http://bbs.espressif.com/viewtopic.php?t=133 http://bbs.espressif.com/viewtopic.php?t=133) -- I guess there will be some spikes, but I was never aware of anything approaching 1A.
- Alupis 10y agoThe 1A figure might be more of a precaution - can't find anything "official" from Espressif (ESP8266 manufacturer), although most people on forums seem to agree 500mA is as low as you want to go. Seems you can expect ~250-300mA to be normal when using wifi. Anecdotally, I've experienced reliability issues when running off 500mA, but that could just be my setup + accessories. It's funny how it works - last time I went down the rabbit hole on the tail end of a late night session, everything pointed at 1A being considered "safe", and anything lower was "iffy". If you put the chip into any of the Deep Sleep modes, power consumption goes way down to just a few mA's, making battery operation much easier. http://www.esp8266.com/viewtopic.php?p=57788#p57788 http://www.esp8266.com/viewtopic.php?p=57788#p57788
- StavrosK 10y agoI use a PSU with an ammeter and it shows around 250mA in everyday use.
- michaelt 10y agoHere's a graph of current consumption of an esp8266, which I measured with a 2 ohm resistor between my power supply and an rt9013 regulator https://imgur.com/a/c30mL https://imgur.com/a/c30mL (At one point I de-soldered the status LEDs from the module - I can't remember if this was before or after that) There are several spikes approaching 500mA - and you might see even higher current consumption if you're further from your wifi AP, or if you have extra components, a different voltage regulator, or different capacitors. Many beginners only have a basic multimeter (if that) so they might have a hard time diagnosing problems caused by spikes in current consumption. So I think it's good for beginners to get at least a 500mA power supply, even though the average on state current consumption only hovers around 70mA.
- blhack 10y ago>It's actually the ESP8266 chip inside that you're after. No, it isn't, just like most arduino users aren't actually "after" the Atmega328p.
- Alupis 10y ago> No, it isn't, just like most arduino users aren't actually "after" the Atmega328p. Every one of the boards we're discussing has an ESP8266... the specific board itself doesn't matter really. You found the chip you need, now you just find the board that has the features you want. In the case of the arduino, there's a plethora of microcontrollers they can have, ATmega328p being only one of them. The microcontroller on the arduino dictates it's maximum capabilities - for example, ATmega328p only has one set of hardware serial TX/RX pins, whereas the ATmega2560 has two sets. In the case of boards/modules built using the ESP8266, the board/module dictates the maximum capabilities. It either exposes GPIO ports or it does not, some boards build in power regulators or battery connectors, or other nice-to-have-features that do not exist in the ESP8266 chip itself. It's the same chip under the hood. So, yes, in this case, it is indeed the ESP8266 chip you're after.
- blhack 10y ago>So, yes, in this case, it is indeed the ESP8266 chip you're after. No, it isn't. You're after a chip with wifi, that you can program using the arduino IDE, that has a programmer on it, and that has the pins broken out. The thing people want here is the Atmos D1, which uses a ESP8266 to cover some of those wants, and itself to cover more of them. When I am buying, for instance, a bean (basically an arduino variant with a BLE radio on it), I am not buying an AVR. Bluntly: I spend about 100% of my time working from a hackerspace, and a good chunk of that time is spent teaching people to program microcontrollers. The D1 is by far the best ESP8266-based board I have seen so far. THAT is the thing that people have been wanting, the ESP part of it is irrelevant to people. They want something that does the things I outlined. The ESP just happens to do half of them. If tomorrow, wemos swapped that chip out for an identical one, people would STILL want the D1, and wouldn't be missing the ESP at all.
- seizethecheese 10y agoWhat would a friend recommend someone using a SparkFun Thing? Any good replacements (it has a JST battery connector, among other features.)
- Alupis 10y agoThe Sparkfun Thing is basically the same... they all have the ESP8266 at the core, the only difference between the various boards are board features (such as the battery connector) and how many GPIO ports of the ESP8266 chip they expose.
- seizethecheese 10y agoThanks! Basically I built a prototype on the Thing and am hoping to find a board that I can use to replace it wholesale without too many adjustments.
- Alupis 10y agoHere's a few decent breakdowns of the various boards and features[1][2][3]. With the ESP8266 chip, you have a lot of board options! [1] https://www.losant.com/blog/top-6-esp8266-modules https://www.losant.com/blog/top-6-esp8266-modules [2] https://openhomeautomation.net/choose-esp8266-module/ https://openhomeautomation.net/choose-esp8266-module/ [3] http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family http://www.esp8266.com/wiki/doku.php?id=esp8266-module-famil...
- spookyuser 10y agoThat it's sold on AliExpress is also amazing.
- StavrosK 10y agoYep! Here's a convenience link, for anyone who wants to buy one or five: https://www.aliexpress.com/item/D1-mini-Mini-NodeMcu-4M-bytes-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266-by/32662942091.html https://www.aliexpress.com/item/D1-mini-Mini-NodeMcu-4M-byte...
- pweissbrod 10y agoThanks! I had no idea about this. Will use it in the future
- solidr53 10y agoPlease recommend the real product (ESP8266) so the guy can choose a dev board, they are plenty, all with different options. And for those who dont know ESP32 came out erlier this year and has much better specs, power consumption, Bluetooth, etc. You'll want that.
- blhack 10y agoThis is like the difference between a bare Atmega and an arduino. The wemos has a programmer on it, a USB port, etc. It is based on the ESP, but it is a lot more than just an ESP.
- BoorishBears 10y agoIf you search ESP8266 you'll find boards like that too, from more suppliers and in more form factors.
- StavrosK 10y agoI don't think someone who's using an Arduino will want to go to the bare MCU directly, and WeMos is the best breakout, so why recommend anything else?
- mplewis 10y agoNodeMCU is a contender for best ESP breakout too. It's good to know alternatives.
- StavrosK 10y agoWhat do you like about it? I have a few, but I don't like how many redundant/unusable pins it has and how big it is. I generally find it better to recommend one thing to new people than to inundate them with options that they can't differentiate between and that, ultimately, won't matter to them. If you don't know what you want to get, what service am I doing you by showing you many different options that are more or less the same, and which you don't know enough to choose between?
- blhack 10y agoGlad I'm not the only wemos fan here. I like the original D1 better, though, since it fits all of the shields build for arduino (like the screw shield, which I've been putting on everything lately). Wouldn't recommend it is a straight replacement, though, since it uses 3v logic, instead of 5v. A lot of stuff wants to see 5v, so you'd need a logic level shifter to use the wemos stuff as a drop in replacement for the arduino. Only one analog pin, also.
- armini 10y agoI found the sparkfun ESP boards to be really easy and simple to hack with. Here's the feeder & water system I built along with source codes https://youtu.be/RoIAb3Ymk2M https://youtu.be/RoIAb3Ymk2M
- 746F7475 10y agoOr you could buy Arduino Nano which costs ~€2.5-3, fine it doesn't come with WiFi, but it also comes with analog inputs which the Wemos one seems to be missing. So it depends on what you want (also ESP8266 costs about same as the Arduino Nano)