Skip to main content

Infrared black magic

Lately I have been fascinated by devices that use infrared. Quite old technology but fun anyways. IR remote controls are quite popular because that’s the cheapest way to remotely control a device. Negative sides? – Line-of-sight range.

So I stumbled across this thing called TV-B-Gone. It turns off/on every TV known to man. Quite cheap and popular thing. So I was interested to make my own little device using Arduino. Using sample sketches with libraries – easy.

Two TVs / Samsung and Philips

[youtube http://www.youtube.com/watch?v=JIaN5j3LZXQ]

Next idea was to capture IR codes and then replay them. Transmission part stays the same but now we need input. I used commonly available IR photo-detector module. It has everything in one package. Again using a library – nothing fancy.

[youtube http://www.youtube.com/watch?v=BBtoPneoi_4]

So my friend has a Samsung phone that has an IR blaster built in. That thing works great, a lot of apps and easy to use, works great. I don’t have that luck with me so I decided to build my own implementation.  So I thought using headphone jack. The sample rate should be at least 48 kHz. IR uses 38 kHz as clock so it SHOULD WORK in theory. Rather that reinventing the wheel I started searching for similar projects. Found a thing called “IRdroid”. Using one channel is out because it is 22 kHz. With some dual channel trickery it is possible to generate 38 kHz.

IR_transmitter_schematic

Usually they use two IR LEDs connected directly to a phone, that seemed too brutal to me. Found a schematic that seemed a bit safer + signal is amplified using transistors. I had my own idea first to use two LEDs and two transistors but this schematic was a more elegant solution.

ir_boost

 

 

BREADBOARD TIME!

 



 

 

With phone i found it to be quite fiddly, it depends also on the TV, how tolerant it is. Using a laptop it worked better.

Comments

  1. Hello
    I repeated your scheme
    watching through the camera of a smartphone, the led shines weakly, not as in the remote control from the TV.
    how bright your led shines, can you make a video?

    ReplyDelete
  2. Hi!
    Sorry I cannot make a video right now and I think it would not help much. The brightness of the LED can depend on multiple things. Ideally you have to read the datasheet to find out necessary voltages/current values to drive the LED. You can tweak the resistor values to match your needs. Also driving a LED with a headphone jack is a quite fiddly thing. I would not expect a lot of performance out of it. Great for learning tho….

    ReplyDelete
  3. I tried to recognize the signals through the IR receiver and program winlirc(http://www.lirc.org/receivers.html)
    but I didn't succeed
    can be still need to put two diodes?

    ReplyDelete
  4. So the receiver works? Try to troubleshoot the transmitter. Yes, you can use multiple diodes. Modify that schematic or follow another one.

    ReplyDelete

Post a Comment

Popular posts from this blog

My take on a nixie clock

As a present I decided to build a nixie tube clock. It was essential to ditch my close-enough attitude and make it look as good as possible. For me the simplest way to complete this idea was to use a microcontroller. I am not cool enough to build a clock out of discrete logic, maybe in the future.

I had couple of nixie tubes lying around, I ordered some more to have a total of six. So the clock consist of an Arduino Nano, RTC DS3231, nixie tubes - IN-14 and a power supply. From the start I knew the biggest challenge is building the enclosure. I learned that the easiest way to drive these nixie tubes is with a driver called - К155ИД1.

It’s a binary to decimal decoder and it works quite elegantly. Depending on the binary input it enables the right output.

It does all the heavy lifting. And then I used three shift registers to drive all the drivers.

In addition I bought a nixie tube power supply that supplies the 170v I need. I could have used 220v wall power but I do not trust myself enou…

My take on the PA0RDT Mini Whip antenna.

I like shortwave radio because you can receive signals from all over the world, also there are all kinds of mysterious signals to explore.

In the grand scheme - the lower the frequency, the bigger antenna you would need. Well, there are all kinds of antenna designs but I like to think like that way. For example, I have a 27 MHz dipole on my roof that is around 5.3 meters long. If I wanted to listen to lower frequencies ~ around 3 MHz, for optimal performance I would need around 50 meter antenna, so using dipole for lower frequencies is not very space efficient, especially if you do not have any room.

So I decided to build the Mini Whip antenna. It is popular, simple to build and on paper receives frequencies from 10 kHz to 30 MHz, and also it is super tiny.

There are some variations between different designs, but the basic idea is the same.

The schematic I followed.







During my tests it performed well, I was able to receive DCF77 signal for the first time. All other bands seemed to work as w…

RFID experiments

Radio-frequency identification (RFID) is a way to use electromagnetic fields to send and receive data wirelessly. The system consists of two parts: reader and a tag.  Tags can be passive or active. I think the most popular are passive tags. Meaning, there are no batteries needed, the power comes from the reader. The reader constantly sends out an interrogation signal and when a tag absorbs the energy and powers up, it radiates back information from the embedded chip.

Then it divides further - different frequencies, generations, encryptions etc.

Also one popular part is NFC (Near Field Communication) which has better security and other improvements. Latest phones usually come with NFC read/write capabilities built in.  So you can pay with your phone or touch phones together to share information. A lot of possibilities.





RFID/NFC is quite popular in our commercial world.

Anti-theft – stores use it to stop people stealing stuff.
Tracking people - putting tags inside shoes to track people, some…