We’ve all been guilty of buying things we want, but don’t need. And that’s how [PodeCoet] found himself in possession of a couple of double-arc electric lighters, thanks to those far-eastern websites purveying cheap goods. ‘Tis the season of giving after all, justified [PodeCoet]. Being a hacker, the obvious thing to do was to make them belt out tinny tunes. If you’re still holding on to your gas lighters, don’t — because these electric ones are ‘oh so hackable’. Dual-arcs are the same, but twice the fun.
[PodeCoet] starts off with a tear down of the lighter, to figure out the schematic and understand how it works. There’s a charger IC for the LiPo, an unidentifiable micro-controller, a pair of FET’s driving a pair of power transistors, which in turn drive the HF output transformer at around 15.6kHz. He guesses that the “original micro-controller is probably an OTP part like a 12C508” but in the absence of a chipID he couldn’t be sure.
Instead of trying to break his head over it, he just swapped in a pin-compatible PIC12F1840. All that’s left to do is to write some quick-n-dirty code and sprinkle it with funny comments in order to modulate the output signal at audio frequencies. His first choice of tune was “We are Number One” by Lazy Town, the Icelandic educational musical comedy children’s television series (phew). But redditors are awesome, and someone asked him to add the “Imperial March” and [PodeCoet] obliged.
Since he was going to gift these lighters, the sneaky hacker added a prank in the code. Every time the button is pressed for more than two seconds, it works as normally expected and a counter is incremented. On the 20th count, and for one time only, the tune is played. No amount of pressing the button will play the tune again, confounding the user to wonder if he was hallucinating. This also helps ensure the lighter does not self-destruct prematurely, since the output transformer is likely designed for low duty cycles. His blog post contains all of the information needed to do this hack along with handy tips to avoid the problems he faced. A “Happy Birthday” tune would be great when lighting some birthday candles, we think.
[PodeCoet] has a fancy for high voltage stuff – check out “Home built Stun Baton turns you into a cop from Demolition Man“. This man surely loves his pranks, as evidenced by “Hacking your Co-Workers Label Makers“. And the farce is strong in this one — “Student trolls anti-Arduino Prof with parasite MCU“.
Thanks to [ryg] for tipping us about the reddit thread.