# Digi-Key IoT Studio Mini Smart Home

## Overview

Danger: 

![](https://cdn-learn.adafruit.com/assets/assets/000/085/319/medium800/sensors_DigiKey_IoT_Home_Kit_open_ORIG_2019_12.jpg?1575491089)

You'll be automating an adorable paper maché house. **The small size of this build lets us explore wiring, user interaction, and firmware deployment without having to get a ladder out.**

After building this project, **you can re-purpose this project for your home or apartment**. We've specifically selected components and sensors which are common in real-world IoT projects. You can also go further with this project, adding sensors to monitor different rooms in your house.

# Digi-Key IoT Studio IDE

Unlike most other IoT platforms, [Digi-Key IoT Studio](https://www.digikey.com/en/resources/design-tools/dk-iot-studio) is&nbsp; **code-less** &nbsp;- all sensor interaction and storage is done automatically by the drag-and-drop IDE. You do not need to install toolchains, code editors or compile any code on your computer!&nbsp; **Digi-Key Studio runs in your web browser** , handles all aspects of developing an Internet-of-Things project, and even compiles your code&nbsp;_remotely_.

![sensors_DigiKey_IoT.png](https://cdn-learn.adafruit.com/assets/assets/000/085/243/medium640/sensors_DigiKey_IoT.png?1575307930)

# Digi-Key IoT Studio Mobile App

You'll build and program a mobile application to monitor and interact with your IoT Home over the Bluetooth Low Energy protocol. The Digi-Key IoT Studio Mobile App also acts as a bridge, sending your home's data to the _free_ Digi-Key IoT Studio Cloud for long-term storage.

![sensors_ezgif.com-resize_(4).gif](https://cdn-learn.adafruit.com/assets/assets/000/085/407/medium640thumb/sensors_ezgif.com-resize_%284%29.jpg?1575574195)

# Modular Smart Home Hub

You'll start by building a hub for your smart home. We designed a modular smart-home hub which uses the Feather form factor. If you want to add more sensors or actuators onto your smart home hub, just snap on a new FeatherWing!

![sensors_smart_home_hub_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/085/252/medium640/sensors_smart_home_hub_bb.png?1575318814)

## Parts
 **This tutorial uses the ESP32 Feather as the microcontroller** brains, **it can use both secure WiFi and Bluetooth LE as transports**.

Featured
### Assembled Adafruit HUZZAH32 – ESP32 Feather Board

[Assembled Adafruit HUZZAH32 – ESP32 Feather Board](https://www.adafruit.com/product/3619)
Aww yeah, it's the Feather you have been waiting for, and now with **stacking headers**! The **HUZZAH32** is our ESP32-based Feather, made with the official WROOM32 module. We packed everything you love about Feathers: built in USB-to-Serial converter, automatic...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3619)
[Related Guides to the Product](https://learn.adafruit.com/products/3619/guides)
![Angled shot of rectangular microcontroller with stacking headers.](https://cdn-shop.adafruit.com/640x480/3619-05.jpg)

To build the smart home's hub, you'll use a Quad 2x2 FeatherWing Kit. This kit contains four identical sets of headers for Feathers/FeatherWings and two prototyping areas.

Featured
### Adafruit Quad 2x2 FeatherWing Kit with Headers

[Adafruit Quad 2x2 FeatherWing Kit with Headers](https://www.adafruit.com/product/4253)
This is the **FeatherWing Quad 2x2** - a prototyping add-on and more for all Feather boards. This is similar to our [FeatherWing Proto](https://www.adafruit.com/products/2884) except there are four! The magic of the Quad comes when you want to connect your Feather to...

In Stock
[Buy Now](https://www.adafruit.com/product/4253)
[Related Guides to the Product](https://learn.adafruit.com/products/4253/guides)
![Angled shot of a Adafruit Quad 2x2 FeatherWing Kit with Headers installed. ](https://cdn-shop.adafruit.com/640x480/4253-02.jpg)

For inputs, you'll use the **Analog Devices Featherwing to obtain precision temperature readings** and the **Bosch BME680 to obtain humidity, barometric pressure, and air quality**.&nbsp;

Featured
### Adafruit ADXL343 + ADT7410 Sensor FeatherWing

[Adafruit ADXL343 + ADT7410 Sensor FeatherWing](https://www.adafruit.com/product/4147)
Upgrade any Feather board with motion and precision temperature sensing, with this all-in-one sensing FeatherWing. It sports two fantastic sensors from Analog Devices: an ADXL343 triple-axis accelerometer and an ADT7410 precision temperature sensor.

Both sensors are connected over the...

In Stock
[Buy Now](https://www.adafruit.com/product/4147)
[Related Guides to the Product](https://learn.adafruit.com/products/4147/guides)
![Top-down view of a red rectangular sensor.](https://cdn-shop.adafruit.com/640x480/4147-08.jpg)

### Adafruit BME680 - Temperature, Humidity, Pressure and Gas Sensor

[Adafruit BME680 - Temperature, Humidity, Pressure and Gas Sensor](https://www.adafruit.com/product/3660)
The long awaited BME680 from Bosch gives you&nbsp;_all the environmental sensing you want_&nbsp;in one small package. This little sensor contains&nbsp; **temperature** ,&nbsp; **humidity** ,&nbsp; **barometric pressure,** &nbsp;and&nbsp; **VOC...**

In Stock
[Buy Now](https://www.adafruit.com/product/3660)
[Related Guides to the Product](https://learn.adafruit.com/products/3660/guides)
![Angled shot of black, square-shaped pressure-humidity-temperature-gas sensor breakout.](https://cdn-shop.adafruit.com/640x480/3660-08.jpg)

We’ll add **a magnetic door sensor to detect when someone opens a door or window&nbsp;** and add **a**  **buzzer** to make a a loud 2KHz _BEEEEEEEEEP_ when someone opens the door.

### Magnetic contact switch (door sensor)

[Magnetic contact switch (door sensor)](https://www.adafruit.com/product/375)
This sensor is essentially a reed switch, encased in an ABS plastic shell. Normally the reed is 'open' (no connection between the two wires). The other half is a magnet. When the magnet is less than 13mm (0.5") away, the reed switch closes. They're often used to detect when a...

In Stock
[Buy Now](https://www.adafruit.com/product/375)
[Related Guides to the Product](https://learn.adafruit.com/products/375/guides)
![Top view of magnetic contact switch with three screws.](https://cdn-shop.adafruit.com/640x480/375-01.jpg)

### Buzzer 5V - Breadboard friendly

[Buzzer 5V - Breadboard friendly](https://www.adafruit.com/product/1536)
Hey want to hear a really loud noise? Apply 3V to 5V to this buzzer module and you'll be rewarded with a loud 2KHz BEEEEEEEEEEEEEEEEEP. Unlike a [plain piezo](http://www.adafruit.com/products/160), this buzzer does not need an AC signal. Inside is a piezo plus the driver...

In Stock
[Buy Now](https://www.adafruit.com/product/1536)
[Related Guides to the Product](https://learn.adafruit.com/products/1536/guides)
![Breadboard friendly Buzzer](https://cdn-shop.adafruit.com/640x480/1536-06.jpg)

For outputs you'll use a **Non-Latching Mini Relay FeatherWing to control a DC motor** &nbsp;- that’s our way of simulating an HVAC unit that turns on when it gets too hot or too cold.

You'll also connect some LED lights to a GPIO pin on the HUZZAH32, so **you can turn on or off the lights from the DK IoT Mobile App** , or when someone opens the door.

### Adafruit Non-Latching Mini Relay FeatherWing

[Adafruit Non-Latching Mini Relay FeatherWing](https://www.adafruit.com/product/2895)
A Feather board without ambition is a Feather board without FeatherWings! This is&nbsp;the **Non-Latching Mini Relay FeatherWing**.&nbsp;It gives you power to control, and control over power. Put simply, you can now turn on and off lamps, fans, solenoids, and other small...

In Stock
[Buy Now](https://www.adafruit.com/product/2895)
[Related Guides to the Product](https://learn.adafruit.com/products/2895/guides)
![Angled shot of an Adafruit Non-Latching Mini Relay FeatherWing. 
](https://cdn-shop.adafruit.com/640x480/2895-05.jpg)

### Adafruit LED Sequins - Ruby Red - Pack of 5

[Adafruit LED Sequins - Ruby Red - Pack of 5](https://www.adafruit.com/product/1755)
Sew a little sparkle into your wearable project with an Adafruit LED Sequin. These are the kid-sister to our popular [Flora NeoPixel](http://www.adafruit.com/products/1260), they only show a single color and they don't have digital control, but that makes them smaller easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/1755)
[Related Guides to the Product](https://learn.adafruit.com/products/1755/guides)
![Single LED sequin PCB attached to two alligator clips, glowing red](https://cdn-shop.adafruit.com/640x480/1755-00.jpg)

### CD DVD Spindle Motor

[CD DVD Spindle Motor](https://www.adafruit.com/product/3882)
What's this? A record player for _ants_?? Not at all! This is a **DVD/CD Spindle Motor** , that thing that's inside a CD or DVD player, that turns the disc around really fast. These motors have some great benefits that make them <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3882)
[Related Guides to the Product](https://learn.adafruit.com/products/3882/guides)
![Video of a CD DVD Spindle Motor spinning.](https://cdn-shop.adafruit.com/product-videos/640x480/3882-05.jpg)

### 3-Bladed Trifoil Propeller Fan for DC Motor

[3-Bladed Trifoil Propeller Fan for DC Motor](https://www.adafruit.com/product/3896)
_Sprockets, wheels, and gears, oh my!_ We really like our DC hobby&nbsp;motors&nbsp;but unless you have a 3D printer it can be a challenge to get fun add-ons. That's why we've got this **3-Bladed Tri-foil Propeller** - it snaps on like a breeze (pun intended!)...

In Stock
[Buy Now](https://www.adafruit.com/product/3896)
[Related Guides to the Product](https://learn.adafruit.com/products/3896/guides)
![Small, blue, plastic, 3-bladed trefoil propeller fan.](https://cdn-shop.adafruit.com/640x480/3896-00.jpg)

You'll need a few JST-PH cables for this build. These cables will allow you to easily remove sensors connected to the IoT Home Hub from the enclosure with a nice _click._

### JST-PH Battery Extension Cable - 500mm

quantity: 3
[JST-PH Battery Extension Cable - 500mm](https://www.adafruit.com/product/1131)
By popular demand, we now have a handy extension cord for all of our JST PH-terminated battery packs (such as our LiIon/LiPoly and 3xAAA holders). One end has a JST-PH compatible socket, and the other end has a matching plug. Between the two, 500mm of color coded wire. Handy for wearable...

In Stock
[Buy Now](https://www.adafruit.com/product/1131)
[Related Guides to the Product](https://learn.adafruit.com/products/1131/guides)
![Front shot of JST-PH Battery Extension Cable.](https://cdn-shop.adafruit.com/640x480/1131-00.jpg)

# Tools and Materials

You also may want to pick up the following materials and tools to complete this project.

### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

In Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)
![USB cable - USB A to Micro-B - 3 foot long](https://cdn-shop.adafruit.com/640x480/592-01.jpg)

### Multi-Colored Heat Shrink Pack - 3/32" + 1/8" + 3/16" Diameters

[Multi-Colored Heat Shrink Pack - 3/32" + 1/8" + 3/16" Diameters](https://www.adafruit.com/product/1649)
Heat shrink is the duct tape of electronics which I guess makes this heat shrink the colorful and exciting duct tape they sell&nbsp;at craft stores. &nbsp;This heat shrink comes in six different colors - red, blue, green, yellow, white and the traditional black.

Each pack contains ten...

In Stock
[Buy Now](https://www.adafruit.com/product/1649)
[Related Guides to the Product](https://learn.adafruit.com/products/1649/guides)
![Array of many colorful heatshrink tubes.](https://cdn-shop.adafruit.com/640x480/1649-00.jpg)

### Hook-up Wire Spool Set - 22AWG Stranded-Core - 6 x 25ft

[Hook-up Wire Spool Set - 22AWG Stranded-Core - 6 x 25ft](https://www.adafruit.com/product/3111)
This is a box of **six** &nbsp;25ft **&nbsp;** spools of **stranded-core** wire. These&nbsp;spools&nbsp;of stranded-core wires are&nbsp;easily soldered to and are&nbsp;rated 80C and 300V (UL AWM style 1007). Best used for wiring jigs where there's...

In Stock
[Buy Now](https://www.adafruit.com/product/3111)
[Related Guides to the Product](https://learn.adafruit.com/products/3111/guides)
![Hook-up Wire Spool Set in box with 6 colorful wires coming out](https://cdn-shop.adafruit.com/640x480/3111-02.jpg)

### Hakko Professional Quality 20-30 AWG Wire Strippers

[Hakko Professional Quality 20-30 AWG Wire Strippers](https://www.adafruit.com/product/527)
These are the finest wire strippers we have used, and if you have to do a lot of wiring, you will agree! They have soft rounded grips - very comfortable to use, and precision ground notches that do a perfect job every time. No more yanking or twisting to strip wires cleanly and quickly.<br...></br...>

In Stock
[Buy Now](https://www.adafruit.com/product/527)
[Related Guides to the Product](https://learn.adafruit.com/products/527/guides)
![Red and black multi-size wire stripplers, closed](https://cdn-shop.adafruit.com/640x480/527-02.jpg)

### Mini Solder spool - 60/40 lead rosin-core solder 0.3mm diameter

[Mini Solder spool - 60/40 lead rosin-core solder 0.3mm diameter](https://www.adafruit.com/product/145)
If you want to make a kit you'll need some solder. This 100g (about 1/4 lb) spool is just the right amount, not too much (like 1 lb spools) and not too little (like those little 'pocket clip' vials). 0.3mm diameter, 60/40 'no clean' rosin core. Good for all through-hole...

In Stock
[Buy Now](https://www.adafruit.com/product/145)
[Related Guides to the Product](https://learn.adafruit.com/products/145/guides)
![Angled shot of solder spool.](https://cdn-shop.adafruit.com/640x480/145-03.jpg)

- [Next Page](https://learn.adafruit.com/digikey-iot-studio-smart-home/reviewing-the-internet-of-things.md)

## Guide Products

### Assembled Adafruit HUZZAH32 – ESP32 Feather Board

[Assembled Adafruit HUZZAH32 – ESP32 Feather Board](https://www.adafruit.com/product/3619)
Aww yeah, it's the Feather you have been waiting for, and now with **stacking headers**! The **HUZZAH32** is our ESP32-based Feather, made with the official WROOM32 module. We packed everything you love about Feathers: built in USB-to-Serial converter, automatic...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3619)
[Related Guides to the Product](https://learn.adafruit.com/products/3619/guides)
### Adafruit Quad 2x2 FeatherWing Kit with Headers

[Adafruit Quad 2x2 FeatherWing Kit with Headers](https://www.adafruit.com/product/4253)
This is the **FeatherWing Quad 2x2** - a prototyping add-on and more for all Feather boards. This is similar to our [FeatherWing Proto](https://www.adafruit.com/products/2884) except there are four! The magic of the Quad comes when you want to connect your Feather to...

In Stock
[Buy Now](https://www.adafruit.com/product/4253)
[Related Guides to the Product](https://learn.adafruit.com/products/4253/guides)
### Adafruit ADXL343 + ADT7410 Sensor FeatherWing

[Adafruit ADXL343 + ADT7410 Sensor FeatherWing](https://www.adafruit.com/product/4147)
Upgrade any Feather board with motion and precision temperature sensing, with this all-in-one sensing FeatherWing. It sports two fantastic sensors from Analog Devices: an ADXL343 triple-axis accelerometer and an ADT7410 precision temperature sensor.

Both sensors are connected over the...

In Stock
[Buy Now](https://www.adafruit.com/product/4147)
[Related Guides to the Product](https://learn.adafruit.com/products/4147/guides)
### Adafruit BME680 - Temperature, Humidity, Pressure and Gas Sensor

[Adafruit BME680 - Temperature, Humidity, Pressure and Gas Sensor](https://www.adafruit.com/product/3660)
The long awaited BME680 from Bosch gives you&nbsp;_all the environmental sensing you want_&nbsp;in one small package. This little sensor contains&nbsp; **temperature** ,&nbsp; **humidity** ,&nbsp; **barometric pressure,** &nbsp;and&nbsp; **VOC...**

In Stock
[Buy Now](https://www.adafruit.com/product/3660)
[Related Guides to the Product](https://learn.adafruit.com/products/3660/guides)
### Magnetic contact switch (door sensor)

[Magnetic contact switch (door sensor)](https://www.adafruit.com/product/375)
This sensor is essentially a reed switch, encased in an ABS plastic shell. Normally the reed is 'open' (no connection between the two wires). The other half is a magnet. When the magnet is less than 13mm (0.5") away, the reed switch closes. They're often used to detect when a...

In Stock
[Buy Now](https://www.adafruit.com/product/375)
[Related Guides to the Product](https://learn.adafruit.com/products/375/guides)
### Buzzer 5V - Breadboard friendly

[Buzzer 5V - Breadboard friendly](https://www.adafruit.com/product/1536)
Hey want to hear a really loud noise? Apply 3V to 5V to this buzzer module and you'll be rewarded with a loud 2KHz BEEEEEEEEEEEEEEEEEP. Unlike a [plain piezo](http://www.adafruit.com/products/160), this buzzer does not need an AC signal. Inside is a piezo plus the driver...

In Stock
[Buy Now](https://www.adafruit.com/product/1536)
[Related Guides to the Product](https://learn.adafruit.com/products/1536/guides)
### Adafruit Non-Latching Mini Relay FeatherWing

[Adafruit Non-Latching Mini Relay FeatherWing](https://www.adafruit.com/product/2895)
A Feather board without ambition is a Feather board without FeatherWings! This is&nbsp;the **Non-Latching Mini Relay FeatherWing**.&nbsp;It gives you power to control, and control over power. Put simply, you can now turn on and off lamps, fans, solenoids, and other small...

In Stock
[Buy Now](https://www.adafruit.com/product/2895)
[Related Guides to the Product](https://learn.adafruit.com/products/2895/guides)
### Adafruit LED Sequins - Ruby Red - Pack of 5

[Adafruit LED Sequins - Ruby Red - Pack of 5](https://www.adafruit.com/product/1755)
Sew a little sparkle into your wearable project with an Adafruit LED Sequin. These are the kid-sister to our popular [Flora NeoPixel](http://www.adafruit.com/products/1260), they only show a single color and they don't have digital control, but that makes them smaller easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/1755)
[Related Guides to the Product](https://learn.adafruit.com/products/1755/guides)

## Related Guides

- [Adafruit HUZZAH32 - ESP32 Feather](https://learn.adafruit.com/adafruit-huzzah32-esp32-feather.md)
- [Adafruit BME680](https://learn.adafruit.com/adafruit-bme680-humidity-temperature-barometic-pressure-voc-gas.md)
- [Adafruit ADXL343 + ADT7410 Sensor FeatherWing](https://learn.adafruit.com/adxl343-adt7410-sensor-featherwing.md)
- [Interactive Map with Circuit Playground Express](https://learn.adafruit.com/interactive-map-with-cpx.md)
- [Getting Started with HalloWing for Hackaday Supercon Attendees](https://learn.adafruit.com/getting-started-with-hallowing-for-hackaday-supercon-attendees.md)
- [Cappy Monster M4sk with Animated Eyes](https://learn.adafruit.com/cappy-monster-m4sk.md)
- [NeoTrellis Game](https://learn.adafruit.com/neotrellis-box-game.md)
- [Crickit Collapsible House with MakeCode](https://learn.adafruit.com/collapsible-house.md)
- [Color Mixing QT Py Cuff Bracelet](https://learn.adafruit.com/color-mixing-qt-py-cuff.md)
- [MIDI Laser Harp with Time of Flight Distance Sensors](https://learn.adafruit.com/midi-laser-harp-time-of-flight-sensors.md)
- [ABC Soundboards with NeoTrellis](https://learn.adafruit.com/abc-soundboards-with-neotrellis.md)
- [Perfect Pitch Machine](https://learn.adafruit.com/perfect-pitch-machine.md)
- [PyPortal IoT Weather Station](https://learn.adafruit.com/pyportal-iot-weather-station.md)
- [Lego Neon NeoPixel Sign with CircuitPython](https://learn.adafruit.com/lego-neon-sign.md)
- [Capacitive Touch Pulsing Heart](https://learn.adafruit.com/3d-printed-heart-capacitive-touch.md)
- [Making a PyPortal User Interface with DisplayIO](https://learn.adafruit.com/making-a-pyportal-user-interface-displayio.md)
- [PyPortal IoT Data Logger with Analog Devices ADT7410, Adafruit IO and CircuitPython](https://learn.adafruit.com/iot-pyportal-data-logger-adafruitio-circuitpython.md)
- [Pico W HTTP Server with CircuitPython](https://learn.adafruit.com/pico-w-http-server-with-circuitpython.md)
