1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

ESP8266 wifi module and arduino mega

Discussion in 'General Electronics Chat' started by kingofjong, Jul 13, 2018 at 4:29 PM.

  1. kingofjong

    kingofjong New Member

    Joined:
    May 27, 2018
    Messages:
    19
    Likes:
    0
    Hi

    I was wondering does any one know how to use the ESP8266 wifi module with arduino mega. I found a lot articles with arduino uno but not the mega. I would appreciate any help.

    Thanks
     
  2. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    5,265
    Likes:
    159
    Location:
    morristown,tn
    If it works on the uno it will work the same on the mega you just pick the pins you need it's not that hard to do the mega only has more pins And 4 serial ports and lot's of flash but any code you can run on the uno runs on the mega too.
    And as far as it goes the esp8266 can run uno code too so you really don't need the mega or a uno you just install the needed libraries too use a esp with the arduino ide.

    The really only thing the mega has is it has more serial port the uno has only one the mega has 4.
    So if the uno code you want play with uses serial just make sure you use the right one.

    And the mega has more
    Flash Memory 256 KB of which 8 KB used by bootloader
    SRAM 8 KB
    EEPROM 4 KB
     
    Last edited: Jul 13, 2018 at 6:37 PM
  3. Mickster

    Mickster Well-Known Member

    Joined:
    Feb 24, 2008
    Messages:
    1,310
    Likes:
    105
    Location:
    BDA
    As Burt says above, if it works on an Uno it will work on a Mega, you just have to check the pin assignments etc.
    You also have to configure the DIP switches, in order to communicate with each IC.
    One difference on the Mega + ESP8266 version, versus the Uno + ESP8266, is the TX/RX switch.
    This may be of help:
    https://robotdyn.com/mega-wifi-r3-atmega2560-esp8266-flash-32mb-usb-ttl-ch340g-micro-usb.html
    And this (translate from Russian):
    http://www.sysengineering.ru/blog/электроника-контроллер-arduino-mega-с-esp8266/
    ** You will need to download the test firmware .zip file, which is just beneath the DIP switch table. **

    Regards.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice