shirriff / arduino-tv-b-gone Goto Github PK
View Code? Open in Web Editor NEWThe TV-B-Gone software ported to the Arduino platform
Home Page: http://www.arcfn.com/2010/11/improved-arduino-tv-b-gone.html
The TV-B-Gone software ported to the Arduino platform
Home Page: http://www.arcfn.com/2010/11/improved-arduino-tv-b-gone.html
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?
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.
I have facing troubles with LG TV in Brazil. It doesn’t work. Someone knows what is its code?
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.
@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)
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 = {
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
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!
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 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.