Announcement

Collapse
No announcement yet.

ESP8266 + MEGA2560

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ESP8266 + MEGA2560

    I am trying to understand the basics of how to make this work. Right now I have one Arduino running using wired internet and it is rock solid, loving it.
    Now I am trying to add a second one using wifi (ESP8266) but I don't understand the basics. I can compile the code if I change board type to 2 and select generic ESP8266 board.
    I can upload the code and it will connect to the wifi network. The part I don't understand is how does the communication with the Mega 2560 work? Do i need to compile with a different board type and upload to the Mega2560?

    I would appreciate if someone could point me in the right direction. I have been searching this forum but cannot get a clear answer.

    Thanks
    Marcel

    #2
    Marcel,

    I am a little confused about your question.
    Are you using V1.0.0.166 of the plugin?
    Do you have a Mega with an ethernet shield as board 1 and it is working well?
    Do you want to add a NodeMCU as your second board?
    What do you mean when you say "I don't understand is how does the communication with the Mega 2560 work" Is this your board 1? or are you thinking you can connect to the mega with WIFI as this is not possible.

    Do not change anything in the sketch just the settings in the IDE (Board Type and Port) If you set up the board in the plugin and download the sketch for the second board it will generate the sketch for you. So If you need to update the sketch for your Mega download and update the sketch for board 1 and if you need to update the NodeMCU then download and use sketch 2.

    Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
    X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
    Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
    Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
    Scripts =
    Various

    Comment


      #3
      I am still on version V1.0.0.131. Yes I have a mega with Ethernet shield for board 1 and it is working like a champ.
      For the second board i have no internet connection available so I want to go wireless. You actually answered my question. I didn't realize I can use the NodeMCU by itself, I thought it needed to be connect to the UNO or MEGA. Now it is crystal clear. BTW I will upgrade to V1.0.0.166.

      Thanks
      Marcel

      Comment


        #4
        Yes, you will need to update to V1.0.0.166 for the NodeMCU support and each board is separate. It will also allow you to select it as a board type.
        You will need to update the Sketch in your mega to as this is updated in the new build but gives new features like blink and one flash.

        Greig.
        Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
        X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
        Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
        Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
        Scripts =
        Various

        Comment

        Working...
        X