User Tools

Site Tools


Button Shield Kit Tutorial

Product Description:


This is an unassembled kit and requires basic soldering. This is designed for use with the Digispark development board, which is not included.


Part Quantity Identification
Button Shield PCB1
10k ohm 1/4 W resistor 1% or 5%1 Brown - Black - Orange
12x12mm tactile momentary button1
1×40 pin male 0.1“ pitch header 9 pins worth

Resistor Values: For more information on how to identify the value of the resistors, we recommend these sites: A nice simple resistor calculator: A comprehensive article on identification:

Soldering: If you are new to soldering we recommend the following tutorials: Soldering Basics ( and Soldering Crash Course from the folks at Sparkfun ( How to solder from the Curious Inventor:

Adafruit has this excellent guide that starts with the tools needed and then shows detailed pictures, including some of the common problems that beginners experience (

We assume for these assembly instructions that you know the basics of thru-hole soldering. If you don't check out the links above, these boards are very easy to solder - we promise!


Empty kit bag (or if using a raw PCB, acquire parts) and verify contents.


Insert the resistor through the top and solder on bottom of board. Cut excess leads.


Insert button on top and solder four leads on the bottom.


Cut a length of male headers 6 pins long and one 3 pins long. Insert into corresponding positions (on the bottom of the board) and solder each pin.

Tip: Inseting the headers into a breadboard and then placing the board on top can make this process easier.

Note: If you are using stackable headers, use them here instead of the standard male headers.



Your Button shield is complete!


void setup() {
    // Initialize the LED pin as output
    pinMode(1, OUTPUT);
    // Initialize the LED pin as input
    pinMode(5, INPUT);
void loop() {
        digitalWrite(1, HIGH);  // Turn the LED on when pressed
        digitalWrite(1, LOW);   // Turn the LED off when not pressed
digispark/tutorials/button.txt · Last modified: 2016/06/09 12:03 (external edit)