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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Summer of Green Tech Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Summer of Green Tech Design Challenge
  • More
  • Cancel
Summer of Green Tech Design Challenge
Blog Home monitoring system #4
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Summer of Green Tech Design Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: redcharly
  • Date Created: 16 Oct 2023 1:31 PM Date Created
  • Views 758 views
  • Likes 6 likes
  • Comments 3 comments
  • design challenge
  • summer of green tech design challenge
  • seeedstudio
  • green tech
  • Xiao
  • arduino
Related
Recommended

Home monitoring system #4

redcharly
redcharly
16 Oct 2023

Introduction

Hi, in this fourth blog, I would like to test the how of the XIAO SAMD21 works when we connect more than one sensor.
In previous works we have seen how this very small board can manage, ,one by one all 5 sensors included in the contest kit without any problem.
What I wondered from the first moment I saw the XIAO series boards was how such a small board and with so few terminals could be used with several sensors at the same time.

image


In this work I will use multiple sensors at the same time and I will try to manage them as best as possible.

The project I proposed was to monitor a home to avoid the risk of flooding, alarming the owners so they could save furniture and objects that could be damaged from the water.
The most important sensor in this case is a moisture sensor which will detect the presence of water on the ground and trigger an alarm. As we want our project to solve more than only one problem, we can also add a flame sensor which could be useful for giving an alarm in the event of a fire starting.

Moisture Sensor

This Moisture Senor is based on resistivity meansurement and can be used for detecting the moisture of soil or judge if there is water around the sensor. This sensor is very easy to use, you can just simply insert in into the soil or place it on the floor and read the data.

image

We will use the example code in sensor Wiki page: Grove-Moisture_Sensor.

int sensorPin = A0;
int sensorValue = 0;

void setup() {
    Serial.begin(9600);
}
void loop() {
    // read the value from the sensor:
    sensorValue = analogRead(sensorPin);
    Serial.print("Moisture = " );
    Serial.println(sensorValue);
    delay(1000);
}

As you can see, this sensor is really easy to use.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Seeed Studio Base Shield

To use multiple sensors with the XIAO SAMD21, it is essential, in my opinion, to have a board that allows you to connect many sensors and actuators without making the connections too complicated.
The Seeed XIAO SAMD21 is too small to think of filling it with jumpers, so I thought of using a Seeed Studio Base Shield which allows you to better manage the connections between the Xiao board and the sensors.

{gallery}Seeed Studio Base Shield

image

image

image

In the next blog we will see how to use the Seeed Studio Base Shield to easily connect multiple sensors at the same time.

  • Sign in to reply
Parents
  • beacon_dave
    beacon_dave over 2 years ago

    FYI The first two images are ok this time but your gallery images appear to have failed to upload correctly.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • redcharly
    redcharly over 2 years ago in reply to beacon_dave

    Thank you I hope now all the images are visible!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 2 years ago in reply to redcharly

    I'm seeing the gallery images here now. Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • beacon_dave
    beacon_dave over 2 years ago in reply to redcharly

    I'm seeing the gallery images here now. Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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