View previous topic :: View next topic |
Author |
Message |
andrenatal
Joined: 04 Jul 2012 Posts: 5
|
Posted: Fri Aug 17, 2012 6:53 pm Post subject: |
|
|
If I connect an audio receiver like this http://www.lirc.org/ir-audio.html and record a wav while press my remote, I can see the pulses coming. If I import this wav to irmaster, can the codes be decoded?
Barf wrote: | Quote: | Can I use it to capture from an audio receiver, and generate wav files to replicate the emitt?
|
IrMaster can import a Wave-file created from a similar tool, utilizing "frequency doubling by full wave rectification". But it does not "capture from an audio receiver". Every modern operating system can in principle do that, Windows, Linux, Mac,.... but there are some issues with this. But you probably do not mean exactly that, but just to "capture" an IR signal using some appropriate hardware. IrMaster, including the upcoming version 0.3, does not do that; you have to use IRScope for that. IRScope's native export, the ict file, can be imported by IrMaster. I hope to support at least some hardware directly in a future version.
Quote: | Barf, you software is awesome! | :D |
|
|
Back to top |
|
|
Barf Expert
Joined: 24 Oct 2008 Posts: 1415 Location: Munich, Germany |
Posted: Sat Aug 18, 2012 2:19 am Post subject: |
|
|
Short answer:No.
The TSOP1736 is a demodulator; it removes the modulation signal, assumed to be present (but have its frequency halved) in the wave files that are the subject of this thread. |
|
Back to top |
|
|
Zibri
Joined: 05 Jul 2012 Posts: 86
|
Posted: Wed May 22, 2013 10:39 pm Post subject: |
|
|
Kevin Timmerman wrote: | Here is a simple program to convert pronto hex to audio.
44.1 kHz and 16 bit options are provided for portable music players that don't like 48 kHz or/and 8 bit wav files.
Click picture to download
|
Very nice program, but please include another mode.
I see left and right channels are phase inverted.
This can work with single led audio jack.
I used a dual led so that every led is inverted.
You can read here for more infos:
http://rtfms.com/episode-4-turn-your-iphoneandroid-mac-pc-player-etc-into-a-universal-remote.htm
And the dongle is:
I think this is a very good dongle and I tested it to about 4 meters with an iPad |
|
Back to top |
|
|
Kevin Timmerman Expert
Joined: 09 Jan 2007 Posts: 142 Location: West Michigan |
Posted: Thu May 23, 2013 3:04 am Post subject: |
|
|
Zibri wrote: |
Very nice program, but please include another mode.
I see left and right channels are phase inverted.
This can work with single led audio jack.
|
Phase inversion and 2 LEDs are required for proper operation. The theory is explained here: http://www.compendiumarcana.com/iraudio
Bad info, bad code and bad dongle design there. |
|
Back to top |
|
|
Zibri
Joined: 05 Jul 2012 Posts: 86
|
Posted: Thu May 23, 2013 7:31 am Post subject: |
|
|
Kevin Timmerman wrote: | Zibri wrote: |
Very nice program, but please include another mode.
I see left and right channels are phase inverted.
This can work with single led audio jack.
|
Phase inversion and 2 LEDs are required for proper operation. The theory is explained here: http://www.compendiumarcana.com/iraudio
Bad info, bad code and bad dongle design there. |
Why so? I tested the dongle and it works perfectly and from a distance.
Could you just add a flag to produce the right wav? |
|
Back to top |
|
|
Zibri
Joined: 05 Jul 2012 Posts: 86
|
Posted: Thu May 23, 2013 8:06 am Post subject: |
|
|
[quote="Kevin Timmerman"] Zibri wrote: |
Phase inversion and 2 LEDs are required for proper operation.
|
In the above picture you can sse that the leds are inverted.
So the wav file needed is just a mono wav (same signal on both channels)
Every led flashes "half" of the wave and both together get the full wave. |
|
Back to top |
|
|
Zibri
Joined: 05 Jul 2012 Posts: 86
|
Posted: Thu May 23, 2013 9:34 am Post subject: |
|
|
[quote="Kevin Timmerman"] Zibri wrote: |
Bad info, bad code and bad dongle design there. |
infos: probably bad.
code: I don't know.
dongle: why is it bad?
do you prefer this one?
With this design the voltage is doubled but drives 2 leds.
In the design I proposed, the voltage is normal but each channel drives a led.
So, since the leds are inverted in polarity, a mono WAV (left and right channels in phase) is all that is needed.
About the design, the one above and the one I used are exactly the same. They just need different waveforms (phase inverted in this example) and normal in mine.
why do you think it's BAD?? |
|
Back to top |
|
|
xnappo Expert
Joined: 30 Dec 2003 Posts: 861
|
Posted: Thu May 23, 2013 9:48 am Post subject: |
|
|
Zibri wrote: |
why do you think it's BAD?? |
Not sure why Kevin thinks it is bad, but myself I am not so sure that essentially shorting your audio jack is good for its health.
xnappo |
|
Back to top |
|
|
Zibri
Joined: 05 Jul 2012 Posts: 86
|
Posted: Thu May 23, 2013 2:02 pm Post subject: |
|
|
xnappo wrote: | Zibri wrote: |
why do you think it's BAD?? |
Not sure why Kevin thinks it is bad, but myself I am not so sure that essentially shorting your audio jack is good for its health.
xnappo |
Well.. they're both shorts. In my case between channels and ground (as it should be), In the other case between channels and with double voltage.
The two schemes are very similar and the only difference is the needed "WAV". IMHO a simple mono wav is easier and smaller than a stereo phase inverted wav. |
|
Back to top |
|
|
xnappo Expert
Joined: 30 Dec 2003 Posts: 861
|
Posted: Thu May 23, 2013 2:09 pm Post subject: |
|
|
Zibri wrote: | xnappo wrote: | Zibri wrote: |
why do you think it's BAD?? |
Not sure why Kevin thinks it is bad, but myself I am not so sure that essentially shorting your audio jack is good for its health.
xnappo |
Well.. they're both shorts. In my case between channels and ground (as it should be), In the other case between channels and with double voltage.
The two schemes are very similar and the only difference is the needed "WAV". IMHO a simple mono wav is easier and smaller than a stereo phase inverted wav. |
You are right. *Shrug* don't know why Kevin doesn't like it.
xnappo |
|
Back to top |
|
|
Barf Expert
Joined: 24 Oct 2008 Posts: 1415 Location: Munich, Germany |
Posted: Thu May 23, 2013 4:01 pm Post subject: |
|
|
Possibly I should add my €0.02 to the discussion?
The issues in the last post has all been more or less extensively discussed in previous postings. These are:
1. The in-series resistors. http://www.hifi-remote.com/forums/viewtopic.php?t=13979&postdays=0&postorder=asc&&start=35. I recall I have seen somewhere (Adafruit forums?) that Kevin presented arguments why it was justified (in a particular situation) to leave out a resistor, Likely correct in a particular situation, it is not universally true. I have personally vaporized IR-LEDs with my high-power Yamaha
2. Stereo (= two antiphase channels) vs. mono: It just buys you the last drops of amplitude, likely at the cost of current. Note that Kevins' ("stereo") software together with Zibri's hardware is a no-go. Both LEDs (differently oriented, but then fed with antu-phase signals) will be lightning "exactly" the same time. @Zibri: note that IrMaster allows you to choose between "stereo" and mono.
Quote: | What I would like to do is to code an IR generator in HTML5 and to code a good online universal remote which uses the cheap ir dongles. |
I would like to recommend using the classes of IrMaster/IrpMaster, as java classes embedded in the browser in some html etc. I will be happy to support you. |
|
Back to top |
|
|
Kevin Timmerman Expert
Joined: 09 Jan 2007 Posts: 142 Location: West Michigan |
Posted: Thu May 23, 2013 9:43 pm Post subject: |
|
|
Zibri wrote: |
dongle: why is it bad?
do you prefer this one?
With this design the voltage is doubled but drives 2 leds.
In the design I proposed, the voltage is normal but each channel drives a led.
So, since the leds are inverted in polarity, a mono WAV (left and right channels in phase) is all that is needed.
About the design, the one above and the one I used are exactly the same. They just need different waveforms (phase inverted in this example) and normal in mine.
why do you think it's BAD?? |
Yes, that is the preferred configuration. Used by the original Total Remote and several other later products.
Many headphone amps will have inadequate voltage to forward bias the LEDs when used in a non-bridged configuration. Some headphone amps have output coupling capacitors that will prevent the non-bridged configuration from working.
With one channel inverted you can choose to use a bridged or non-bridged configuration if you want. Just a matter or how you wire the LEDs. |
|
Back to top |
|
|
Zibri
Joined: 05 Jul 2012 Posts: 86
|
Posted: Fri May 24, 2013 7:16 am Post subject: |
|
|
hmm thanks barf, I used a java disassembler to look at IRPMASTER library.
WoW. Too complex for me!
About html5 and javascript sound generation that's pretty simple.
Ok then. I will build a few dongles with the other schematic.
Anyway I suggest to generate 44khz waveforms and not 48khz since many players support only 44khz, not 48 and not 96. |
|
Back to top |
|
|
Zibri
Joined: 05 Jul 2012 Posts: 86
|
Posted: Fri May 24, 2013 7:42 am Post subject: |
|
|
Another strange fact:
the vol up I posted works on my samsung 55F8000 even if it decodes as
protocol = NECx, device = 7, subdevice = 7, obc = 7
Vol down is:
protocol = NECx, device = 7, subdevice = 7, obc = 11
But in IR802, I have Vol+ OBC 1F and Vol- OBC 2F and protocol necX2.
I'm not sure how to generate valid codes with irmaster but on ir802, samsung tvs are defined as code 1051 protocol 5A fixed data 31 1F 1F |
|
Back to top |
|
|
Zibri
Joined: 05 Jul 2012 Posts: 86
|
Posted: Fri May 24, 2013 7:50 am Post subject: |
|
|
Barf wrote: |
@Zibri: note that IrMaster allows you to choose between "stereo" and mono.
|
Hmm ok I found the option, I don't see the phase inversion flag for stereo waveforms. You should add one. |
|
Back to top |
|
|
|