element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Just Encase
  • Challenges & Projects
  • Design Challenges
  • Just Encase
  • More
  • Cancel
Just Encase
Blog [Pool Water Monitoring] #20 - Finally some advances and almost ready to start
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Just Encase to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: feiticeir0
  • Date Created: 12 Feb 2022 6:39 PM Date Created
  • Views 557 views
  • Likes 4 likes
  • Comments 0 comments
  • Arduino MKR WAN 1300
  • pool_water_monitoring
  • MKR 1300 WAN I2C
  • lora
  • justencase
  • just_encase
  • I2C communication between Arduinos
  • just encase
Related
Recommended

[Pool Water Monitoring] #20 - Finally some advances and almost ready to start

feiticeir0
feiticeir0
12 Feb 2022

image

Hi everybody ! Hope everyone is safe and well.

This weekend I went back to my original design and finally I was able to do some communication between the Arduino MKR 1300 WAN and the UNO.

Arduino Communication

UART / Serial

After several days attempting to send data from the MKR 1300 WAN to UNO using UART, I had no success.UART stands for Universal Asynchronous Receiver/Transmitter. It is a hardware device (or circuit) used for serial communication between two devices, in this case, two Arduinos. 

I'm guessing that one of the problems is that the Arduino MKR 1300 WAN has two serial ports - serial and serial1 . Serial for USB and Serial1 for UART. I did try with serial1, but no luck.

I2C

Enter I2C protocol. After trying other options, and a lucky search, I tried I2C .  I didn't knew we could do this. Yes, I know my knowledge of hardware is very limited to Arduino basic functions other stuff. This protocols are not new to me - I know a lot of sensors use I2C to communicate with the Arduino. I'm a software guy . Slight smile

And, with I2C, it finally worked. I have all 3 Arduinos talking and sharing information.

Here's the new schematic

image

The data collecting Arduino gathers data and sends it to the other Arduino MKR 1300 WAN. This one receives the data and sends it - using I2C - to the Arduino UNO, that uses the Grove system to display the values on the Grove-LCD RGB backlight.

In a previous post, I've already shown the data transfer between both Arduinos. Now, I've introduced the data exchange between the MKR 1300 WAN and the UNO.

Here are screenshots of the three Arduinos communicating (I have two monitors, so the image is wide).

image

And some photos of the data on the LCD.

image

I've already programmed the LCD to change color if the values are not within safe values. Here's an example for the TDS values and battery values - and the color changed when the battery values are safe.

image

imageimage

Next steps

Data collecting

The next step is deep sleep the data collecting Arduino - I don't need to be constantly collecting data. Sleeping and waking up every 4 hours will be enough.

After that, is placing the enclosure outside and start collecting.

Data receiving

On this end, I just need to probably clean up the code.

Grove UNO

On the UNO, just place it in the support and try the WiFi - this one uses Serial, but the Grove documentation is very poor.

Happy programming.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube