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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Azure Sphere Starter Kit
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Azure Sphere Starter Kit
  • More
  • Cancel
Azure Sphere Starter Kit
Blog RoomSphere
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Azure Sphere Starter Kit to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: vassily98
  • Date Created: 14 Nov 2019 8:27 AM Date Created
  • Views 1342 views
  • Likes 6 likes
  • Comments 3 comments
  • sensing the world project
  • sensingworldch
Related
Recommended

RoomSphere

vassily98
vassily98
14 Nov 2019

Most of the new hotels equip an automation system inside the rooms. The standard configuration provides access to the room via an RFID card, the subsequent activation of the room's electrical system and temperature control. I built a standalone proof-of-concept (PoC) system to demonstrate the integration of the Azure Sphere system in the building automation field.

The prototype is housed inside a 8-module DIN module recovered from an old 27Vac transformer. Feel free to use any box or leave everything uncovered.

 

FEATURES: image

- Adjustable temperature control;

- OLED display with control buttons;

- RFID card reader to open the door;

- Custom RFID card settable via display;

- Three 250Vac 10A load relays.

 

HARDWARE REQUIREMENTS: image

- Avnet MT3620 starter kit;

- 0.96 inch 128x64px oled display (I2C);

- DHT11 or DHT22 module;

- RFID RC522 module;

- 3x 5V relay module;

- Limit switch module (or limit switch and 10kOhm pull-down);

- Three buttons with three 10kOhm pull-down resistors;

- Lots of dupont wires;

- (optional) 230Vac-5Vdc transformer;

- (optional) 8 modules DIN empty box;

- (optional) 6A circuit breaker;

- (optional) 12 modules DIN box and electrical materials to build to the demo panel.

 

SOFTWARE REQUIREMENTS: image

- Visual Studio 2019 with Azure Sphere environment configured;

- Source code of the project (GitHub).

 

HARDWARE SETUP AND SCHEMATICS:

Wire up everything as shown below.

imageimage

- GPIO16/31/32/33/34 SPI Bus to RC522;

- GPIO37/38 I2C Bus to OLED display;

- GPIO00 DHT11 signal;

- GPIO02 Relay1;

- GPIO28 Relay2;

- GPIO01 Relay3;

- GPIO42 Puls+;

- GPIO43 Puls-;

- GPIO26 PulsOk;

- GPIO17 Limit switch;

 

Once the connections are complete, it is possible to insert everything in a DIN module or a box of your choice. If you have electrical equipment available, you can prepare a demo panel.

Keep in mind that the following steps are completely optional and do not affect the correct functioning of the device. In the repository there is a file called "RFIDHolder.stl". It is a printable cover to be placed above the limit switch to accommodate the RFID card.

 

imageimageimageimage

imageimage

imageimageimageimage

 

image WARNING: Be careful while working with the mains voltage. Always check that you have the necessary protections (differential switch) and operate only if you are sure of what you are doing.

 

I have prepared a short demonstration video, available at the bottom of the page. In my setup I had only two relays available and I chose not to connect the thermoregulation one. Inside the DIN box there is also a 230Vac/5Vdc power supply. The intervention of the two relays is signaled by the lighting of two small lamps connected to the sockets positioned on the right.

 

SOFTWARE SETUP:

Download the code from the link proposed in software requirements section. Open the solution with Visual Studio 2019. The projects does not require any change in the source code and is ready to use. Once the Azure Sphere board is connected via USB just click "Remote GDB Debugger" to compile and upload the code to the board.

 

INSTRUCTIONS:

There are three subroutines in the system: one deals with temperature, one with access control and one with power management. It is possible to change some settings from a configuration menu.

- Thermoregulation relay goes high when the temperature detected by DHT11 is lower than the one set in the configuration.

- Door relay (for the control of an electric lock) goes high when the scanned RFID card matches the ID set in the configuration.

- Room relay (master switch) goes high when a card is inserted in the card holder.

The configuration panel can be opened by pressing the OK button. You can scroll through the available settings by pressing the - and + buttons, and once selected by pressing the OK button. In the temperature menu set the degrees and press OK to return to the main page. In the RFID menu, scan a card to register it as the access card. Then press OK to return to the main page.

The main page shows actual temperature, humidity and room status (ENABLED/DISABLED).

The settings are saved in the MutableStorage, so they will not be deleted until the application is deleted.

 

 

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

 

 

image

 

CREDITS AND NOTES:

Thanks to Juergen Schwertl (DHT11 library), Shimon/Xavier Geerinck (MFRC522 library).

Attachments:
RoomSphere-master.zip
  • Sign in to reply

Top Comments

  • dubbie
    dubbie over 5 years ago +2
    Nice and tidy packaging for this project. Dubbie
  • kevinkeryk
    kevinkeryk over 5 years ago +2
    Nice work on this! I like how you used the OLED display to show users information without having to load up a cloud dashboard somewhere. Very nice workmanship, everything looks very clean and professional…
  • bwilless
    bwilless over 5 years ago +1
    Nice job!
  • bwilless
    bwilless over 5 years ago

    Nice job!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kevinkeryk
    kevinkeryk over 5 years ago

    Nice work on this!  I like how you used the OLED display to show users information without having to load up a cloud dashboard somewhere.  Very nice workmanship, everything looks very clean and professional.

     

    -Kevin

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 5 years ago

    Nice and tidy packaging for this project.

     

    Dubbie

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
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