Cute USART Trick Brings PWM to IR LEDs

We love little tricks like this. Suppose that you want to generate an IR remote’s signal. It’s easy, because most of the codes are known. But it can be slightly harder because most IR remotes and receivers modulate the on pulses with a square wave at roughly 38 kHz for background lighting immunity.

With a competent PWM generator on a microcontroller, you can create this carrier modulation easily enough yourself. Set the PWM frequency to 38 kHz and the duty cycle somewhere in the 33%-50% range, and you’re set. But what if you don’t have a competent PWM generator? Such was the case that prompted [AnalysIR Blog] to fake it, with USART.

Here’s the trick. You set up the serial port to communicate at ten times the desired carrier frequency, and then transmit “special” data. (The number ten comes from eight bits of data plus a start and a stop bit.) If you want a 50% duty cycle, you simply send 0b11110000, as fast as the microcontroller will allow, for a mark and nothing for a space.

There’s some extra detail with inverting the signal if, as most do, your USART idles high. But that’s really it. It’s a cute trick for when you’re desperate enough to need it. And if you’d like to brush up some more on your asynchronous serial skills, check out our guide on troubleshooting USART, and the great comments that ensued.

Life-Size Vu Meter Gets the Party Started

There’s nothing better than making a giant version of one of your hacks. That is, other than making it giant and interactive. That’s just what [Est] has done with his interactive VU meter that lights up the party.

The giant VU meter boasts a series of IR detectors that change the colors and modes of the meter based on where the user places their hands. The sensors measure how much light is reflected back to them, which essentially function as a cheap range finder. The normal operation of the meter and the new interactivity is controlled by a PIC16F883 and all of the parts were built using a home-made CNC router. There are two addressable RGB LEDs for each level and in the base there are four 3 W RGB LEDS. At 25 levels, this is an impressive amount of light.

[Est]’s smaller version of the VU meter has been featured here before, if you’re looking to enhance your music-listening or party-going experiences with something a little less intimidating. We’ve also seen VU meters built directly into the speakers and also into prom dresses.

AV Remote Control Teams Arduino with – Visual Basic?

A large installed base of powered speakers from a defunct manufacturer and a dwindling supply of working remote controls. Sounds like nightmare fuel for an AV professional – unless you take matters into your own hands and replace the IR remotes with an Arduino and custom software.

From the sound of it, [Steve]’s crew was working on AV gear for a corporate conference room – powered speakers and an LCD projector. It was the speakers that were giving them trouble, or rather the easily broken or lost remotes. Before the last one gave up the ghost, [Steve] captured the IR codes for each button using an Arduino and the IRRemote library. With codes in hand, it was pretty straightforward to get the Nano to send them with an IR LED. But what makes this project unique is that the custom GUI that controls the Arduino was written in the language that everyone loves to hate, Visual Basic. It’s a dirty little secret that lots of corporate shops still depend on VB, and it’s good to see a little love for the much-maligned language for a change. Plus it got the job done.

Want to dive deeper into IR? Maybe this primer on cloning IR remotes with an Arduino will help. And for another project where VB shines, check out this voice controlled RGB LED lamp.

Hackaday Reviews: Flir One Android

The Flir One thermal camera caused quite a stir when it was launched back in 2014. Both the Flir One and its prime competitor Seek Thermal represented the first “cheap” thermal cameras available to the public. At the heart of the Flir One was the Lepton module, which could be purchased directly from Flir Systems, but only in quantity. [Mike Harrison] jumped on board early, cutting into his Flir One and reverse engineering the Lepton module within, including the SPI data required to talk to it. He even managed to create the world’s smallest thermal imager using a the TFT screen from an Ipod Nano.

flircamA few things have changed since then. You can buy Lepton modules in single quantity at DigiKey now. Flir also introduced a second generation of the Flir One. This device contains an updated version of the Lepton. The new version has a resolution of 160 x 120 pixels, doubled from the original module. There are two flavors: The iOS version with a lightning port, and an Android version with a micro USB connector. I’m an Android user myself, so this review focuses on the Android edition.

The module itself is smaller than I expected. It comes with a snap-on case and a lanyard. While you’ll look a bit like a dork wearing the lanyard, it does come in handy to keep the imager from getting lost or dropped. The Flir One has an internal battery, which of course needs to be topped off before it can be used. Mine charged up in about half an hour.

Continue reading “Hackaday Reviews: Flir One Android”

Building Custom Integrated Circuits

The first integrated circuits weren’t tiny flecks of silicon mounted to metal carriers and embedded in epoxy or ceramic. The first integrated circuits, albeit a looser definition of such, were just a few transistors, resistors, and diodes mashed together in the same package. With this in mind, [Rupert] created his own custom IC. It’s an IR receiver transmitter constructed out of a transistor, resistor, and an LED.

The attentive reader should be asking, “wait, can’t you just buy an IR receiver transmitter?” Yes, yes you can. But that’s not a hack™, and would otherwise be very uninteresting.

[Rupert]’s IC is just three parts, a 2n2222 transistor, a 220Ω resistor and an IR LED. With a good bit of deadbug soldering, these three parts were melded into something that resembled, and had the same pinout of, a Vishay TSOP4838 IR receiver. The epoxy used to encapsulate this integrated circuit is a standard 2-part epoxy and laser printer toner. Once everything is mixed up into a gooey slurry, it’s dripped over the IC producing a blob of an integrated circuit. It’s functionally identical to the standard commercial version, and looks good enough for a really cool project [Rupert]’s been working on.

Thanks [foehammer] for the tip.

Control Your HTPC With Scavenged IR Parts

If you’ve built yourself a home theater PC, one of your highest priorities is probably coming up with a convenient control solution. The easiest way to do this is to simply use something like a wireless keyboard and mouse. But, that’s not very conducive to an enjoyable home theater experience, and it feels pretty clunky. However, if you’ve got the right components lying around, [Sebastian Goscik] has instructions and an Arduino sketch that will let you control your HTPC with any IR remote control.

There are a number of ways you could control your HTPC, and we’ve featured more than one build specifically for controlling XBMC over the years. Unfortunately, most of those methods require that you spend your hard earned money (which is better spent on popcorn). [Sebastian’s] setup can be replicated with things you probably have on hand: an Arduino, an IR remote, and a scavenged IR receiver. The IR receiver can be found in many devices, like old stereos or TVs that themselves were controlled via an IR remote.

It starts with an Arduino Sketch that lets you can see on the serial monitor what code is being generated by the button presses on your remote. These are then scripted to perform any task or function you like when those buttons are pushed. The most obvious use here is simple directional control for selecting your movies, but much more complex tasks are possible. Maybe someone can program a T9 script to type using the number buttons on most remotes?

Neato Botvac LiDAR Repair Includes Juicy Pics and a Tool Hack

It seems second nature to us and it’s one of the ways we hackers are different from the larger population… sometimes we absolutely insist on buying something that is already broken. Which is where we join [Anton] as he reverse engineers, debugs, and repairs a broken Neato Botvac’s LiDAR system all in the name of having clean floors at a fraction of the cost.

Now keep your head on a swivel ’cause along the way [Anton] has the all-too familiar point in his repair where he puts the original project on hold while he makes a specialized tool he needs to finish the job. It’s hard to tell which is more impressive: turning a laptop webcam into a camera capable of clearly viewing bond wires and (wait for it!) where they are attached on the Silicon, or that he (yeah, we were making a comparison…member?) went straight back to solving the original problem. [Anton] did split this project into two separate blog posts, the first one is linked above and it’s not until the second post that he fixes the original problem. Perhaps there was a bit of scope creep, which was the reason for the separate blog entries? At any rate, [Anton] does a great job documenting the process along with what he calls some ‘juicy pictures’ and you can see a few of them after the break.

It’s been a while since we’ve seen a Neato hack (there’s pun in there somewhere, commenters below us will surely wipe the floor with it). LiDar on the other hand has been covered more recently in a Police LiDAR Tear Down and another post relating more directly to [Anton’s] repair.

Continue reading “Neato Botvac LiDAR Repair Includes Juicy Pics and a Tool Hack”