Giter Site home page Giter Site logo

arduino-tv-b-gone's Issues

No longer seems to be working

I have tried it on Ardunio Nano and various Pro Mini boards and none of them seem to be working properly.

Not sure exactly what the issue is but I think it has something to do with timing. If I change default from 25 to 29 it sends some valid IR signals but not all of them are vaild.

I have been using my Flipper Zero to check the IR signals generated and it is only sending maybe 10% valid IR signals when the timing is set to 29 otherwise it doe not send any valid signals.

I wonder if it is due to changes to the IDE or something else causing the issue?

Has anyone recently been successful in getting the TV-B-Gone to work?

Doesn't compile on recent versions of avr-g++

Hi! First, this is great. Thanks for porting this code :) But there is an issue. When I try to compile this using either avr-g++ 4.7.3 on ubuntu 13.10 or avr-g++ 4.8.something on fedora 20, I get the following error:

In file included from main.h:1:0,
             from WORLDcodes.cpp:12:
WORLDcodes.cpp:8506:37: error: variable 'NApowerCodes' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 const struct IrCode *NApowerCodes[] PROGMEM = {
                                 ^
WORLDcodes.cpp:8646:37: error: variable 'EUpowerCodes' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 const struct IrCode *EUpowerCodes[] PROGMEM = {
                                 ^

It works flawlessly when I downgrade to avr-g++ 4.5.3.

LG TV issue

I have facing troubles with LG TV in Brazil. It doesn’t work. Someone knows what is its code?

Does not support attiny85-based Arduino compatibles

This project uses timer2 (presumably for PWM for IR output in xmitCodeElement), which is not available on the ATTiny85. This means that it will not run on Arduino-compatibles based on the attiny85.

One workaround could be to outsource the IR output to something like the IRRemote library, which does support ATTiny boards.

Specifically, I was trying to run this on this Adafruit Trinket.

Compatibility with different projects

@shirriff Is there a way to do something like include this in another project as a library or something? Like, instead of having to integrate this into one's project, one could just call the method of this repo from the main code. (I hope that made sense :D)

Compilation Error for Flora

Working on a solution but still I get this error:

error: variable 'NApowerCodes' must be const in order to be put into read-only section by means of 'attribute((progmem))'
const struct IrCode *NApowerCodes[] PROGMEM = {

won't compile & run with ATtiny 85

Hello folks!

I tried to compile this code for ATtiny85 with Arduino IDE 1.8.19.

The first issue was, that some variables weren't defined. After defining them in the ino-file,
#if BOARD == ATTINY85 int TCNT2, COM2A0, COM2B1, TCCR2A, TCCR2B, OCR2A, OCR2B, WGM20, WGM21, WGM22, CS21; #endif
the compiling process seemed to be okay.

But then the linker told me, that the code would use 2k more space than the 8kB, the microcontroller can deliver.
So, I reduced the IR code database for NA const IrCode* const NApowerCodes[] PROGMEM =, by just commenting many lines out in WORLD_IR_CODES.h.
Now I can compile the program and burn it via ISP into my ATtiny85. The chip seems to be doing something, but it isn't generating always valid IR codes. I tested this with an JOY-IT multi tester, that can detect and decode IR signals.
Yes, I told the ATtiny85 to run with 16MHz(PLL) by first burning a optiboot bootloader. The code after compilation was uplaoded without bootloader, of course. The standard LED is flashing and it seems to behave the same, as on the Arduino nano.

So, why don't these both boards behave the same way? Are the variables above not used as INT? Does the ATtiny85 have another timing problem? Does the avr-gcc do different things for the 328P on the nano board and the ATtiny85 chip?

Does anyone have an idea?

If someone will need to inpect the code, I'll create an upload link, cause I'm not really familiar with GIT.

Best regards,
Thomas

IR codes updates?

It appears that over time the v1.3 code works with fewer and fewer TVs - what is the best available resource to find updated IR codes for new makes/models?

Thank you!

Index exceeding limits for code_na007Code

Hi, When I printed the timing info I observed that for "code_na007Code" the ti is exceeding the limits of "code_na007Times". I cannot fix as I don't have original timing sequence.

Error on Debug output

Error on line 293 of the .ino
//DEBUGP(uint16_t x = (freq+1) * 2; // original error
Must be :
DEBUGP(uint16_t x = (freq+1) * 8; // Invert freq_to_timerval function and print 35 to 40 Khz carrier frequency as it should

But, the TV B Gone does'nt anything on my Sony TV, the IR is 940 nm, i should verify

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.