The TV-B-Gone flashlight build

283 posts / 0 new
Last post

Pages

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax
The TV-B-Gone flashlight build

——- Update #2 ——-

Group buy done, out of parts/PCBs. Getting ready to post the code/design files shortly.

——- UPDATE ———

I’m doing a group buy of parts – I’m selling LED/driver pairs, P60s and prebuilt lights. Information is in this post:

http://budgetlightforum.com/node/16652?page=3#comment-491465

——— Original post ——-

First post!

I’ve been kicking around the idea of building a “TV-B-Gone” (http://www.tvbgone.com) in a flashlight form factor. Basically, it’s a little handheld device that blasts out 100+ power-off codes for TV sets, that you can use to turn off pretty much any television set. There’s endless fun to be had with these:
http://www.youtube.com/watch?v=ICpM3ItIhI0

There’s an open source/creative commons version available from Adafruit:
http://www.ladyada.net/make/tvbgone/

And I’ve created a reasonably high power (~2W peak) handheld version, using 8 infrared LEDs:
http://forums.adafruit.com/viewtopic.php?f=23&t=35068

My handheld version works OK but is a bit expensive to make, and I’m not too happy with the optics – I’m constrained by the LEDs themselves, and their beam pattern is pretty horrible. It has a lot of spread and doesn’t have as much range as I hoped it would because of it.

After doing some research into LED flashlights, what’s crappy and what’s not, and learning about “P60” form factor and drivers etc… I’ve realized that it probably won’t be too difficult to make a flashlight based TV-B-Gone with more power, a good beam pattern and probably even less cost.

Here’s what I’ve got in mind:

- Starting with a cheap 1*18650 flashlight body (eg, Ultrafire WF-501B) that takes a P60 module.
- Building a P60 module, with the following:
— a high power infrared LED/heatsink/reflector
— a modifed ATTiny13 + AMC7135 based driver.

On the driver, I’d pull the Tiny13 and replace it with a pin-compatible ATTiny85, graft on a crystal, move I/O pins around if required, and cross my fingers that the AMC7135 ICs can be enabled/disabled quickly enough to send a 38KHz IR carrier. If that doesn’t work, I’ll build a new driver from scratch.

On the LED… well, I don’t really know. I’ve got a few options:

(1) Buy something like this:
http://dx.com/p/high-powered-3w-infrared-ir-drop-in-module-for-wf-502b-s...
… take it apart, hope that it doesn’t have the infrared dice wired in series (thus the 8.4V requirement), pop my modified driver in and call it a day.
(2) Buy a raw LED:
http://dx.com/p/5w-940nm-infrared-ir-led-emitter-silver-152456
… which is definitely drivable from a single 18650, mount it to a heatsink, eg:
http://dx.com/p/20-7mm-aluminum-heatsink-for-ssc-p7-led-emitters-3-pack-...
… and cram it and my driver into some sort of P60 tube/reflector combo.

Unfortunately, I’ve hit the “I’m a noob at this” wall and don’t really know where to go forward from here – how to properly match LEDs/heatsinks/reflectors, what diameter heatsinks I should be looking for, etc. Anyone mind helping a noob out?

In return for any help I pledge that the end result – AVR software, a custom driver design if required, etc – will be fully open source and anyone will be able to build the end result.

Thanks!

Edited by: gmarsh on 02/04/2014 - 14:15
scaru
scaru's picture
Offline
Last seen: 5 years 1 month ago
Joined: 03/22/2012 - 13:36
Posts: 6946
Location: Virginia

Welcome to BLF! If you want to do it in a P60 host you would simply start with one of these. 

https://illuminationsupply.com/p60-dropin-empty-choice-of-op-or-smo-p-40...

This is basically the limit of my experience though, if you would like to get a premade IR drop in, Lighthound does sell them so the you would only need to replace the LED. 

http://www.lighthound.com/Solar-Force-IR-Drop-In-for-L2-Flashlight-ETC_p...

Shadowww
Offline
Last seen: 9 hours 15 min ago
Joined: 01/20/2012 - 19:09
Posts: 1343
Location: Northern Europe

scaru wrote:

This is basically the limit of my experience though, if you would like to get a premade IR drop in, Lighthound does sell them so the you would only need to replace the LED

http://www.lighthound.com/Solar-Force-IR-Drop-In-for-L2-Flashlight-ETC_p_3978.html

You mean the driver. Silly
gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

scaru wrote:

Welcome to BLF! If you want to do it in a P60 host you would simply start with one of these. 

https://illuminationsupply.com/p60-dropin-empty-choice-of-op-or-smo-p-40...

This is basically the limit of my experience though, if you would like to get a premade IR drop in, Lighthound does sell them so the you would only need to replace the LED

http://www.lighthound.com/Solar-Force-IR-Drop-In-for-L2-Flashlight-ETC_p_3978.html


Thanks – the top item looks good, and illuminationsupply seems like a pretty decent site. (DX is a bit sketchy..)

The second item looks much the same as the one on DX, LED itself looks the same (3 dies) and the same 8.4V upper voltage is there. Again, I’m wondering if the IR dies in that package are wired in series, which would explain the 3.x V minimum voltage.

If that’s the case, I s’pose I could find a 2*AA P60 body, use two 14500s and find an AVR controller that can run from 8.4V. Or if such things don’t exist, modify an AVR controller to add a voltage regulator for the AVR itself (or perhaps just accept the fact I’m probably building my own controller..)

Shadowww
Offline
Last seen: 9 hours 15 min ago
Joined: 01/20/2012 - 19:09
Posts: 1343
Location: Northern Europe

2*AA P60 body would be hard to find, but you could use 2x CR123 in a 1*18650 body (or 2× 18650 with a extender).

scaru
scaru's picture
Offline
Last seen: 5 years 1 month ago
Joined: 03/22/2012 - 13:36
Posts: 6946
Location: Virginia

I would just go for a L2P with a CR123 extender and then run 2 18500s in it. And yes, I did mean driver. Wink

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

OK, plan is coming together. After wondering how I was going to mount the discrete IR LED, I saw this picture and thought “aha!” – I’ll just glue the IR LED straight to the holder with Arctic Alumina.

http://club.dx.com/reviews/photos/12625/87223

So my ingredients are…

LED: http://dx.com/p/5w-940nm-infrared-ir-led-emitter-silver-152456
Holder: http://dx.com/p/26-5mm-aluminum-reflector-drop-in-module-set-without-emi...
Driver: http://dx.com/p/17mm-2800ma-5-mode-regulated-led-driver-circuit-board-fo...
Case: http://dx.com/p/ultrafire-flashlight-aluminum-alloy-casing-shell-housing...

On the driver I have to replace the ATTiny13A with an ATTiny85, and add a crystal and a couple of capacitors to the card – the ‘stars’ on the back of the card are conveniently placed so I can solder those components straight on there without having to airwire anything.

The IR LED is rated for 1.2-2A – I’ll be driving it at 2800mA but at a <50% duty cycle (more like 20% sending TV codes) so I should be OK.

Fingers crossed that the 7135s can switch at 38KHz.

DrJones
DrJones's picture
Offline
Last seen: 5 years 8 months ago
Joined: 01/05/2011 - 13:30
Posts: 1044
Location: Frankfurt, Germany

Interesting project.

Yes, AMC7135s are fast enough.

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

DrJones wrote:
Interesting project.

Yes, AMC7135s are fast enough.


Now that I’ve made a $100 DX order, you’ve just made my day!

Merry Christmas and all that other good stuff.

NightCrawl
Offline
Last seen: 5 years 10 months ago
Joined: 01/22/2012 - 08:20
Posts: 3071
Location: Karlsruhe, Germany

Nice project, keep us updated!

Werner
Werner's picture
Offline
Last seen: 2 years 3 months ago
Joined: 10/19/2012 - 15:00
Posts: 3679
Location: Germany

I thought about the exact same thing a while ago, I am looking forward for more information.

But perhaps a p60 host is not perfect in terms of throw, what about a zoom to throw torch? Sk68 or so…

sacra
Offline
Last seen: 4 months 3 weeks ago
Joined: 05/11/2012 - 10:46
Posts: 101
Location: USA

Okay. I’ll bite. What’s your intended use-case for this? IIRC, the original TBG-type devices were pranks that would toggle a nearby TV or bank of TVs (say, at a sports bar or a electronics store). With a high-powered IR LED and proper optics, you’re extending the range to perhaps 1000 feet. What’s the goal? To drive down random streets on Superbowl Sunday turning off people’s TVs from afar? Or perhaps driving down those streets during the day turning TVs on while the owners are at work? Or perhaps your neighbor has a rear projection TV or projector with a $150-$300 metal halide bulb that you wish to damage by toggling power on-and-off all day while the owner is work?

Seems there are lots of malicious (and, in that last example, arguably criminal) uses for such a device. I’m having difficulty envisioning a non-malicious use. Please enlighten me…

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

The goal is to use this for the exact same purpose as the original TV-B-Gone – mindless pranks. I don’t really have any specific justification for building the thing in a flashlight form factor, but here’s basically what I had in mind:

- increasing IR intensity (focus and power) increases my chances of getting a usable IR signal through an outdoor window – efficient household windows reflect most of the IR hitting them in order to prevent heat loss. This allows pranking from outdoors.
- Lots of IR power also means I should be able to fill a room with IR light – ideally I’d be able to set the thing on a table at a sports bar, pointed pretty much anywhere in the room, and get enough bounce/scatter for it to work on any TV in the room. Currently I have to hold and point my handheld gadget at the TV I want to turn off, which increases my chances of getting caught.
- If I do get caught, “dude, it’s a flashlight. I carry one with me all the time.”
- Now that I’ve ordered parts, I can say this thing will cost 1/2 the price that the handheld gadget did and take a lot less time to put together.

Sure, it can probably be used for all sorts of terrible purposes, like burning out a HID projector lamp as you mentioned. But I won’t be doing that – I’ll be using this for mindless pranks mostly, and maybe getting even with an electronics or department store if they piss me off.

sacra wrote:
Okay. I’ll bite. What’s your intended use-case for this? IIRC, the original TBG-type devices were pranks that would toggle a nearby TV or bank of TVs (say, at a sports bar or a electronics store). With a high-powered IR LED and proper optics, you’re extending the range to perhaps 1000 feet. What’s the goal? To drive down random streets on Superbowl Sunday turning off people’s TVs from afar? Or perhaps driving down those streets during the day turning TVs on while the owners are at work? Or perhaps your neighbor has a rear projection TV or projector with a $150-$300 metal halide bulb that you wish to damage by toggling power on-and-off all day while the owner is work?

Seems there are lots of malicious (and, in that last example, arguably criminal) uses for such a device. I’m having difficulty envisioning a non-malicious use. Please enlighten me…

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

Werner wrote:
I thought about the exact same thing a while ago, I am looking forward for more information.

But perhaps a p60 host is not perfect in terms of throw, what about a zoom to throw torch? Sk68 or so…


Wish I thought of that. A twist-to-zoom form factor with a few indexing marks made into it would be pretty nice. Maybe next time… I’ll see how the P60 works out for now.

Everything I come up with will be posted here, if others want to take it and mess with it – try different form factors etc, excellent – I’m all for others taking my crappy stuff and making it better Big Smile I have no idea how long DealExtreme’s free shipping takes to Canada, but updates to follow then.

On a completely unrelated topic, I’ve also ordered bits to build a XM-L flashlight in one of the same WF-501B bodies. I’ve decided to mod the driver (same AVR driver) with a 3-axis accelerometer, and have it work in such a way that you simply rotate the light when you’re holding it to adjust brightness – no modesetting or anything, and it remembers the last brightness it was at. Don’t know if this has been done already, but it should be a good bit of fun to implement.

NightCrawl
Offline
Last seen: 5 years 10 months ago
Joined: 01/22/2012 - 08:20
Posts: 3071
Location: Karlsruhe, Germany

gmarsh wrote:
I've decided to mod the driver (same AVR driver) with a 3-axis accelerometer, and have it work in such a way that you simply rotate the light when you're holding it to adjust brightness - no modesetting or anything, and it remembers the last brightness it was at. Don't know if this has been done already, but it should be a good bit of fun to implement.

That sounds awesome!

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

Parts are starting to come in.

DX was frustrating to order from – I paid for a bunch of stuff that appeared to be in stock, and surprise surprise, most of it wasn’t in stock. Ended up cancelling most of the order and placing a new one, just to have it happen all over again. I’ve got reflectors, LEDs, drivers and batteries so far. Still waiting on a flashlight body.

The P60 reflector housings are pretty crappy. There’s a ton of play when they’re threaded together, and there’s less space between the reflector and the pill’s LED mounting surface than I hoped, probably 1/2mm of space between the two when they’re fully screwed together. And you can’t unscrew them much because there’s not much thread to begin with. I originally planned on using a PCB for the LED, but I’ll probably have to solder the LED straight to the pill and use a ring of kapton tape to insulate the wires from the pill, and maybe bore out the LED hole in the reflector.

Wish I had access to a lathe, I’d make a new copper pill for the reflector with more depth and better LED heatsinking.

Things are looking good on the driver – the 2800mA driver appears to be an authentic Nanjg 105C. I’m replacing the narrow-SOIC ATTiny13A with a wide-SOIC ATTiny85V, which means bending the leads on the new part into “J-leads” but it fits. Also, a 4×2mm ceramic resonator solders perfectly to the mode stars on the back. Code’s 100% done for it.

I’ve yanked the IR filter out of an old point-n-shoot digital camera, which looks like it’ll do the job for setting up the beam.

Updates to follow as everything else comes in.

Old-Lumens
Old-Lumens's picture
Offline
Last seen: 5 years 1 month ago
Joined: 11/04/2011 - 11:39
Posts: 7478
Location: Tyler, TX, USA

So, this is really just to piss off other people who you don't know and don't care about, just to entertain yourself, because you're bored? Is that about the gist of it?

Sounds like fun. Hope someone you do it to, is able to catch you at it.

 

 

My PayPal address: oldlumens (insert the @ sign here) gmail.com

My YouTube Flashlight Video Channel

The BLF Modding Links Thread 

http://imageshack.com/a/img922/1374/jQ2wdL.jpg

 

Halo...
Halo...'s picture
Offline
Last seen: 5 years 5 months ago
Joined: 12/15/2011 - 02:39
Posts: 3304
Location: Halo island

gmarsh wrote:
Things are looking good on the driver – the 2800mA driver appears to be an authentic Nanjg 105C. I’m replacing the narrow-SOIC ATTiny13A with a wide-SOIC ATTiny85V, which means bending the leads on the new part into “J-leads” but it fits. Also, a 4×2mm ceramic resonator solders perfectly to the mode stars on the back. Code’s 100% done for it.

Love to see pictures. Turning a attiny85 into j leads is a good idea. :bigsmile:

Since everything is free shipping on dx it helps to buy each item in a separate order, annoying for a bunch of items but that way one delayed item doesn’t hold up others.

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

I actually did the J-lead thing in my day job - there was a shortage of SPI flash a few years back, and we found ourselves unable to buy a 16Mbit flash in a narrow SOIC. We ended up J-leading wide SOICs and hand-soldering them on a couple hundred boards.

Old-Lumens wrote:
So, this is really just to piss off other people who you don't know and don't care about, just to entertain yourself, because you're bored? Is that about the gist of it?

Sounds like fun. Hope someone you do it to, is able to catch you at it.

Well, the original idea was conceived when a bunch of us were at a local "sports themed" restaurant. The table next to us had a few hooligans who were watching soccer on TV and cheering whenever anything would happen, being obnoxiously loud, being inappropriate with the waitress and generally being inconsiderate jackasses. I thought "man, I wish I had a remote for that TV - I'd turn it off right before something interesting happens." So I did some digging, and found the TV-B-Gone project had been done - and was open source!

I haven't found myself in the same situation since I built my pocket one. But I will admit using it a few times - mostly turning off 'decorative' TVs in storefronts, and a few TVs scattered through department stores with product ads on loop.

edit: But yes, I'll confess that this build is the result of boredom Smile

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

Starting to come together – only part I’m missing right now is teflon wire.

I did order PCBs to mount the IR LED on, but these IR LEDs are quite tall and with the LED sitting on top of the PCB, the P60 reflector wouldn’t screw together. So I decided to solder the LED directly to the pill – I tinned the LED and pill, got the pill hot (the solder blob sticking off from the LED is where I had my iron placed to heat the pill) and placed the LED with tweezers. Result:

The Kapton tape is there for insulation for the wires, I’ll cut a few more pieces and cram them in there. I’ll probably pot everything when I’m done to make sure nothing moves.

Installed the Tiny85V microcontroller in place of the Tiny13A. There was plenty of pad available so I bent the leads straight down instead of J-leading, this makes attaching programming clips easier.

And the ceramic resonator’s added to the bottom, to make the AVR frequency more accurate. This is a 4MHz, 4.5mm resonator with built-in capacitors, the center lead (piece of a resistor lead) going to the ground ring is for those capacitors, and the outer leads attach pretty much perfectly to the stars.

Star #2 will be used for NA/EU mode selection. Leaving this star alone makes the flashlight transmit North American TV turn-off codes, connecting it to the ground ring or the first star makes the flashlight transmit EU codes.

I’m currently proofing the software on my AVR Dragon, once I’m happy with it there I’ll slap the light together and cross my fingers.

Werner
Werner's picture
Offline
Last seen: 2 years 3 months ago
Joined: 10/19/2012 - 15:00
Posts: 3679
Location: Germany

Nice work.

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

Update:

Software’s 100% done/tested on my AVR Dragon. Using an ordinary through-hole IR LED, it’s happily turning off my living room TV.

So I put the flashlight together, and it turns out the LED’s cathode is connected to the heatsink pad on the bottom… probably should have made sure first that it was isolated. End result was a direct driven LED with a 1.3V forward voltage. LED’s blown.

I have PCBs I can mount the LED on, but the LED+PCB combo is too thick for the pill/reflector to thread together. I’m starting to think that P60 wasn’t the ideal form factor for this project.

Werner
Werner's picture
Offline
Last seen: 2 years 3 months ago
Joined: 10/19/2012 - 15:00
Posts: 3679
Location: Germany

Use just one layer kapton as insulating.
Or use thermal compound glue this insulate too.
I have often seen that some guys glue the LED with a small amount of thermal glue on a piece of hampackage or with similiar clean smooth surface. After that it is totally covered with non insulating material…

I had a p60 p7 dropin and there was the Pill than kapton than big drop of thermal grease…

Have you spare LEDs or do you have to wait 5 weeks for another package?

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

I’ve got two spare LEDs. Bought the parts to build 3 of these things, knowing full well I’d mess one up somehow Smile

I’ll probably do the kapton thing. The LED doesn’t dissipate that much power – it’s getting driven by 2.8A at about 1.3V, and the duty cycle’s only about 20% outputting codes. So less than a watt of dissipation.

Once I get this design tested/perfected, I might try and find a LED star capable of holding an Osram SFH4725S. More expensive but the IR output power is about the same, and it’s in a better package for flashlights than the 5 chinawatt DX special.

ezarc
Offline
Last seen: 2 months 1 week ago
Joined: 10/17/2011 - 18:23
Posts: 2109
Location: South Aus

I wonder if the arrival/departure screens at air ports work on remotes.

That could cause a lot of problems.

Slim Pickens
Slim Pickens's picture
Offline
Last seen: 1 day 17 hours ago
Joined: 04/28/2012 - 19:50
Posts: 1231
Location: Lehigh Valley

ezarc wrote:
I wonder if the arrival/departure screens at air ports work on remotes.

That could cause a lot of problems.


Alright Tyler Durden…don’t give TSA any reason to target us Silly
gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

ezarc wrote:
I wonder if the arrival/departure screens at air ports work on remotes.

That could cause a lot of problems.


Not the intended use of this thing, and hopefully they’ve thought of that.

Most recent TV I turned off was in a department store, playing an “eggies” ad.

ChimpOnABike
ChimpOnABike's picture
Offline
Last seen: 8 years 3 months ago
Joined: 12/11/2012 - 14:05
Posts: 237
Location: Manchester UK

GMarsh – Don’t spend your spare time hanging with the Giz Giz crew do you? Wink

Don’t be a chump, be a chimp!

gmarsh
Offline
Last seen: 11 months 2 days ago
Joined: 12/24/2012 - 07:51
Posts: 165
Location: Halifax

Action shot! The video looks purple because I’m using a camera with the IR filter yanked.

I decided to omit the kapton tape and just glue the IR emitter directly to the pill with Arctic Alumina. I used a thick layer and managed to keep the base isolated. I’m cleaning up the AVR code now to share it.

scaru
scaru's picture
Offline
Last seen: 5 years 1 month ago
Joined: 03/22/2012 - 13:36
Posts: 6946
Location: Virginia

Nice work, so is there any visible light at all when it is on? It seems like I would accidentally leave it on all the time...

ChimpOnABike
ChimpOnABike's picture
Offline
Last seen: 8 years 3 months ago
Joined: 12/11/2012 - 14:05
Posts: 237
Location: Manchester UK

Adding a constant mode for saturating IR motion detectors could also be fun…

Don’t be a chump, be a chimp!

Pages