Code Monkey home page Code Monkey logo

stm32f103_nec_decoder's Introduction

STM32F103_NEC_DECODER

Project for decoding NEC IR protocol with interrupt to avoid blocking code.

Material list

1 blue pill STM32F103C8 or STM32F1 family microcontroller
1 IR receiver
1 8x8 LED Matrix Drived with MAX7219 (optional)

MCU Pinout

Schematics

RCC_OSC_IN & RCC_OSC_OUT = 8MHz Oscillator
LED = Led for indicator
SPI1* and CS pins = MAX7219
SYS_JT* = debug

Little guide of usage

For display debug (to see timing between rinsing/falling edges) in the Virtual port com (USB)
uncomment '#define DEBUG' in the main.c file.

For display the result of decoded NEC data in MAX7219 please connect the MAX7219 matrix (see schematics below) and
uncomment '#define MAXIMDISP' int the main.c file.

For display the result of decoded NEC data in the Virtual port com (USB)
uncomment '#define VPCOM' in the main.c file.

Future features and bug to resolve

  • Add pseudo-CRC control (but some remotes don't use the real NEC protocol)
  • Delete data when time out to repeat
  • IR receiver VS1838B has a bug when it's don't detect any IR code for long time see note at end (coming soon)

Libararies and programs used to init project

SMT32CUBEMX was used to initialise the project code, please open the .ioc file to find my microcontroller configuration.
All libraries used in this project are from STM32CUBEMX from STMicroelectronics.

stm32f103_nec_decoder's People

Stargazers

 avatar  avatar

Watchers

 avatar  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.