A.IR Shield ESP8266 & SendIR questions

User avatar
AnalysIR
Site Admin
Posts: 794
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

A.IR Shield ESP8266 & SendIR questions

Post by AnalysIR »

A.IR Shield ESP8266 /SendIR user submitted the following questions when working with an old DELONGHI Air Conditioner
Good morning, I have a problem with an old DELONGHI conditioner. Using A.IR Shield ESP8266 and AnalysIR software, I can acquire the RAW code with A.IR Shield ESP8266 and AnalysIR software, using send Selected IR the air conditioner works, instead sending the raw code through IRremote software (irsend.sendraw) with ESP8266 and the SendIR card does not work. Also I did not understand how to use both the led transmitters on the SendIR board.Attached history. Can you help me?
User avatar
AnalysIR
Site Admin
Posts: 794
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: A.IR Shield ESP8266 & SendIR questions

Post by AnalysIR »

So the issue seems to be related to using the SendIR with the ESP8266.

I need you to post a photo of how you have wired up the SendIR module to the ESP8266 - make sure all the connections are clearly visible.

Regarding the 2 IR LEDs. By defualt both are already connected. It works as follows:
If you set the 3-pin jumer beside the LEDs to 5V mode, then both IR LEDs are active.
If you set them to 3V3 mode then only 1 IR LED is active.

This should be explained in more details in the getting started guide, which was emailed to you on Jan 12th 2018.
xpoint
Posts: 7
Joined: Tue Jan 23, 2018 9:02 am

Re: A.IR Shield ESP8266 & SendIR questions

Post by xpoint »

Attached photo connections. I wanted to clarify that with other RAW codes the card works, I was wondering if the irsend.sendRaw function of the IRRemote library does not always go well and that your function
AIR_sendRAW (carrier) is better?
You do not have the required permissions to view the files attached to this post.
xpoint
Posts: 7
Joined: Tue Jan 23, 2018 9:02 am

Re: A.IR Shield ESP8266 & SendIR questions

Post by xpoint »

attached photo of the connections. I wanted to clarify that with other air conditioners the raw code is correctly sent. Can your sendRaw function be better than the IRRemote library function?
You do not have the required permissions to view the files attached to this post.
User avatar
AnalysIR
Site Admin
Posts: 794
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: A.IR Shield ESP8266 & SendIR questions

Post by AnalysIR »

xpoint wrote: Mon Apr 09, 2018 8:44 am Attached photo connections. I wanted to clarify that with other RAW codes the card works, I was wondering if the irsend.sendRaw function of the IRRemote library does not always go well and that your function
AIR_sendRAW (carrier) is better?
As far as I know, the IR send function on the ESP8266 IRremote Library generates the carrier in software only. Our solution, which is decribed on our blog, uses a hardware method of generating the IR carrier - so in theory should be better.

However, I don't believe it would be a reason for big issues...like not working at all. I suggest you ignore this aspect for now.
User avatar
AnalysIR
Site Admin
Posts: 794
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: A.IR Shield ESP8266 & SendIR questions

Post by AnalysIR »

attached photo of the connections. I wanted to clarify that with other air conditioners the raw code is correctly sent. Can your sendRaw function be better than the IRRemote library function?
Some comments:
- This signal seems to be very unusual, because it does not appear to have a header. A header is used to turn on/activate the IR receiver before the data signal arrives.
- The correct timings for this signal are 418 & 1254. If you change the timings to match these, it may work better. (you can do this in code, but leave the long space/gap in the middle of the signal at the same value...just change all the marks/spaces that are close to these 2 values)
- If the above does not work, then try using 3V3 only. Power from 3V3 instead of 5v/VIN.
- If that does not work, continue using 3V3 instead of 5V, but change the jumper JP1 to the 3V3 position(across the 2 pins on the right)
- Another thing to check, is if you actually have 5V at VIN and does the red led blink when you send a signal.

Let me know how these steps go!
xpoint
Posts: 7
Joined: Tue Jan 23, 2018 9:02 am

Re: A.IR Shield ESP8266 & SendIR questions

Post by xpoint »

If I understand correctly, this line {518,1146,518,1150,522,1150,522,1150,522,318,518,318,518,318,520,316,518,316,518,314,518,322,518,318,518,318,518,314,518,322,518,316,518,318,518,1150,522,318,518,1150,522,318,518,314,522,1150,522,318,518,318,518,1150,522,1150,522,318,518,318,522,314,518,318,518,318,518,318,522,314,518,318,518,318,522,1150,522,314,520,316,518 , 1154,522,1150,524,1144,522,1154,518,318,522,1150,522,1150,518,318,522,1150,522,318,518,312,518,318,522,318,518,318,518,312,518,318,522,1150,522,1154,518,1150,522,1150,522,318,518,1154,518,1150 , 522,318,518,1154,518,318,524,312,518,318,518,318,522,1150,522,1150,518,1154,518,1154,518,9532,518,1144,520,1148,522,1154,516,1150,522,318,518,318,522,318,518,318,518,318,518,312,518,318,522,318,518,318,518,314,522,318,518,318,518,318,522,1144,522,318,518,1154,518,322,518,314,518 , 1154,522,318,518,318,518,1150,518,1154,522,318,518,318,518,314,518,322,518,318,518,318,520,312,518,322,518,318,520,1154,518,314,518,322,518,1150,522,1154,518,1150,518, 1154,522,318,518,1154,518,1150,518,322,518,1150,522,318,518,314,518,322,518,316,518,318,518,312,518,322,518,1150,522,1154,518,1150,518,1154,522,316,518,1154,518,1150,522,318,518,1154,518,318,520,316,518,318,518,318,520,1154,518,1150, 524,1150,522,1150,522}
I should replace the first two values ​​518.1146 with 418.1254 and so for all the others, leaving 9532 unchanged, while the consecutive impulses type 522,318,518,314,518,322 etc. should I put them all at 418?
Thanks for your kindness
User avatar
AnalysIR
Site Admin
Posts: 794
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: A.IR Shield ESP8266 & SendIR questions

Post by AnalysIR »

Yes..you can easily do it in code..



if val > 1500 => val = val
else if val > 800 => val = 1254
else => val = 418

:) (untested!)
xpoint
Posts: 7
Joined: Tue Jan 23, 2018 9:02 am

Re: A.IR Shield ESP8266 & SendIR questions

Post by xpoint »

Unfortunately, the tests did not work, the voltage measured at the VIN pin is 4.8V, also power supply 5V red LED does not flash, at 3.3V the red LED flashes while sending the command.thanks, I look forward to advice
User avatar
AnalysIR
Site Admin
Posts: 794
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: A.IR Shield ESP8266 & SendIR questions

Post by AnalysIR »

Unfortunately, the tests did not work, the voltage measured at the VIN pin is 4.8V,
On some NodeMCU systems there is a diode between the USB 5V and this pin.
The actual USB 5V, is available on the other side of the diode, but it should still work OK.
also power supply 5V red LED does not flash,
Try removing the 2 Jumpers from JP2, and see does the red LED blink, when sending IR.
at 3.3V the red LED flashes while sending the command.thanks,
If the red LED is flashing, then the IR is being sent, OK.
I look forward to advice
Option, 1 - just use it in 3V3 mode
Option 2 - as above, try removing both Jumpers from JP2, to see if the red led blinks when sending
Post Reply