Pages: [1]   Go Down
Author Topic: Using Pronto hex .CCF discrete codes in arduino  (Read 1350 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Full Member
***
Karma: 2
Posts: 175
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

« Last Edit: July 20, 2013, 02:01:56 am by power7net » Logged

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

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Pages: [1]   Go Up
Jump to: