# Overview
The Lonely Binary TinkerBlock TK04 Push Button is a robust, momentary tactile switch designed for interactive electronics projects. Featuring a large 12mm x 12mm push button with a cap, it ensures comfortable and reliable actuation. The TK04 is active-high, with a built-in 10kΩ pull-down resistor and an integrated LED that illuminates when the button is pressed, providing clear visual feedback. Ideal for Arduino, Raspberry Pi, or other microcontroller-based projects, this push button is perfect for applications like user interfaces, robotics, and prototyping.

> Digital, Active High
# Pinout
| Pin | Function |
| ------ | -------------------- |
| GND | Ground |
| VCC | VCC |
| NC | Not Connected |
| Signal | Digital, Active High |
# Dimensions

# Components
# Push Button
The 12mm x 12mm cap provides ergonomic actuation for easy use.
# Pull-Down Resistor
The TK04 uses a 10kΩ pull-down resistor to ensure the Signal pin remains at a stable low (GND) state when the button is not pressed. Without this resistor, the Signal pin would be "floating," meaning its voltage could randomly fluctuate due to electrical noise, leading to unpredictable microcontroller readings. The pull-down resistor ties the Signal pin to GND when the button is open, preventing false triggers and ensuring reliable operation. When the button is pressed, the Signal pin connects to VCC, registering a high state and activating the LED, providing both electrical and visual confirmation.
# LED
The LED, connected to the Signal pin, lights up during active-high state, enhancing user interaction and status indication.
# Sample Code
This Arduino code interfaces with the Lonely Binary TinkerBlock TK04 Push Button, connected to digital pin 9. The code initializes serial communication at 9600 baud and configures the button pin as an input. In the main loop, it continuously checks the button's state. When the button is pressed (HIGH), it prints "Button is pressed" to the Serial Monitor and includes a 300ms delay for debouncing to prevent multiple triggers from a single press.
```C++
// Pin assignment for the Lonely Binary TinkerBlock TK04 Push Button Signal pin
const int buttonPin = 9;
void setup() {
// Initialize serial communication at 9600 baud rate for debugging and status output
Serial.begin(9600);
// Configure the push button pin as an input
pinMode(buttonPin, INPUT);
}
void loop() {
// Read the state of the push button (active-high due to internal pull-down resistor)
if (digitalRead(buttonPin) == HIGH) {
// Output message to Serial Monitor when the button is pressed
Serial.println("Button is pressed");
// Debounce delay to prevent multiple rapid triggers from a single press
delay(300);
}
}
```
# Product Link
For product support, manuals, tutorials, and sample code, please visit our product page to access comprehensive resources.
[https://lonelybinary.com/products/tk04](https://lonelybinary.com/products/tk04)
# Support
If you encounter any issues, please go to [https://lonelybinary.com ](https://lonelybinary.com ) and click the Support button located in the bottom right corner. Our team is ready to assist you.
[](https://lonelybinary.com)
# Thank You
Thank you for choosing TinkerBlock to fuel your passion for STEM! Whether you’re a student diving into coding, an educator shaping future innovators, a hobbyist bringing your vision to life, or a business seeking cutting-edge solutions, TinkerBlock empowers you to create, learn, and innovate.
**For school orders, wholesale inquiries, or custom business solutions, please contact us to discuss your specific needs.**
[office@lonelybinar.com](office@lonelybinary.com)
> **Unleash Your Creativity with TinkerBlock – Where Coding Meets the Real World!**
TinkerBlock UNO R3 Starter Kit
Dive into the world of electronics, Arduino programming, and STEM projects with the Lonely Binary TinkerBlock Series Starter Kit.
- Choosing a selection results in a full page refresh.