tag:blogger.com,1999:blog-6264947694886887540.post5267438637132076842..comments2024-03-27T22:51:35.227-07:00Comments on Ken Shirriff's blog: TV-B-Gone for the ArduinoKen Shirriffhttp://www.blogger.com/profile/08097301407311055124noreply@blogger.comBlogger43125tag:blogger.com,1999:blog-6264947694886887540.post-43695015836748879952017-04-12T15:24:13.549-07:002017-04-12T15:24:13.549-07:00After a bit of "no that didn't work eithe...After a bit of "no that didn't work either..."<br />I found that the DEBUGP is a function that appears to be called to send<br />the debug code IF DEBUG is set to 1<br /><br />Here's the code I added<br />/*ADDING CODE TO SLOW THE DEBUG DISPLAY SO IT CAN BE READ MikeFlood35@gmail.com<br /><br /><br />DEBUGP (delay (1000)); // Insert this line at approx line #348<br />// ^^^^^^^^^^^ ONE SECOND DELAY.<br /><br /> THE CODE BELOW IS ONLY TO SHOW THE LOCATION <br />*/<br /> // print out the address in ROM memory we're reading<br /> DEBUGP(putstring("\n\rAddr: ");<br /> putnum_uh((uint16_t)data_ptr));<br /><br /><br /> // Read the carrier frequency from the first byte of code structure<br /> const uint8_t freq = pgm_read_byte(data_ptr++);<br /> // set OCR for Timer1 to output this POWER code's carrier frequency<br />#ifdef __AVR_ATmega32U4__<br /> OCR0A = freq;<br /> OCR0B = freq / 3; // 33% duty cycle<br />#else<br /> OCR2A = freq;<br /> OCR2B = freq / 3; // 33% duty cycleMikehttps://www.blogger.com/profile/17464143186890510976noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-43681499547975441512017-04-01T06:33:58.489-07:002017-04-01T06:33:58.489-07:00I came across info to enable Debugging by setting ...I came across info to enable Debugging by setting DEBUG 1. So I did<br />And I can see using Serial.print whats going on but it's too fast to really read.<br />Anyone got an idea of where / how to put a conditional delay statement in it.<br /><br />I tried to insert a DELAY (1000); it didn't work. I thought I took that out but now getting a compiler error. I probably typo'ed the code. I shall now replace the stuff in the library and try again.<br /> <br />And. . .has anyone made TVB Gone work on a Nano? I'd love to have the small physical size.Mikehttps://www.blogger.com/profile/17464143186890510976noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-58680731712368503112017-03-29T16:16:16.397-07:002017-03-29T16:16:16.397-07:00I have put the latest version of TV-B gone on a so...I have put the latest version of TV-B gone on a solderless breadboard.<br /><br />Using only one IR LED thus far but will add more and spray IR stuff from a great distance. <br />I am using direct drive from pin 3 on my Uno with a 10 ohm resistor in series with the LED to ground. Might add 2N2222 transistors instead of the direct from the Uno pin #3.<br />I also changed the pinMode for the NA / EU option to default pulled up rather than rely "floating" which could change while running due to all sorts of stuff.<br />Temperature change, RF interference, static charge etc. <br />pinMode INPUT_PULLUP worked with out problem.<br /><br />Only problem so far is that for my Sony TV it turns the TV off and then shortly after turns it back on again. And quick test of another TV, a Visio gets no action.<br />Further testing on that is needed.<br />Would be cool to serial.print (while debugging) the BRAND NAME as the codes are output by the LED.<br /><br />I wish the codes were commented by brand in the list. The construction of codes is not really user friendly. It must have been terribly tedious to come up with the format.<br /><br />But happy to know that my initial try is 99.9% functional. See me smile.Mikehttps://www.blogger.com/profile/17464143186890510976noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-60844587773774709022016-02-21T09:12:34.632-08:002016-02-21T09:12:34.632-08:00hi, does this work on an digispark?
(with an attin...hi, does this work on an digispark?<br />(with an attiny at16 mhz)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-80390989886202590722015-12-13T14:27:55.772-08:002015-12-13T14:27:55.772-08:00Has anyone experimented in removing all the 38Khz ...Has anyone experimented in removing all the 38Khz timing code from the sketch, and switch the code over to use the library Ken has supplied, and then using an lm555, triggering pin 4 on the lm555 which supplies the 38Khz modulation, and frees the arduino to ONLY be responsible for sending the code bits?<br /><br />This should allow us to simply use the lirc codes, and be any to choose any and all codes from there, and it simply becomes, "plug in the code and play!"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-29196974181347466572015-11-25T07:13:29.256-08:002015-11-25T07:13:29.256-08:00No, I never ported the TV-B-Gone code to use my IR...No, I never ported the TV-B-Gone code to use my IR library. It worked fine without it, so I didn't see the point.Ken Shirriffhttps://www.blogger.com/profile/08097301407311055124noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-23072108786008202852015-11-24T22:46:35.606-08:002015-11-24T22:46:35.606-08:00Did Ken Shirriff ever port his TV-B-Gone Code over...Did Ken Shirriff ever port his TV-B-Gone Code over to use his Arduino Infrared Library?<br /><br />If so, anyone with a URL to the ported code?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-76101860035126898012015-09-26T10:47:07.618-07:002015-09-26T10:47:07.618-07:00Oh, and this new sketch also works with Leonardo.Oh, and this new sketch also works with Leonardo.Anonymoushttps://www.blogger.com/profile/08133548888869660878noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-30602963488763314542015-09-26T10:45:56.272-07:002015-09-26T10:45:56.272-07:00I updated the TV-B-Gone sketch so that it works on...I updated the TV-B-Gone sketch so that it works on all version of the Arduino software to date (through V1.6.5). Please see my <i>Arduino For Total Newbies workshop page</i> for the link to download the TV-B-Gone sketch (<b><i>download #3</i></b>):<br />http://cornfieldelectronics.com/cfe/projects/tvbg_arduino/tvbg_arduino_workshop.phpAnonymoushttps://www.blogger.com/profile/08133548888869660878noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-37438374769093220842015-08-07T02:55:04.682-07:002015-08-07T02:55:04.682-07:00it gives an error for my :p
I tried it on arduino ...it gives an error for my :p<br />I tried it on arduino mega adk...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-72720430064442466852014-06-25T14:43:27.316-07:002014-06-25T14:43:27.316-07:00Hello.
I'm trying to make it working with my ...Hello.<br /><br />I'm trying to make it working with my Arduino nano v3, but it doesn't work... <br />Actually, it works with my Arduino Uno, but not with the Nano.<br /><br />Could you tell me what to do ? Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-81556546968994992242014-04-29T21:55:13.750-07:002014-04-29T21:55:13.750-07:00Hello Ken,
Really wonderful work.
I am from Indi...Hello Ken,<br /><br />Really wonderful work.<br /><br />I am from India, and trying to make this circuit.<br /><br />So do I need to put India codes for this, as I can see north america and European codes or is this an universal circuit?<br /><br />Also, I am not able to compile the code, receiving errors<br /><br />TVB\WORLDcodes.cpp.o:(.progmem.data+0x0): multiple definition of `NApowerCodes'<br />WORLDcodes.cpp.o:(.progmem.data+0x0): first defined here<br />TVB\WORLDcodes.cpp.o:(.progmem.data+0x112): multiple definition of `EUpowerCodes'<br />WORLDcodes.cpp.o:(.progmem.data+0x112): first defined here<br />TVB\WORLDcodes.cpp.o:(.data.num_NAcodes+0x0): multiple definition of `num_NAcodes'<br />WORLDcodes.cpp.o:(.data.num_NAcodes+0x0): first defined here<br />TVB\WORLDcodes.cpp.o:(.data.num_EUcodes+0x0): multiple definition of `num_EUcodes'<br />WORLDcodes.cpp.o:(.data.num_EUcodes+0x0): first defined here<br /><br />I have not put the code in the libraries folder, but inside the sketchbook folder, still getting the error.<br /><br />What could be the reason for this?<br /><br />Thankspeterparker - Servant of BHAGWAN PARASHURAMAhttps://www.blogger.com/profile/05564653768978489866noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-30948324468391738292014-01-10T14:57:31.996-08:002014-01-10T14:57:31.996-08:00I would like to run this on 3.3v 8MHz arduino. See...I would like to run this on 3.3v 8MHz arduino. Seems timing will be an issue. What you would recommend?Nevhttps://www.blogger.com/profile/04670495066639130214noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-29590594560702029312012-12-14T11:14:13.041-08:002012-12-14T11:14:13.041-08:00I have the same error described here:
http://ard...I have the same error described here: <br /><br />http://arduino.cc/forum/index.php?topic=51923.0;wap2<br /><br />(same as quoted by James above)<br /><br />I am using BoArdino that I made in Mitch's "Arduino for newbies" workshop.<br />I put the sketch in the library folder thus:<br />\Arduino\arduino-1.0.2\libraries\TVB<br /><br />thanks for advice,<br />Hilary<br />tech@a2zed.us<br />Hilaryhttp://www.a2zed.usnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-86438926709794565122012-03-30T12:21:18.641-07:002012-03-30T12:21:18.641-07:00Hey. Which compiler do you use??? How could you in...Hey. Which compiler do you use??? How could you include main.h and so on??? If i load TVB.pde a have millions of mistakes. Could you help me please.Johnny Khttps://www.blogger.com/profile/00447248920288300472noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-11675547626647047932012-02-18T05:56:27.259-08:002012-02-18T05:56:27.259-08:00This comment has been removed by the author.Veerendraputtuhttps://www.blogger.com/profile/12443647036951895993noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-40595615459167261112011-04-25T04:03:12.174-07:002011-04-25T04:03:12.174-07:00Works very well for me, thank you!Works very well for me, thank you!Claudio Mikloshttps://www.blogger.com/profile/13088188628257350345noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-56441947415896918702010-11-03T23:33:59.763-07:002010-11-03T23:33:59.763-07:00Mitch Altman and I have made some improvements to ...Mitch Altman and I have made some improvements to the code; among other things, the European codes now work. See <a href="http://www.arcfn.com/2010/11/improved-arduino-tv-b-gone.html" rel="nofollow">Improved Arduino TV-B-Gone</a> for details.Ken Shirriffhttps://www.blogger.com/profile/08097301407311055124noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-76835395891597840822010-10-17T09:06:12.772-07:002010-10-17T09:06:12.772-07:00Mitch Altman fixed your code here:
http://github....Mitch Altman fixed your code here:<br /><br />http://github.com/zoobab/tvbgone-arduino/<br /><br />The EU codes were not working properly.zoobabhttps://www.blogger.com/profile/16896135106354266238noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-34194311304597378352010-10-14T12:19:37.515-07:002010-10-14T12:19:37.515-07:00yeah the little ir sensor is flashing away
very s...yeah the little ir sensor is flashing away<br /><br />very strange, i will try it on a few more tvs trying us/eu codesUnknownhttps://www.blogger.com/profile/12516290177225326583noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-67801660548415373782010-10-13T01:41:07.020-07:002010-10-13T01:41:07.020-07:00Hi !
Is it working well on ATmega 168 ?
(as I sai...Hi !<br /><br />Is it working well on ATmega 168 ?<br />(as I said earlier the 168's are cheaper to build a barebone arduino)<br /><br />Thanksphaenoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-64580446714338241142010-10-05T10:48:40.224-07:002010-10-05T10:48:40.224-07:00Hi !
I've just tried your TV-B-Gone with a due...Hi !<br />I've just tried your TV-B-Gone with a duemilanove (so atmega 328P) and worked very well with my french TV (so EU codes worked fine for me). Thanks a lot !<br />I'm currently working on a transportable version so i can test it in a TV shop tomorrow ;)<br />Since i'm planning to organize a workshop to build your arduino tvBgone, i'd like to know if it works with Atmega168. Because they're cheaper than the 328P and would reduce the workshop participation fee.<br />Thanks again,<br />phaephaenoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-21249024736210985452010-10-03T16:45:14.297-07:002010-10-03T16:45:14.297-07:00@russdx: I haven't tried the Arduino 328 mini,...@russdx: I haven't tried the Arduino 328 mini, so I don't know if that's causing the problems. My first thought was the frequency might be different, but the 328 mini and the Duemilanove both run at 16 MHz. My second thought is the pin connections might be different with the mini, so make sure you're actually getting an output from the IR LED. (You can use a cellphone camera to see the IR.) My third thought is that the EU code might not be working (since I didn't test it at all, not having European televisions lying around). Have any of my European readers managed to get the EU codes working? <br /><br />It's also possible the codes just don't work with your TVs, but that seems unlikely since the TV-B-Gone has so many codes. You could try the US codes and see if that works any better.Ken Shirriffhttps://www.blogger.com/profile/08097301407311055124noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-89789404732341107612010-10-03T04:20:13.213-07:002010-10-03T04:20:13.213-07:00two of them where me hehe, it runs fine but does n...two of them where me hehe, it runs fine but does not turn any tvs off, should i try it on a few more tvs?<br /><br />im running the 328 arduino miniUnknownhttps://www.blogger.com/profile/12516290177225326583noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-35908776494090376892010-09-28T15:40:39.322-07:002010-09-28T15:40:39.322-07:00I haven't tested the EU codes. Since I don...I haven't tested the EU codes. Since I don't have a European TV, it's hard for me to figure out what the problem is. (By the way, is it the same Anonymous or 3 different Anonymouses who are trying to get EU codes working?)Ken Shirriffhttps://www.blogger.com/profile/08097301407311055124noreply@blogger.com