Giter Site home page Giter Site logo

cnc4less / stm32-soft-debounce-adc-buttons-read Goto Github PK

View Code? Open in Web Editor NEW

This project forked from usefulelectronics/stm32-soft-debounce-adc-buttons-read

0.0 0.0 0.0 13.81 MB

STM32 Access Multiple Buttons Through One Pin Uisng ADC and DMA With Software Debounce algorithm

C 97.80% Assembly 0.24% Makefile 1.97%

stm32-soft-debounce-adc-buttons-read's Introduction

Build Status

Techniques of Programming STM32 with least pin-count possible



STM32 Access Multiple Buttons Through One Pin With Software Debounce

A micro-controller can read the status of several buttons using only one pin using ADC with the help of a simple voltage divider circuit. The most effective way of doing digital read is to perform it using DMA, which will let the CPU not get busy while sampling the read voltage level continuously. This piece of code shows uses one of the algorithms used to debouce buttons by the software while trying to read them.

Circuit Diagram


Electronic Piano

The project has been developed to include more buttons and a buzzer that can play musical notes by pressing the buttons. Circuit Diagram


Menu Button

STM32 micro controller is used to implement the algorithm used to trigger several different events, which are single press, double press and held pressed, form one single push button is explained with the necessary measurements that the code is based on. Circuit Diagram


PCF8574 Pin Expander

STM32 MCU is used to interface PCF8574 Pin Expander over I2C to control 8 LED sound level indicator using only 2 pins. Both hardware and software are explained in details. All tutorial materials are shared in the GitHub Repository. Circuit Diagram


stm32-soft-debounce-adc-buttons-read's People

Contributors

usefulelectronics avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.