Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pinguino 4550 - IR Remote Control Decoding
04-06-2017, 04:30 AM,
#11
RE: Pinguino 4550 - IR Remote Control Decoding
(04-06-2017, 02:47 AM)derf158 Wrote:
(03-06-2017, 01:01 PM)Aldeen19 Wrote:
(03-06-2017, 12:16 AM)derf158 Wrote:
(02-06-2017, 08:20 PM)Aldeen19 Wrote: [quote pid='12598' dateline='1496425705']
Aldeen,
 I will try this on V11 i am using V12 i use the hex value on thing to note in irremote.c a value needs to be changed see  the code i changed 50 to 26

Code:
// nb cycles for 50us
   _tmr_reload_val = ( System_getPeripheralFrequency() / 1000 / 1000 ); // 1us = 12 cycles @ 48MHz
   _tmr_reload_val *= 26; // 50us = 50 * 12 cy @ 48MHz
  // _tmr_reload_val *= 50; // 50us = 50 * 12 cy @ 48MHz
   _tmr_reload_val = 0xFFFF - _tmr_reload_val;

Fred, thank you for your prompt reply.
I tried changing 50 to 26 which is included in the file IRremote.c - located in the path : C:\Pinguino\v11\p8\include\pinguino\libraries but no change!  I feel sad.

Aldeen,
 i just tried the irremote in V11 with the change from 50 to 26 it works. did you decode the ir remote you have?

Fred,
With 26 uSec setting, now decoding has stopped although the USER led flashes with incoming signals. 
I tried even with a different remote unit it still the same, no decoding .. what does that suppose to mean?
Aldeen,
 if you change the 26usec back to 50usec can you see it on your hyper terminal? Do you have an Arduino board to try your IR receiver and  remote?
[/quote]
Aldeen,
 i have though about upgrading to v12?
Reply
04-06-2017, 02:58 PM,
#12
RE: Pinguino 4550 - IR Remote Control Decoding
(04-06-2017, 04:30 AM)derf158 Wrote:
(04-06-2017, 02:47 AM)derf158 Wrote:
(03-06-2017, 01:01 PM)Aldeen19 Wrote:
(03-06-2017, 12:16 AM)derf158 Wrote:
(02-06-2017, 08:20 PM)Aldeen19 Wrote: [quote pid='12598' dateline='1496425705']
Aldeen,
 I will try this on V11 i am using V12 i use the hex value on thing to note in irremote.c a value needs to be changed see  the code i changed 50 to 26

Code:
// nb cycles for 50us
   _tmr_reload_val = ( System_getPeripheralFrequency() / 1000 / 1000 ); // 1us = 12 cycles @ 48MHz
   _tmr_reload_val *= 26; // 50us = 50 * 12 cy @ 48MHz
  // _tmr_reload_val *= 50; // 50us = 50 * 12 cy @ 48MHz
   _tmr_reload_val = 0xFFFF - _tmr_reload_val;

Fred, thank you for your prompt reply.
I tried changing 50 to 26 which is included in the file IRremote.c - located in the path : C:\Pinguino\v11\p8\include\pinguino\libraries but no change!  I feel sad.

Aldeen,
 i just tried the irremote in V11 with the change from 50 to 26 it works. did you decode the ir remote you have?

Fred,
With 26 uSec setting, now decoding has stopped although the USER led flashes with incoming signals. 
I tried even with a different remote unit it still the same, no decoding .. what does that suppose to mean?
Aldeen,
 if you change the 26usec back to 50usec can you see it on your hyper terminal? Do you have an Arduino board to try your IR receiver and  remote?
Aldeen,
 i have though about upgrading to v12?
[/quote]


Fred,
On the Arduino it is running like a dream, easily and without complications.
Please see attached photos.. I am dying to learn where is the defect in Pinguino.


Attached Files Thumbnail(s)
                   
Aldeen19
Reply
04-06-2017, 04:33 PM,
#13
RE: Pinguino 4550 - IR Remote Control Decoding
(04-06-2017, 02:58 PM)Aldeen19 Wrote:
(04-06-2017, 04:30 AM)derf158 Wrote:
(04-06-2017, 02:47 AM)derf158 Wrote:
(03-06-2017, 01:01 PM)Aldeen19 Wrote:
(03-06-2017, 12:16 AM)derf158 Wrote: Fred, thank you for your prompt reply.
I tried changing 50 to 26 which is included in the file IRremote.c - located in the path : C:\Pinguino\v11\p8\include\pinguino\libraries but no change!  I feel sad.

Aldeen,
 i just tried the irremote in V11 with the change from 50 to 26 it works. did you decode the ir remote you have?

Fred,
With 26 uSec setting, now decoding has stopped although the USER led flashes with incoming signals. 
I tried even with a different remote unit it still the same, no decoding .. what does that suppose to mean?
Aldeen,
 if you change the 26usec back to 50usec can you see it on your hyper terminal? Do you have an Arduino board to try your IR receiver and  remote?
Aldeen,
 i have though about upgrading to v12?


Fred,
On the Arduino it is running like a dream, easily and without complications.
Please see attached photos.. I am dying to learn where is the defect in Pinguino.
[/quote]
Aldeen,
 one thing i noticed in my V11 i could not use serial and the ir with controlling leds my 4550 was running out of memory when i changed over to v12 the PDE worked great. V11 was having issues  i worked with serial and ir last night and it would not work but it did in V12.
Reply
04-06-2017, 11:07 PM,
#14
Thumbs Down  RE: Pinguino 4550 - IR Remote Control Decoding
(04-06-2017, 04:33 PM)derf158 Wrote:
(04-06-2017, 02:58 PM)Aldeen19 Wrote:
(04-06-2017, 04:30 AM)derf158 Wrote:
(04-06-2017, 02:47 AM)derf158 Wrote:
(03-06-2017, 01:01 PM)Aldeen19 Wrote: Aldeen,
 i just tried the irremote in V11 with the change from 50 to 26 it works. did you decode the ir remote you have?

Fred,
With 26 uSec setting, now decoding has stopped although the USER led flashes with incoming signals. 
I tried even with a different remote unit it still the same, no decoding .. what does that suppose to mean?
Aldeen,
 if you change the 26usec back to 50usec can you see it on your hyper terminal? Do you have an Arduino board to try your IR receiver and  remote?
Aldeen,
 i have though about upgrading to v12?


Fred,
On the Arduino it is running like a dream, easily and without complications.
Please see attached photos.. I am dying to learn where is the defect in Pinguino.
Aldeen,
 one thing i noticed in my V11 i could not use serial and the ir with controlling leds my 4550 was running out of memory when i changed over to v12 the PDE worked great. V11 was having issues  i worked with serial and ir last night and it would not work but it did in V12.
[/quote]

Dear Fred,
Thank you very much for your patience and time.  Finally it is functioning nicely now, even without changing the 50 uS parameter in IRremote.c file.
You were absolutely right to switch to IDE v12,  apparently v11 were causing the Pinguino to decode incorrectly as shown in the two attached photos. There was one missing hex digit (MSD) in the decoded number! and that was the only reason.
Thanks again man.. Cheers!


Attached Files Thumbnail(s)
       
Aldeen19
Reply
05-06-2017, 12:02 AM,
#15
RE: Pinguino 4550 - IR Remote Control Decoding
(04-06-2017, 11:07 PM)Aldeen19 Wrote:
(04-06-2017, 04:33 PM)derf158 Wrote:
(04-06-2017, 02:58 PM)Aldeen19 Wrote:
(04-06-2017, 04:30 AM)derf158 Wrote:
(04-06-2017, 02:47 AM)derf158 Wrote: Fred,
With 26 uSec setting, now decoding has stopped although the USER led flashes with incoming signals. 
I tried even with a different remote unit it still the same, no decoding .. what does that suppose to mean?
Aldeen,
 if you change the 26usec back to 50usec can you see it on your hyper terminal? Do you have an Arduino board to try your IR receiver and  remote?
Aldeen,
 i have though about upgrading to v12?


Fred,
On the Arduino it is running like a dream, easily and without complications.
Please see attached photos.. I am dying to learn where is the defect in Pinguino.
Aldeen,
 one thing i noticed in my V11 i could not use serial and the ir with controlling leds my 4550 was running out of memory when i changed over to v12 the PDE worked great. V11 was having issues  i worked with serial and ir last night and it would not work but it did in V12.

Dear Fred,
Thank you very much for your patience and time.  Finally it is functioning nicely now, even without changing the 50 uS parameter in IRremote.c file.
You were absolutely right to switch to IDE v12,  apparently v11 were causing the Pinguino to decode incorrectly as shown in the two attached photos. There was one missing hex digit (MSD) in the decoded number! and that was the only reason.
Thanks again man.. Cheers!
[/quote]
 Aldeen,
 i'm glade it is working now.
fred
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)