• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Smart irrigation with Arduino Mega + ESP8266 + Cayenne

Q&A Forum › Category: ESP8266 › Smart irrigation with Arduino Mega + ESP8266 + Cayenne
0 Vote Up Vote Down
petar.glavas5480 asked 2 years ago

Hello,
I have created kind of smart irrigation system with Arduino Mega and sensors like described in high level schema picture attached.
 
Now I would like to extend my project with introducing ESP8266 as WiFi adapter and target is to finally connect to Cayenne (green marked in the picture)
Irrigation
Does anyone has experience with:

  1. How to connect Arduino Mega with ESP8266  NodeMCU using it as WiFi
  2. Working code example for ESP8266 would be appreciated

Many thanks.
Br,
Petar.
P.S. If someone is interested for already working part of project I am glad to share it.

Question Tags: ESP8266 Arduino Mega irrigation
3 Answers
0 Vote Up Vote Down
petar.glavas5480 answered 2 years ago

Not sure did I post it picture correctlly so jus tin case here is URL:
https://imgur.com/a/bUrboqz 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi Petar.

I can see your image just fine.

There are different ways to send data to the ESP8266. If you can wire the ESP8266 to the Arduino, I would recommend using Serial communication. You connect TX–>RX, RX–>TX and then, you read the data on the ESP8266 serial port.

Unfortunately, at the moment, we don’t have any tutorial about Serial communication between both boards. But, there are some information available online for that, search for “Arduino send data to ESP8266 via Serial” or something similar.

I haven’t tried Cayenne with the ESP8266, but I guess you should need to make an HTTP POST or GET request. You can take a look at this tutorial: https://randomnerdtutorials.com/esp8266-nodemcu-http-get-post-arduino/

I hope this helps.

Regards,
Sara

0 Vote Up Vote Down
petar.glavas5480 answered 2 years ago

Thx Sara. Will try with serial connection (TX–>RX)

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.