# Digital Inputs with Adafruit IO WipperSnapper

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/104/782/medium800thumb/adafruit_io_ezgif.com-gif-maker_%2816%29.jpg?1632164272)

This guide is part of a series of guides that cover the basics of using Adafruit IO WipperSnapper. It will show you how to send push-button data to Adafruit IO, without writing a single line of code.

![](https://cdn-learn.adafruit.com/assets/assets/000/104/938/medium800/sensors_image.png?1633043210)

WipperSnapper is an interface for&nbsp;[Adafruit IO, Adafruit's incredibly easy-to-use IoT platform](https://learn.adafruit.com/welcome-to-adafruit-io/what-is-adafruit-io), designed to turn any WiFi-capable board into an IoT device without programming a single line of code.&nbsp;

Simply load the WipperSnapper firmware onto your board, add credentials, and plug it into power. Your board will automatically register itself with your Adafruit IO account.

From there, you can add&nbsp;_components_&nbsp;to your board such as buttons, switches, potentiometers, sensors, and more! Components are&nbsp;_dynamically&nbsp;_added to hardware without the need for re-programming your board.

## Parts
### Adafruit HUZZAH32 – ESP32 Feather Board

[Adafruit HUZZAH32 – ESP32 Feather Board](https://www.adafruit.com/product/3405)
Aww yeah, it's the Feather you have been waiting for! 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 bootloader reset, Lithium Ion/Polymer charger,...

In Stock
[Buy Now](https://www.adafruit.com/product/3405)
[Related Guides to the Product](https://learn.adafruit.com/products/3405/guides)
![Angled shot of black, rectangular microcontroller.](https://cdn-shop.adafruit.com/640x480/3405-08.jpg)

### USB Type A to Type C Cable - approx 1 meter / 3 ft long

[USB Type A to Type C Cable - approx 1 meter / 3 ft long](https://www.adafruit.com/product/4474)
As technology changes and adapts, so does Adafruit. This&nbsp;&nbsp; **USB Type A to Type C** cable will help you with the transition to USB C, even if you're still totin' around a USB Type A hub, computer or laptop.

USB C is the latest industry-standard connector for...

In Stock
[Buy Now](https://www.adafruit.com/product/4474)
[Related Guides to the Product](https://learn.adafruit.com/products/4474/guides)
![Angled shot of a coiled black, USB-C to USB-A cable.](https://cdn-shop.adafruit.com/640x480/4474-02.jpg)

### Tactile Button switch (6mm) x 20 pack

[Tactile Button switch (6mm) x 20 pack](https://www.adafruit.com/product/367)
Little clicky switches are standard input "buttons" on electronic projects. These work best in a PCB but [can be used on a solderless breadboard as shown in this tutorial](https://learn.adafruit.com/adafruit-arduino-lesson-6-digital-inputs?view=all). The pins are normally...

In Stock
[Buy Now](https://www.adafruit.com/product/367)
[Related Guides to the Product](https://learn.adafruit.com/products/367/guides)
![angled shot of 20 6mm mini tactile button switches.](https://cdn-shop.adafruit.com/640x480/367-01.jpg)

### Through-Hole Resistors - 10K ohm 5% 1/4W - Pack of 25

[Through-Hole Resistors - 10K ohm 5% 1/4W - Pack of 25](https://www.adafruit.com/product/2784)
ΩMG! You're not going to be able to resist these handy resistor packs!&nbsp;Well, axially, they&nbsp;do all of the resisting for you!

This is a **25 Pack of 10K Ω Resistors.** More specifically, they are **carbon film** , through-hole...

In Stock
[Buy Now](https://www.adafruit.com/product/2784)
[Related Guides to the Product](https://learn.adafruit.com/products/2784/guides)
![Angled shot of 25 Through-Hole Resistors - 10K ohm 5% 1/4W.](https://cdn-shop.adafruit.com/640x480/2784-00.jpg)

### Half Sized Premium Breadboard - 400 Tie Points

[Half Sized Premium Breadboard - 400 Tie Points](https://www.adafruit.com/product/64)
This is a cute, half-size breadboard with&nbsp;400 tie points, good for small projects. It's 3.25" x 2.2" / 8.3cm&nbsp;x 5.5cm&nbsp;with a standard double-strip in the middle and two power rails on both sides.&nbsp;You can pull the power rails off easily to make the breadboard as...

Out of Stock
[Buy Now](https://www.adafruit.com/product/64)
[Related Guides to the Product](https://learn.adafruit.com/products/64/guides)
![Angled shot of half-size solderless breadboard with red and black power lines.](https://cdn-shop.adafruit.com/640x480/64-06.jpg)

### Breadboarding wire bundle

[Breadboarding wire bundle](https://www.adafruit.com/product/153)
75 flexible stranded core wires with stiff ends molded on in red, orange, yellow, green, blue, brown, black and white. These are a major improvement over the "box of bent wires" that are sometimes sold with breadboards, and faster than stripping your own solid core wires. Makes...

In Stock
[Buy Now](https://www.adafruit.com/product/153)
[Related Guides to the Product](https://learn.adafruit.com/products/153/guides)
![Bundle of multi-colored multi-length wire jumpers](https://cdn-shop.adafruit.com/640x480/153-04.jpg)

# Digital Inputs with Adafruit IO WipperSnapper

## Wiring

There are two different ways to wire this project. The first way uses a physical pull-down resistor, and the second one uses a built-in pull-down resistor.

## Physical pull-down wiring
![](https://cdn-learn.adafruit.com/assets/assets/000/104/829/medium800/sensors_button.png?1632332208)

Connect the following wires:

- Feather **GND** to a 10K resistor to the bottom left side of button
  - The resistor is not polarized, so it can be connected in either direction.

- Feather **3V** to the bottom right side of button
- Feather **Pin 14** &nbsp; to the&nbsp; upper left side of button

### What is a pull-down resistor?

The resistor being used in this project is really important. It's used to pull the input pin, #14 down. This makes it so that the button doesn't appear to open and close a bunch when it isn't pressed. If you were to switch the red and black wire, it would be pulled up, which would make it show up as 0 when pressed and 1 when not pressed, as opposed to a pull-down which is 0 when not pressed and 1 when pressed.

Resistors used to pull should not be too low, which would short the circuit and always show True, or too high, which would be effectively the same as no resistor at all. Generally, resistance values between 1K and 100K are used, but nominally just use 10K.

Feel free to play around with this yourself once you've set it up with WipperSnapper. If you disconnect the GND wire completely, you'll notice that the state of the button switches back and forth really fast and you get rate limited quickly. Also try switching the red and black wires so that the red one is connected to the resistor and the black one is connected to the lower right pin of the switch. You should see it show up as closed when it's open and open when it's closed.

## Built-in pull-down wiring
![](https://cdn-learn.adafruit.com/assets/assets/000/105/680/medium800/sensors_internal_pull.png?1634750003)

Connect the following wires:

- Feather **GND** to one side of the button
- Feather **Pin 14** to the other side of the button

# Digital Inputs with Adafruit IO WipperSnapper

## WipperSnapper Setup

Now that you've wired everything up and added your board to WipperSnapper, it's time to set up the button itself.

[Log into Adafruit.io](https://io.adafruit.com/wippersnapper "Log into Adafruit.io").

From the device page, click&nbsp; **+ New Component**.

Make sure that your device says that it is online next to the name of the board. If it isn't but it was previously connected, try moving it closer to your router.

![sensors_Screenshot_from_2021-09-21_14-02-57.png](https://cdn-learn.adafruit.com/assets/assets/000/104/830/medium640/sensors_Screenshot_from_2021-09-21_14-02-57.png?1632332519)

Then, click on&nbsp; **Push Button**.

![adafruit_io_Screenshot_from_2021-09-21_14-03-26.png](https://cdn-learn.adafruit.com/assets/assets/000/104/803/medium640/adafruit_io_Screenshot_from_2021-09-21_14-03-26.png?1632247842)

Name it whatever you want. I chose to call it _button_, but anything else should work as well.

Set **Push Button**** &nbsp;Pin** to D14.

Finally,&nbsp;make sure that **Return Interval** &nbsp;is set to&nbsp; **On Change**.

![adafruit_io_Screenshot_from_2021-09-21_14-03-44.png](https://cdn-learn.adafruit.com/assets/assets/000/104/804/medium640/adafruit_io_Screenshot_from_2021-09-21_14-03-44.png?1632247875)

If you are using an internal pull-up, check the box labeled&nbsp; **Specify Pin Pull Direction?** and select the box labeled&nbsp; **Pull Up**. If you are using a physical pull-down resistor, you don't need to do this.

![sensors_Screenshot_2021-10-14_12-05-46.png](https://cdn-learn.adafruit.com/assets/assets/000/105/465/medium640/sensors_Screenshot_2021-10-14_12-05-46.png?1634227859)

## Project usage

Now, as you push the button, you should see the text in the grey sensor box go from "Unpressed" to "Pressed."

![](https://cdn-learn.adafruit.com/assets/assets/000/104/805/medium800thumb/adafruit_io_ezgif.com-gif-maker_%2816%29.jpg?1632248015)


## Featured Products

### Adafruit HUZZAH32 – ESP32 Feather Board

[Adafruit HUZZAH32 – ESP32 Feather Board](https://www.adafruit.com/product/3405)
Aww yeah, it's the Feather you have been waiting for! 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 bootloader reset, Lithium Ion/Polymer charger,...

In Stock
[Buy Now](https://www.adafruit.com/product/3405)
[Related Guides to the Product](https://learn.adafruit.com/products/3405/guides)
### Tactile Button switch (6mm) x 20 pack

[Tactile Button switch (6mm) x 20 pack](https://www.adafruit.com/product/367)
Little clicky switches are standard input "buttons" on electronic projects. These work best in a PCB but [can be used on a solderless breadboard as shown in this tutorial](https://learn.adafruit.com/adafruit-arduino-lesson-6-digital-inputs?view=all). The pins are normally...

In Stock
[Buy Now](https://www.adafruit.com/product/367)
[Related Guides to the Product](https://learn.adafruit.com/products/367/guides)
### Half Sized Premium Breadboard - 400 Tie Points

[Half Sized Premium Breadboard - 400 Tie Points](https://www.adafruit.com/product/64)
This is a cute, half-size breadboard with&nbsp;400 tie points, good for small projects. It's 3.25" x 2.2" / 8.3cm&nbsp;x 5.5cm&nbsp;with a standard double-strip in the middle and two power rails on both sides.&nbsp;You can pull the power rails off easily to make the breadboard as...

Out of Stock
[Buy Now](https://www.adafruit.com/product/64)
[Related Guides to the Product](https://learn.adafruit.com/products/64/guides)
### Breadboarding wire bundle

[Breadboarding wire bundle](https://www.adafruit.com/product/153)
75 flexible stranded core wires with stiff ends molded on in red, orange, yellow, green, blue, brown, black and white. These are a major improvement over the "box of bent wires" that are sometimes sold with breadboards, and faster than stripping your own solid core wires. Makes...

In Stock
[Buy Now](https://www.adafruit.com/product/153)
[Related Guides to the Product](https://learn.adafruit.com/products/153/guides)
### Through-Hole Resistors - 10K ohm 5% 1/4W - Pack of 25

[Through-Hole Resistors - 10K ohm 5% 1/4W - Pack of 25](https://www.adafruit.com/product/2784)
ΩMG! You're not going to be able to resist these handy resistor packs!&nbsp;Well, axially, they&nbsp;do all of the resisting for you!

This is a **25 Pack of 10K Ω Resistors.** More specifically, they are **carbon film** , through-hole...

In Stock
[Buy Now](https://www.adafruit.com/product/2784)
[Related Guides to the Product](https://learn.adafruit.com/products/2784/guides)
### USB Type A to Type C Cable - approx 1 meter / 3 ft long

[USB Type A to Type C Cable - approx 1 meter / 3 ft long](https://www.adafruit.com/product/4474)
As technology changes and adapts, so does Adafruit. This&nbsp;&nbsp; **USB Type A to Type C** cable will help you with the transition to USB C, even if you're still totin' around a USB Type A hub, computer or laptop.

USB C is the latest industry-standard connector for...

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

## Related Guides

- [Adafruit HUZZAH32 - ESP32 Feather](https://learn.adafruit.com/adafruit-huzzah32-esp32-feather.md)
- [No-Code IoT Door Alarm with WipperSnapper](https://learn.adafruit.com/no-code-iot-door-alarm-with-wippersnapper.md)
- [All the Internet of Things - Episode Four: Adafruit IO](https://learn.adafruit.com/all-the-internet-of-things-episode-four-adafruit-io.md)
- [CircuitPython on ESP32 Quick Start](https://learn.adafruit.com/circuitpython-with-esp32-quick-start.md)
- [Halloween Skeleton Transformation Illusion Prop](https://learn.adafruit.com/halloween-skeleton-transformation-illusion-prop.md)
- [Make an AI Freezer Monitor](https://learn.adafruit.com/ai-freezer-monitor.md)
- [CircuitPython Web Workflow Code Editor Quick Start](https://learn.adafruit.com/getting-started-with-web-workflow-using-the-code-editor.md)
- [Introducing Adafruit Feather](https://learn.adafruit.com/adafruit-feather.md)
- [NeoTrellis Feather Case Assembly](https://learn.adafruit.com/neotrellis-feather-case-assembly.md)
- [All the Internet of Things - Episode Two: Protocols](https://learn.adafruit.com/alltheiot-protocols.md)
- [Adafruit IO Basics: Schedule Actions](https://learn.adafruit.com/adafruit-io-basics-scheduled-triggers.md)
- [IoT Air Quality Sensor with Adafruit IO](https://learn.adafruit.com/diy-air-quality-monitor.md)
- [Adafruit Swirly Aluminum Mounting Grid for 0.1" Spaced PCBs](https://learn.adafruit.com/swirly-grid.md)
- [LIS3MDL Triple-axis Magnetometer](https://learn.adafruit.com/lis3mdl-triple-axis-magnetometer.md)
- [Adafruit Feather nRF52840 Sense](https://learn.adafruit.com/adafruit-feather-sense.md)
