Skip to main content

Timeline for Can ESP8266 replace Arduino?

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
Jun 6, 2016 at 12:46 comment added Mishony If you really need to use an Arduino AND an ESP (instead of just the ESP) then you can still use Serial communication, but on a higher level - for example Arduino sends "temp=26.5" to the ESP, your code on the ESP recognizes that and sends an HTTP request to thingspeak.com or whatever. For this to work, you must program both the Arduino and the ESP, which is a bit inconvenient, but not really harder than fiddling with AT commands. In many situations you can simply ditch the Arduino and only use the ESP.
Jun 6, 2016 at 12:34 vote accept ahmadx87
Jun 6, 2016 at 12:34 comment added ahmadx87 @Mishony Thank you for your detailed answer. Excuse me for my ignorance, but if I want to use an Ardunio and not use AT commands, how should I talk to the Arduino? I'm new to this module and know very little. I would appreciate it if you could give me some keywords to start with.
Jun 6, 2016 at 7:03 comment added Mishony There you go :)
Jun 6, 2016 at 7:02 history edited Mishony CC BY-SA 3.0
deleted 96 characters in body
Jun 6, 2016 at 6:58 comment added stefandz Because the rest of the answer is good, but that last sentence is unclear and misleading imho. Clarifying for those seeking answers would help those who do not understand why this might be a bad idea - and get them away from the idea that there is such a thing as "just wrong" without clear reasoning. But the answer is yours - obviously you are free to do as you see fit.
Jun 6, 2016 at 6:54 comment added Mishony This was just a remark at the end of my answer, finished with a smilie, and it clearly mentions AT commands already. And, it is already a bit offtopic, I dont know why you picked that up.
Jun 6, 2016 at 6:51 comment added stefandz Might be worth editing your answer to include this clarification.
Jun 6, 2016 at 4:06 comment added Mishony There is nothing wrong with having an arduino (or attiny) connected with ESP via UART. What feels "wrong" is using AT commands and having the Arduino parse HTML requests and responses, etc. It sure works (I've done it), but sounds wrong - the "logical" way would be for the more powerful chip (the ESP) to act as a master and offload specific tasks to the less powerful chip, not the other way around. Most of the time, it is also the easier way - fiddling with AT commands parsing on the Arduino is neither fun nor efficient. Yes, you have to program both chips this way, which is inconvenient.
Jun 5, 2016 at 21:14 comment added stefandz Strongly disagree that it is "just wrong" to use an ESP as a secondary device to an Arduino with a UART interface. You point out reasons for this yourself - if you want to use libraries that aren't yet ported to the ESP, why not have the Arduino as the primary device and use the ESP to do one job well? Or if you are more familiar with 8-bit AVR devices and can afford $5 for a very capable WiFi addon, why not do that? In engineering, excluding stupidity, there is no right or wrong way, provided it works - only more or less appropriate to a particular challenge.
Jun 5, 2016 at 15:43 history migrated from electronics.stackexchange.com (revisions)
Jun 5, 2016 at 15:42 history answered Mishony CC BY-SA 3.0