Go Down

Topic: Sending IR signals I found online. (Read 585 times) previous topic - next topic

Xndrstrtscoding

Nov 23, 2020, 04:55 pm Last Edit: Nov 23, 2020, 05:19 pm by Xndrstrtscoding
Hi everyone,

I have a simple question, I think, but I haven't found a clear answer to this online.
I have been looking for hours now, really I tried to figure this out on my own but I just don't get it.
Its going to be something stupid I don't get.


With remote central I found some IR Codes I would like my Arduino nano to send.
(I have tried the setup with some other code and it works.)

For these codes from remote central I know I can get some more info by converting them in irdb.tk
But that still doesn't give me the code needed for arduino.

for example.
on remote central I copy this code.
http://www.remotecentral.com/cgi-bin/files/rcfiles.cgi?area=pronto&db=discrete&br=samsung&dv=hlnserieshdtv


Code: [Select]
0000 006d 0000 0022 00ac 00ac 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0689

Its an Off signal for a Samsung tv.

With irdb.tk I get this info
Protocol NECx2, device 7, subdevice 7, OBC 152

Then looking online I found a post that kind of explains how to get from this to a useable format.
(https://stackoverflow.com/questions/60718588/understanding-ir-codes-for-samsung-tv)

{
Protocol NECx2, device 7, subdevice 7, OBC 152". It's up to you to know that you have to
bit-reverse the device number '07' to get 'E0'
bit-reverse the subdevice number (also '07') to get 'E0'
convert 152 to hexadecimal and reverse the bits to get '19'
calculate the last two digits as ( 0xFF - the bit-reversed OBC ), 0xFF - 0x19 = 0xE6, giving the final 8 bits 'E6'




On this forum I found that the result from that code should be E0E019E6.

In Arduino if I'm not mistaking this would become.
Code: [Select]
irsend.sendSAMSUNG(OxE0E019E6, 38);

So my question is. What is the easiest way to get from the code I copied from remote central to the code I can send with Arduino nano?
(this example is a Samsung signal but I would like other signals as well)

If anyone can please send me some info on how I can do this easiest.
Most of the tutorials on this issue use a ir receiver on an arduino to get the code.
I cant do that since I don't have the remote.
And then when I look up stuff with the remote central pronto hex codes its all really advanced info.
I'm looking for something in between. :)

Already thank you for reading this.
Any info is appreciated!

Grts

bengtmartensson

Check out IrScrutinizer. This is a program that runs on your PC (Windows, Linux, Mac). If you put AGirs (from the Arduino library manager) on your Arduino, IrScrutinizer will be able to use it to transmit the desired signals.

Xndrstrtscoding

Check out IrScrutinizer. This is a program that runs on your PC (Windows, Linux, Mac). If you put AGirs (from the Arduino library manager) on your Arduino, IrScrutinizer will be able to use it to transmit the desired signals.
Ok, I will try that.
Sorry for the late response. Work has kept me busy these last couple of days.

Thanks for the response.

Xndrstrtscoding

#3
Nov 27, 2020, 09:28 pm Last Edit: Nov 27, 2020, 09:40 pm by Xndrstrtscoding
Check out IrScrutinizer. This is a program that runs on your PC (Windows, Linux, Mac). If you put AGirs (from the Arduino library manager) on your Arduino, IrScrutinizer will be able to use it to transmit the desired signals.
I found how to get

sendir,1:1,1,38400,1,69,347,173,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,65,22,65,22,65,22,65,22,65,22,65,22,65,22,65,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,65,22,65,22,65,22,65,22,65,22,65,22,65,22,65,22,1527,347,87,22,3692

from IrScrutinizer which I can use on Arduino, but I think if I try to add a whole bunch of signals like this, the Arduino will soon be filled up.

I'm sure I could just convert the remote central code to E0E019E6 somehow, I just dont understand how to do it, like the different steps.
Or is it possible to get something like E0E019E6 from IrScrutinizer?

bengtmartensson

I suggest that you first have a look at the tutorial and the manual, both available through the Help menu.

Assuming that you have somehow the interesting signals in IrScrutinizer, if you want the codes as a sketch for Arduino, what you want to do is to "export" them in a suitable format, like one  of the Arduino export formats. This will generate a sketch that can be used as-is, or modified.

I'm sure I could just convert the remote central code to E0E019E6 somehow, I just dont understand how to do it, like the different steps.
Or is it possible to get something like E0E019E6 from IrScrutinizer?

When Ken Shirriff wrote IRemote in 2009 he did not worry about how the rest of the world parametrized the IR formats he supported. Best is if you can avoid IRremote altogether.  The Arduino/IRremote can to some extent generate those parameters. Also, with the "NEC-Shirriff-32", NEC signals can be generated from the Shirriff parameter. If you ask a more detailed question I can give a more detailed answer. What do you want to achieve?

Go Up