Go Down

Topic: Using Pronto hex .CCF discrete codes in arduino (Read 1 time) previous topic - next topic

Hi guys,

have some time I'm trying to find a way to use my Pronto library in arduino, but without any sucess. I need some sketch in arduino to use a Pronto Hex file in .CCF format, like this:

0000 006b 0000 0032 0081 0040 0010 0010 0010 0010 0010 0030 0010 0010 0010 0030 0010 0010 0010 0030 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0030 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030 0010 0030 0010 0010 0010 0b33

or some way to convert this to NEC, like this:
0x02FD48B7

or convert the pronto .CCF code into R5, anything that I can use in my arduino sketch

Does anyone knows a way to do this?

thanks

#1
Jul 20, 2013, 08:47 am Last Edit: Jul 20, 2013, 09:01 am by power7net Reason: 1
Hello arduino friend.

You must convert each hex number to decimal after multiple with *26 the result is usecs pulse. (1/38000Hz =0.000026 )

Online converter : http://www.mathsisfun.com/binary-decimal-hexadecimal-converter.html

To understand the data you posted (Pronto hex format) I suggest you read the following: http://www.hifi-remote.com/infrared/IR-PWM.shtml

006b = frequency

0032 = number total bits

0081 0040 = Header pulses On PWM /Off wait

0010 0010 = bit 0

0010 0030 = bit 1

then if you have the total binary convert it to hex like your example...

I think it is not NEC protocol....i understand it from header...

I have example into my website.

Web / sms / bluetooth / arduino / android remote control. Home Automation projects.
http://www.power7.net

Thanks for answer, actually I'm having reading about what means this code, but I still have difficult to convert it to use with arduino.

There is an easier way to convert this, or some sketch in arduino where I can use this codes?

Go Up