quarta-feira, 10 de agosto de 2011

Active IR remote for Android



Finally I've decided to buy an Android phone... Well, after all, it's like a pocket computer, very useful and lots of fun! Then I started to install tons of apps, and came to this one:
I was excited to try it out and built the ir transmitter described on the site, very simple, and it actually works, but on my Samsung Galaxy I5500 the audio output is really too low to give a good signal to drive the ir leds. So I've decided to build an active driver using a single transistor. Ok, to make it short, it worked and here is the circuit for everyone to try it out. Hope you'll enjoy it!
R1, R2 - 56ohms 1/8W
Q1 - 2n3904
battery - 3,7V (cellphone battery)

54 comentários:

  1. Hi Walther,
    My phone is Galaxy S,
    It seems that PhotoIRmote does not work in my phone.
    Can you post the photo of your active IRmitter,
    so that I can try to build the same device.
    actually, it is very difficult for me >.< !
    never do that before.
    Regards,
    Harry

    ResponderExcluir
  2. Hi Harry, I've put a picture of my irmitter, but I guess it won't help much. If you never built electronic circuits, I suggest asking for help to some friend. Soldering components requires some skills and can cause some serious burns... ;)
    If you need more information I'll gladly help!

    Regards

    Walther

    ResponderExcluir
  3. Dear Walther,

    Thank you so much for your photo. ^^
    Can we use a GP Lithium cell 3V
    (eg.CR2016 or CR2032) instead of
    the cellphone battery?

    Regards
    Harry

    ResponderExcluir
  4. No problem, they will last far less, but it will work.

    ResponderExcluir
  5. hi
    sorry for my bad enflish

    i have a pproblem in my country dont exist 56 ohms 1/8 resistence, only 1/4
    what can i do?

    ResponderExcluir
  6. You can use 1/4W resisters, no problem, besides the size of them...

    ResponderExcluir
  7. Hola, antetodo flicitarte por este trabajo y gracias por compartirlo.
    Te pediria por favor si es posible que adjuntaras una fotografia del esquema para "NO entendedores" de esquemas electricos.
    Tengo los componentes pero no se ni por donde empezar, si fueses tan amable de hacer otro tipo de esquema mas basico, es decir;
    Aqui la union de las resistencia con los led y con el transitor, y la bateria.
    Siento mucho no poder entender estos esquemas, se me escapan a mis conocimientos.

    Gracias de antemano.
    Un saludo.
    Juan

    ResponderExcluir
  8. Good job!!! I suggest to powered it with 3 normal AAA rechargeable battery (1.2 V x 3 =3.6V)

    ResponderExcluir
  9. Thanks, Tzagi! It works with quite any power source, even less than 3.6V, this will mean a shorter range. My tests show that with a cellphone battery the range is of 7 feet (2.1m).
    This is a basic circuit, I even didn't calculated the resistor value, I just guessed it and to improve the range added another one in parallel. The pulses from the phone are extremely short, so there's no risk to damage the leds.
    I'll try to use higher voltages to see if the range improves.

    ResponderExcluir
  10. Juan, voy a publicar un diseño más detallado, tendrás que aguardar un poco.

    Saludos!

    ResponderExcluir
  11. Hi Walther, another question: are you sure that no capacitor is required for isolate the 3.7 volts of the circuit form the audio output of galaxy? Have you tried it? This would improve the smartphone protection from damage.... what do you think? thanks a lot

    ResponderExcluir
  12. OK, I'm going to assemble your schema... In the original circuit, only Left e Right channel are used from the phone output. In your schema do you use ground and both Left and Right channel together? Can you post some clear photos or a more detailed schema? Thanks in advance!

    ResponderExcluir
  13. Hi Tzagi, sorry I'm coming late to respond your comment. Yes, I think a capacitor would be a good safety measure, I guess a 1uF would do the job. The circuit worked fine, and I had to work on other things, so I still have stuff to check.
    Answering your second comment, I used only one channel, but I see no problem connecting both together. I ask you for a little more patience for the pictures, I'll post the as soon as possible.
    Thank you for the comments and suggestions!

    ResponderExcluir
  14. Hi Walther, thanks for answers. I try to use L e R channel without ground like weGroo team does: the leds are blinking but nothing appens with canon 7D.... at this point I'm waiting for your schema... thanks in advance!!!

    ResponderExcluir
  15. Sorry to sound a noob, But I am in terms of reading circuits...

    I fancy giving it a go if I could just figure out what is what and where is where...

    I see the audio jack running up to the IR Emitters, but I can't figure out what happens after that, 2 other elements? Then battery attached?

    Maybe I can't build this? Could I buy one from you pre built? Desperate to get it for this app.

    ResponderExcluir
  16. I've added another picture to show how to connect the components. Note that the leds have a flat surface at the base indicating the cathode (http://en.wikipedia.org/wiki/Light-emitting_diode) this is connected to the colector of the NPN transistor (http://en.wikipedia.org/wiki/Transistor). I still haven't included the capacitor between the audio jack and the transistor base, I suggest you do this to isolate the phone from the circuit, a .1uF non polarized capacitor (poliester) should do...

    ResponderExcluir
  17. Hi walter, I couldn't get a 2n3904 transistor, bur I got hold into a
    -BC 548B
    and -2n2222A

    Would any of those might work ?

    ResponderExcluir
  18. Hi MonkeySensei, almost any NPN transistor will work.

    ResponderExcluir
  19. hey!... can you sell me one? I'm pathetic at electronics. Just tell me your price, I'd be happy of buying it, and you'd make me a +15% happier man.

    jgraphix@gmail.com

    ResponderExcluir
  20. ... porquê duas resistencias em paralelo ?
    ... porquê dois diodos em série ?

    o esquema original do emissor passivo usa dois diodos em anti-paralelo ligados a cada um dois canais de audio, o teu jack é mono ou stereo ?

    ResponderExcluir
  21. Hola compañero.
    Yo en electronica tampoco soy mu bueno.
    Utilizas un transistor y dos leds normales??
    Esque ya tengo comprados los led emisores (como en la web del IRmote), entonces no se si podria prescindir del transistor y directamente poner las baterias....

    Muchas gracias.

    ResponderExcluir
  22. Catching up with the latest comments and questions...
    Sorry ULP and LM Wela, I think that building such a simple circuit to sell (it costs less than 4 bucks...) isn't worth the effort and I'm already short on time with other projects. You may take a look at the links to wikipedia I've posted, they give you the information about the components. My intention in sharing this circuit was to start the idea of an active IR transmitter, hoping someone would come with ideas to make it better. I suggest you to look for help with some friends that have a soldering iron. ;)
    Thank you for your interest in this, as soon as I have more time to work on this I'll put more pictures and try to explain it better.

    JpontoP,
    obrigado pelo interesse! A questão das duas resistências é para aumentar a corrente que passa pelos diodos de forma a intensificar os pulsos emitidos aumentando o alcance que passou a quase 2m. Pus os diodos em série, pois usando o transistor eu tenho corrente passando em um só sentido, no circuito original a corrente é alternada. Utilizo um jack stereo, mas apenas um canal é utilizado (tanto faz qual seja), pode-se ligar os dois canais juntos, mas nã é necessário. Eu não pensei em ligar um capacitor entre o jack e o transistor, é bom isolar o circuito do celular para proteger a saída do aparelho. Um capacitor de .1uF (microfarad) resolve, ainda não testei, estou sem tempo para isso no momento. Agradeço novamente e espero ter ajudado.

    ÞĦΨЯΘ§,

    Hola, que tal? El transistor es NPN y los leds son IR (infrared). En el circuito original, ellos son conectados directamente, la funcción del transistor es de amplificar los pulsos de áudio del cellular. Conectar las bateroas directamente podria dañar-lo
    Gracias por tu interés!

    ResponderExcluir
  23. Parece que o teu circuito embora funcione pode ser optimizado:
    - em vez de 2x56ohms pode usar-se 1x180 (220 parece-me mais popular com pouca diferença no resultado final) e para quem se preocupe com isso pode usar R de 1/4 em vez de 1/8W;
    - e na verdade os dois diodos em serie são completamente redundantes, pelo que um bastaria;
    - agora sobre o jack stereo vs mono a coisa complica-se no site do PhotoIRmote há varias observações dos criadores do software sobre a necessidade de haver dois diodos em antiparalelo para que o sinal de ambos os canais de audio funcione.
    Pergunto: o que é que consegues comandar com a tua montagem ?

    De qqr modo acho o teu 'modelo' inspirador.

    ResponderExcluir
  24. Oi JpontoP,
    os resistores eu comecei usando um só de 56ohms e depois acrescentei o outro, assim aumentei o alcance do aparelho, coloquei dois diodos em série para ter um facho mais consistente, um só funciona também, mas fica meio difícil de acertar o "alvo". Já quanto ao sinal de áudio e usar os diodos em anti-paralelo, isso não fez muita diferença para mim, consegui controlar tudo certinho.
    O objetivo desse circuito era testar o programa e funcionou, postei para que a turma da rede experimentasse e desse sugestões, ou seja, pus a pulga atrás da orelha, né? he he
    Valeu pela discussão construtiva, é assim que a coisa funciona!Questionamentos ajudam a melhorar a idéia. Se você tiver sucesso com o circuito e fizer melhorias avise que o pessoal vai gostar!

    Obrigado pelas sugestões!

    ResponderExcluir
  25. Certo Walther,
    Pelo que percebi na pagina do photoirmote, para comandar com sucesso os equipamentos (maq fotográfica) é necessário o sinal dos dois canais de audio.
    O q vou tentar fazer é uma amplificação para cada um dos diodos do modelo deles (inspirado no teu).
    Mas como sou muito casmurro e só uso material usado vou ter que encontrar dois transístores iguais em algum equipamento por aí :D Não tenho pressa

    Experimentaste com baterias mais pequenas ?

    ResponderExcluir
  26. Vou aguardar os resultados! Eu testei com uma pilha botão e funcionou bem, mas a durabilidade certamente cairá, o consumo é elevado para esse tipo de bateria. Uma dica, praticamente qualquer transistor NPN funciona, PNP também, mas eu só tinha esses disponíveis então...
    Qualquer coisa entra em contato.

    ResponderExcluir
  27. Hola Walther, compre todos los elementos que indicas y lo arme segun la grafica pero no funciona. Mi problema es que no estoy seguro de que conectar al Jack estereo, podrias indicarlo con mayor exactitud. Gracias

    ResponderExcluir
  28. Hola amigo, podrias mostrar una imagen de como conectas el Jack Stereo al circuito, no se entiende bien. Gracias

    ResponderExcluir
    Respostas
    1. Puedes conectar a uno de los dos canales o los dos, no hay problemas con esto.

      Perdon por la respuesta tardía...

      Excluir
  29. Este comentário foi removido pelo autor.

    ResponderExcluir
  30. What should I do if the audio output is to low for the transistor collector?

    I tried the 3.5mm cable in my phone and got 0V when no sound is playing and .1mV when there is sound.

    I also tried the 3.5mm cable in my laptop and got .2mV with no sound playing and anything in between 1mV and -1mV when sound is playing.

    I connected the 3.5mm cable to the transistor just like the picture above except I replaced the 2 IR LEDs with 1 red LED, and removed the resistors.

    The led does not light up when I play any sound and when I connect my multimeter it does not measure any current. So I believe that the audio output is too low for the transistor.

    Any help?

    ResponderExcluir
    Respostas
    1. Well, I tested this circuit with my Samsung Galaxy S, and it worked fine. Maybe you could try using two transistors to get more gain.

      Excluir
  31. Sorry for my sloppiness, friends, I've been really busy lately. I promise, I'll add some updates to this topic soon.

    ResponderExcluir
  32. puedes hacer un esquema con 2 transistores y montar donde conectas los cables en el jack que se conecta el movil.
    gracias

    ResponderExcluir
  33. Amazing post in this blog. Hope more people reaching your blog because you are sharing a good information. I noticed some useful tips from this post. Thanks for sharing this.......... Electronic equipment manufacturers

    ResponderExcluir
  34. amazing,

    I like your content, I have bookmarked your website. I like your useful content.
    wires and cables manufacturers in India

    ResponderExcluir
  35. I think this is one of the best site related to electronics. Thanks for your nice posting. Please keep updates regularly. best car battery India


    Thanks

    ResponderExcluir
  36. Hello Sir,

    Well Come to you. I really appreciate you for all the valuable goods that you are providing us through your blog.
    I have plan to buy a ISP In system programming from equip-test.com. Equip-test is a largest manufacturer of in-circuit and modular functional Test Fixtures, including, ICT Fixtures, Flash Fixtures, Functional Test Fixtures, Rf-Fixtures and many more electronic products at reasonable prices in Europe and have more models. Can you suggest me, which one is better for me and my friends.

    Thanks a lot!
    Pouls

    ISP In system programming

    ResponderExcluir
  37. Can you tell me what the little grey box is on the left side of the wiring illustration?

    http://4.bp.blogspot.com/-PrKs-HXQqcc/TnNMfkfkUkI/AAAAAAAAXtY/cfVJOZ8wj54/s1600/irmitter_bb.png

    I understand the other components but I don't get what this is.

    Thanks!

    ResponderExcluir
  38. It represents the stereo plug to the phone, I should make a better schematics...

    ResponderExcluir
  39. no consigo que me funcione. podrias ayudarme?? porfavor

    ResponderExcluir
  40. Hoy en día la tendencia de los teléfonos i realmente se va muy alto. Me gusta mucho el diseño del circuito en este blog. Intercambio interesante.

    Eficiencia energética

    ResponderExcluir
  41. Lcd Tv Repair
    Very Nice Post.
    Good information nowadays.
    Thanks for sharing with us.

    ResponderExcluir
  42. Hi, Nice post thanks for sharing. Would you please consider adding an intro to my website on your next post? I will return the favor. Please email me back. Thanks!

    Randy
    randydavis387 at gmail.com

    Gadgets

    ResponderExcluir
  43. i build the above circuit exactly but it didn't work, my mobile is Samsung Galaxy Note 1.0, i checked the volt that actually out from the mobile headphone socket when running the PhotoIRemote Test, it between 0.4 when my voltmeter is set on DC Volt 200m. so how to make it work!! i also test it on Galaxy S2

    ResponderExcluir
    Respostas
    1. Check if you haven't inverted the terminals of the transistor. The circuit is pretty sensible, it should work for almost every phone. Also check for your volume settings on the phone.

      Excluir
  44. Este comentário foi removido pelo autor.

    ResponderExcluir
  45. Someone please upload a video of how to do this .... He searched everywhere

    ResponderExcluir
  46. I would like to recommend your article .. you can also refer KEB Drive Repair

    ResponderExcluir
  47. The app for smartphones had been improved and there's a new site about it: http://www.wegroo.com/photoirmote/

    ResponderExcluir
  48. Walter lo he conseguido pero la distancia respecto a la tv no es de mas de 35 centímetros. Como podría ampliar esa distancia a por lo menos 3 metos

    ResponderExcluir