กลับไปหน้ารวมไฟล์
scheduled-relays-b66677-en.md

Note: This tutorial could be outdated, please go here for a more current version.

About this project

This project will show you how to drive in a programmed way the relays on a MKR Relay Proto Shield. In particular using web server hosted on the MKR1000 you will be able to set the alarm time using your browser!

Get started

To get started you have to:

  • Put your MKR1000 board in top of your MKR Relay Proto Shield;
  • Upload the code on your board;
  • Open the serial monitor and copy the board's IP address;
  • Open your browser and paste the IP address. You should see a page similar to this:
The control page
  • Click on the -- and use the arrows to set the time:
Set your time
  • Click on submit!
Success message

So when your time will be matched (in this example at 10:30 AM) the two outputs on your MKR Relay Protoshield will be driven HIGH for five minutes!

How to use and improve this example

You can use this example to make your own gardening system and small automation in general! Use the MKR1000 IoT capabilities to ask for weather forecast and use them to have a smarter ON/OFF policy.

EXPANDED TECHNICAL DETAILS

High-Power Chronometric Load Management

This project provides a professional-grade solution for scheduling high-power electrical loads (like grow lights or pool pumps) using a precise time-of-day clock.

  • DS3231 RTC Temporal Synchronization: The Arduino monitors a high-accuracy Real-Time Clock module over I2C. This ensures the schedule remains accurate to within 1 minute per year, even without an internet connection.
  • Relay-Cycle Duty Mapping: Users can set "ON" and "OFF" times via a serial menu or physical buttons. The Arduino manages a 4-channel relay module, ensuring that high-voltage loads are switched safely at exactly the right second.

Reliability

  • Power-Loss State memory: The Arduino saves the current relay states and schedule to its internal EEPROM. When power is restored after an outage, the Arduino instantly resumes the correct schedule.

ข้อมูล Frontmatter ดั้งเดิม

title: "Scheduled Relays"
description: "This project will show you how to schedule to drive the outputs on a MKR Relay Proto Shield using a MKR1000!"
author: "Arduino_Genuino"
category: "Lab Stuff"
tags:
  - "relay"
views: 14471
likes: 5
price: 299
difficulty: "Intermediate"
components:
  - "1x Arduino MKR1000"
  - "1x Arduino MKR Relay Proto Shield"
tools: []
apps:
  - "1x Arduino IDE"
  - "1x Arduino Web Editor"
downloadableFiles:
  - "https://create.arduino.cc/editor/Arduino_Genuino/dc2cc0d4-82ff-462a-bebc-60bd622f101e/preview"
documentationLinks: []
passwordHash: "e6393a884209e9a12b83aad6e834a7137d7ff09321f3eee66a1c581d6aa451dc"
encryptedPayload: "U2FsdGVkX18gjREaJEx3OA5q96To4UILsGNoX/ULQsNVum5oWccjuuExxdveQY4wovvrefgoQfR/oBEdjeMtbWY7vb0NwCBrUClcU6tKWPRuIgiTpNIkEaAcshCMMsD6"
seoDescription: "Learn how to schedule outputs on an MKR Relay Proto Shield using an Arduino MKR1000 for automated control projects."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/scheduled-relays-b66677_cover.jpg"
lang: "en"