Code Monkey home page Code Monkey logo

irpatternrecorder-thresh's Introduction

IRPatternRecorder-thresh

Description


An improved version of my firmware to record infrared patterns of IR LEDs straight from the cathode
This one has added support for threshold for pulses, meaning pulses shorter than the threshold will be ignored

How to use this

  1. Open main.c, change the frequency of CPU macro (F_CPU), number of samples(SAMPLES), and threshold (THRESH_COUNT). The threshold is the number of F_CPU / 8 pulses. You can use this simple formula to calculate the threshold time to be set THRESH_COUNT = (threshold_time * F_CPU) / 8
  2. Compile using the makefile, you will need avr-binutils, avr-gcc, avr-libc
  3. Flash using avrdude or whatever you want to use
  4. Make sure your AVR and the device you're recording share the same ground
  5. Connect the anode of the IR LED to the PD2 (on an ATmega8)
  6. Connect your AVR to the serial port of your computer and set it to 9600
  7. Power on the AVR, and press a button on the remote, which you want to record the IR pattern for
  8. Press any button on your serial port tool, and it will begin to dump the data

NOTE

  • This was meant to be used with an ATmega8. Please make appropriate changes to the firmware before using it on another AVR.
  • The output data is the number of CPU cycles a state remained for. This data can be easily imported and interpreted using a spreadsheet software as a CSV file

irpatternrecorder-thresh's People

Contributors

shrinathn avatar

Watchers

 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.