i'm using arduino mega 2560 for my project , here the i have couple of sensors connected to my mega board . now i want to send my sensor values to the cloud , so someone can suggest how to achieve this and which wifi module to buy
You can get a MEGA2560 board with a built-in ESP8266 module like this:
A quick search using your favourite search engine form "MEGA2560 ESP8266" should provide some links for you.
i have done my entire project in arduino mega 2560 , so can i run the same code in this mega 2560 with esp8266 without any error
That depends on which interfaces on the MEGA2560 you currently use. I think - and you would need to check yourself - that the MEGA2560 communicates with the ESP8266 via one of the MEGA2560 hardware serial ports. If you don't use that serial port then this board may be just what you need.
rather than adding another microcontroller (with WiFi) with the complexity of programming two processors and the interprocessor communication it may be worth thinking about moving the project to an ESP32
the ESP32 has onboard WiFi, Bluetooth Classic and BLE) a powerful processor, plenty of Flash/SRAM and IO facilities, etc etc
If the ESP32 has enough I/O I would suggest moving the entire project to an ESP32. Otherwise I would suggest an ESP-01S for the WiFi part talking to the MEGA2560 over one of the serial ports. This does mean you have to write code for two processors and handle the communication between them.
I am not a fan of the boards with different processors on one board. They seem to always configure things to make it difficult to use.
agreed! I have one of the Mega-WiFi_R3_ATmega2560_ESP8266 boards and using it is not simple - having to switch the DIL switches ON/OFF between loading and running code is awkward - also not sure how long the DIL switch will last
So instead of this ESP modules,can use a gps sim module for sending the sensor values from mega to cloud
yes
couple of notes
- many GSM modules use 3.3V logic - if so connect to the Mega 5V logic using level converters
- 2G is being or has been switched off in many countries - check - you may require 4G
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
