Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IR LIBRARY
18-01-2014, 05:24 PM,
#31
RE: IR LIBRARY
(18-01-2014, 02:53 AM)derf158 Wrote:
(17-01-2014, 09:20 AM)regis Wrote: You can delete most of the lines in this file :
- all the lines about timers
- all the lines about the led
Send me your files (.h but also .c) and I will clean them for you.
Regis,
i have attached the IRremote.c and IRremote.h files
i will begin the cleanup on the IRremoteInt.h
thank you
fred

(18-01-2014, 02:53 AM)derf158 Wrote:
(17-01-2014, 09:20 AM)regis Wrote: You can delete most of the lines in this file :
- all the lines about timers
- all the lines about the led
Send me your files (.h but also .c) and I will clean them for you.
Regis,
i have attached the IRremote.c and IRremote.h files
i will begin the cleanup on the IRremoteInt.h
thank you
fred

regis,
i deleted the timers and led lines of code. also i modified a few lines as you will see in the PDF file.

thank you

fred

Regis,
i have attached the PDL and PDE files
thank you
fred


Attached Files
.pdl   IRremote.pdl (Size: 1.56 KB / Downloads: 5)
.pde   pinguinoIRrecvDemo.pde (Size: 580 bytes / Downloads: 7)
Reply
19-01-2014, 09:45 PM,
#32
RE: IR LIBRARY
(18-01-2014, 05:24 PM)derf158 Wrote: Regis,
i have attached the PDL and PDE files
thank you
fred

Hey fred,
what about hardware? Any schema, idea?

Bye.
Reply
20-01-2014, 11:37 AM,
#33
RE: IR LIBRARY
(19-01-2014, 09:45 PM)dkmorb Wrote:
(18-01-2014, 05:24 PM)derf158 Wrote: Regis,
i have attached the PDL and PDE files
thank you
fred

Hey fred,
what about hardware? Any schema, idea?

Bye.
Working on it.
Reply
20-01-2014, 08:15 PM,
#34
RE: IR LIBRARY
Hi Fred,
This was more work than expected ...
Here is what I've done so far :
- replaced all C++ syntax by their C equivalent.
- added all missing #include.
- fixed all bugs
- created a Timer3 IRQ routine called from the main.c to get a 50us interrupt
- renamed all functions in irremote.pdl to be consequent
- added possibility to change the IR out pin (however it must be a valid PWM pin)
- updated the example
- other minor things
All files have been added to the rev. 962 : http://wiki.pinguino.cc/index.php/Catego...E_Packages
Now it's time to test them.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
20-01-2014, 08:35 PM,
#35
RE: IR LIBRARY
(20-01-2014, 08:15 PM)regis Wrote: Hi Fred,
This was more work than expected ...
Here is what I've done so far :
- replaced all C++ syntax by their C equivalent.
- added all missing #include.
- fixed all bugs
- created a Timer3 IRQ routine called from the main.c to get a 50us interrupt
- renamed all functions in irremote.pdl to be consequent
- added possibility to change the IR out pin (however it must be a valid PWM pin)
- updated the example
- other minor things
All files have been added to the rev. 962 : http://wiki.pinguino.cc/index.php/Catego...E_Packages
Now it's time to test them.

Regis,
Thank you very much I will begin testing tonight awesome!!!!!!!
Reply
20-01-2014, 09:02 PM,
#36
RE: IR LIBRARY
BTW, I put the example in 06.Sensors/IR Remote/
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
20-01-2014, 11:37 PM,
#37
RE: IR LIBRARY
(20-01-2014, 09:02 PM)regis Wrote: BTW, I put the example in 06.Sensors/IR Remote/

My god, well done Regis!
Reply
21-01-2014, 01:55 AM,
#38
RE: IR LIBRARY
Hey guys,
I just tried the new library but it seems not to work...i attached a IR led to pin 11 o 12 of my 2550 but nothing happened with this code
Code:
int i;
    for (i = 0; i < 3; i++)
    {
        IRremote.sendNEC(0x20DF10EF,32); //SEND IR PULSES LG TV POWER
        delay(100);
    }

I tried also a normal led but it never turned on (or blinking).

Bye.
Reply
21-01-2014, 02:23 AM,
#39
RE: IR LIBRARY
(21-01-2014, 01:55 AM)dkmorb Wrote: Hey guys,
I just tried the new library but it seems not to work...i attached a IR led to pin 11 o 12 of my 2550 but nothing happened with this code
Code:
int i;
    for (i = 0; i < 3; i++)
    {
        IRremote.sendNEC(0x20DF10EF,32); //SEND IR PULSES LG TV POWER
        delay(100);
    }

I tried also a normal led but it never turned on (or blinking).

Bye.

same issue here with 4550 board
Reply
21-01-2014, 04:09 AM,
#40
RE: IR LIBRARY
(20-01-2014, 09:02 PM)regis Wrote: BTW, I put the example in 06.Sensors/IR Remote/

regis
i tried the IRrecvDemo example
the userled did not blink
i then hooked up the ir receiver to an arduino and ran the arduino IRrecvDemo and it worked.

i ran thru the code but no luck yet finding the issue.
fyi the code did compile.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)