BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Wifi module to buy


#1

Hi guys,
i bought an ESP8266-01 module to connect my arduino mega to wifi instead of using ethernet comunication for my school project. I tried a lots of things and read a lot but i didn’t undestand how to get this thing work.

Can someone explain me how to use this module like a wifi shield for my mega? And if this is too complicated as i red (i don’t have a lot of time before my exam) what should i buy to get this thing work? I know that i should Look for NodeMCU or Wemos D1 Mini boards but i have to get/show data from 2 sensor so i need at least 2 or 3 analogic pin (i alredy ahve a wemos d1 mini but it’s not enough for what i need).

thanks a lot :slight_smile:


#2

Hi @Gonick,
I guess you are talking about analog sensors, in that case, as you already have a Wemos Mini D1, you would only need the small ADS1115 board to play with them.
Have a look at:


#3

So basically this ADS1115 adds 4 analog pins? Or it’s an adc with a mux?


#4

ADC mux converter


#5

It require some strange coding or it’s like a d1mini without anything? Sorry for these type of questions but i’m a beginner


#6

Please, read my thread… :wink:


#7

Ok, thanks, i think i will give it a try. Just in case this product (https://www.amazon.it/ILS-ATmega2560-ESP8266-memoria-compatibile/dp/B07912KVBK/ref=sr_1_11?s=electronics&ie=UTF8&qid=1527434733&sr=1-11&keywords=arduino+wifi) is ok to talk with blynk? Is an “EPS8266 Standalone”?


#8

As far as I can see (3 seconds review), it seems just what you have right now but in 1 board, it’s just an Arduino Mega plus an ESP8266 embedded…

It should be OK, but first of all you should ensure that the ESP is working properly with AT commands with the Arduino.

NO, it isn’t. It will be an Arduino Mega with the ESP as Wi-Fi shield and MUST be considerated this way in your code.


#9

@Gonick
why don’t you buy nodemcu ESP32 ?

5$
18 x ADC input channels


#10

@Alexis_Cabrera,
IMHO, ESP32 thing is complicated and not really user friendly, if I were @Gonick, I’ll start with something easier… it seems Gonick is just a beginner, correct me if I’m wrong… :sweat_smile:


#11

Yeah, i’m a beginner but that’s not the problem. The problem is that this is a project for an exam and i have less than 30 days to do it so all the things than can help me and make my life easier are gratefully accepted :slight_smile:


#12

In that case, the combo Arduino Mega + ESP01 looks like your best option…

There’re lots of posts with information in this forum, I’ll provide you some tips:

Flash ESP-01 with AT commands.
Fix proper Baud-rate and Serial to communicate the ESP with the Arduino.
Check communication wires between them.
Generate the code taking into consideration that it’s an Arduino with the ESp as shield.

Search, search and search… and after that, ask good questions…


#13

I tried A LOT to flash and get the 01 works but i just cant, it simply doesn’t work for me. Probably it’s my poor experience with blynk and arduino. I think that i will order that arduino MEGA with the 8266 already on it and see if it could help me.

I already have ALL the project and the sketch done on an ethernet shield but i want it on wifi


#14

Flashing can be tricky at first… but It should have came with the needed AT code preinstalled.

Bad idea… those boards somehow manage to complicate a simple serial interface and almost never work quickly or properly with Blynk

This whole ESP as shield thing has been debated and documented soooo many times in this forum. It is a simple 2 wire crossover serial interface and requires a dedicated 3.3v PSU for the ESP… add in a couple of lines of code. That’s about it. I have ran into sensors that are more complicated :stuck_out_tongue:

Search this forum for keywords like ESP as shield and remember the Mega uses Serial1 (pins 18 & 19) as a “normal” serial port AKA NOT Softwareserial.

https://examples.blynk.cc/?board=Arduino%20Mega%202560&shield=Arduino%20WiFi%20Shield&example=GettingStarted%2FBlynkBlink

http://help.blynk.cc/how-to-connect-different-hardware-with-blynk/arduino/esp8266-with-at-firmware


#15

Ok, i wanna try.

I saw a video on youtube that explain pretty well how to do it (https://www.youtube.com/watch?v=YLKEZtLhfZo&t=2338s)
BUT i didn’t understand what is and why he use this thing: https://www.amazon.it/AZDelivery-FT232RL-adattatore-convertitore-seriale/dp/B01N9RZK6I/ref=pd_lpo_vtph_147_bs_t_1?_encoding=UTF8&psc=1&refRID=B4WXPBE5DETAP04MVJYF
without wiring the circuit like in the link that you posted


#16

That is just one of many ways of communicating to the ESP(ESP-01?) from a PC… in order to flash firmware or setup AT settings like BAUD. It is a USB to Serial adapter.

You can even use the Arduino itself… but the TX pin will put out 5v and many insist that the ESP’s RX pin will not last long at that voltage (normally 3.3v) but that is debatable… and resolvable with things like a simple voltage divider or level shifter circuit.

Meanwhile, here is one of many posts about the whole ESP as shield issue…


#17


eb3b13e634f4aaf3440a7959290fd2a1dc045938_1_690x195


#18

Ok so, this strange board arrived but it’s very tricky and difficult to use, at least both mega and esp. I didn’t find much, every post that i red send me back to a russian site with basic tests. I think that it will be impossible to use this thing properly with blynk, like you said. Tomorrow amazon should give me all the thing to try with the ESP-01


#19

I have a couple of those Mega+WiFi boards and can confirm they can be extremely tricky to get working properly. I believe I know what I’m doing these days with ESP8266 boards and those have given me the most grief. I have managed to get one communicate through MQTT but was unable to make it work with the example Blynk scrips no matter what I did.

I would say both the ADS1115 with ESP8266 and the ESP32 by itself will be much simpler. The ESP32 Arduino port is starting to be quite mature and is not much different from the ESP8266 to code. The only caveat with either solution is the analog inputs cannot take 5V from 5V analog sensor modules without using a voltage divider.


#20

I have had success with using the ESP8266 shield from sparkfun with the uno and the mega. (https://www.sparkfun.com/products/13287). If you are only using a few sensors then you could do it a lot easier with an uno, the shield sits right on top and the TX,RX pins are in the right positions so you wont have to jumper them like you would on the mega to get to 18/19. The shield from sparkfun also comes with its own arduino library with sample code to get you up and running. Hope this helps.