# Overview
The Lonely Binary TinkerBlock TK36 Active Buzzer is a fun and easy-to-use gadget that adds sound ato your DIY projects! Just connect it to your microcontroller (like an Arduino or Raspberry Pi), and it’ll beep when you send a high signal, with a little LED light that turns on too. It’s designed to be safe and reliable, perfect for creating alarms, fun noises, or alerts for hobbies like robotics or crafting.

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

# Components
## Active Buzzer
An active buzzer and a passive buzzer are both used to produce sound in electronic projects, but they differ in how they operate and are controlled.
Active buzzer contains an internal oscillator circuit that generates sound when powered (e.g., with a DC voltage). It produces a fixed tone as soon as VCC is applied to the SIGNAL pin. it requires only a simple on/off signal (active-high or active-low) from a microcontroller pin. No additional signal modulation is needed.
## Why Use an NPN Transistor?
The NPN transistor (Q1) is used to amplify and switch the current required to drive the active buzzer. Direct connection of the buzzer to a digital pin might overload the microcontroller's limited output current (typically 20-40mA), risking damage or unreliable operation. The NPN transistor acts as a switch: when the SIGNAL pin goes high, it allows a larger current from VCC to flow through the buzzer, controlled by the microcontroller's smaller signal. This setup ensures the buzzer operates efficiently while protecting the microcontroller.
## Purpose of the Diode
The diode (D2) serves as a flyback or freewheeling diode, protecting the circuit from voltage spikes. When the buzzer is turned off, the collapsing magnetic field in its internal coil can generate a reverse voltage spike. This spike could damage the NPN transistor or other components. The diode provides a path for this reverse current to dissipate safely, preventing potential damage and ensuring long-term reliability of the TK36 module.
# Sample Code
```C++
// Pin assignment for the Lonely Binary TinkerBlock TK36 Active Buzzer Signal pin
const int buzzerPin = 3;
void setup() {
// Configure the buzzer pin as an output to send control signals
pinMode(buzzerPin, OUTPUT);
// Initialize serial communication at 9600 baud rate for debugging or status output
Serial.begin(9600);
}
void loop() {
// Turn the buzzer on by setting the pin HIGH (active-high operation)
digitalWrite(buzzerPin, HIGH);
Serial.println("Buzzer ON");
delay(1000); // On for 1 second
// Turn the buzzer off by setting the pin LOW
digitalWrite(buzzerPin, LOW);
Serial.println("Buzzer OFF");
delay(1000); // Off for 1 second
}
```
# Product Link
For product support, manuals, tutorials, and sample code, please visit our product page to access comprehensive resources.
[https://lonelybinary.com/products/tk36](https://lonelybinary.com/products/tk36)
# 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.