Toshiba AC Ir arduino Mega

Everything related to protocols and IR codes
Post Reply
ivanchob
Posts: 1
Joined: Fri Jul 01, 2016 8:46 pm

Toshiba AC Ir arduino Mega

Post by ivanchob »

Hi hi,
I would like to ask if you can guide me. I want to make my Toshiba Air Conditioner switch on and off during sleeptime to keep temperature fresh during the summer. That's why I bought Arduino Mega, dht11 (which was mistake, I've shoult take dht22), IR Receiver and IR Transmitter.

I do have the original remote control, as well as an Xiaomi home app on my Galaxy S4. I can control my AIR condition with both devices.
The problem is obvious, I can't make the aircon power on and off. I have not a single success :(. I tried with your extended sketch and here are the results:

Original Remote Control
Power off

Raw: (295) 4388, -4340, 532, -1648, 508, -1652, 508, -1652, 504, -1652, 508, -572, 508, -572, 508, -1652, 516, -564, 508, -568, 508, -572, 508, -572, 508, -572, 532, -1624, 508, -1652, 508, -572, 504, -1652, 508, -572, 508, -572, 508, -572, 508, -572, 508, -568, 508, -572, 508, -1652, 508, -1648, 508, -1652, 508, -1652, 508, -1652, 504, -1652, 508, -1652, 508, -1648, 508, -572, 508, -572, 508, -572, 508, -568, 512, -572, 508, -572, 504, -572, 508, -572, 508, -572, 508, -1648, 508, -572, 508, -572, 508, -1652, 508, -572, 508, -568, 508, -572, 508, -572, 508, -572, 508, -572, 508, -1648, 512, -1648, 508, -572, 508, -572, 508, -1648, 508, -1652, 508, -1652, 504, -576, 504, -572, 508, -572, 508, -572, 508, -572, 504, -572, 508, -572, 508, -572, 508, -572, 508, -1652, 508, -568, 508, -572, 508, -572, 508, -1648, 512, -1648, 508, -572, 508, -7492, 4364, -4344, 556, -1624, 508, -1652, 508, -1648, 508, -1652, 508, -572, 508, -572, 508, -1648, 508, -572, 508, -572, 508, -572, 508, -568, 536, -544, 508, -1652, 508, -1648, 512, -568, 512, -1648, 508, -568, 512, -568, 536, -544, 536, -544, 536, -544, 508, -572, 532, -1624, 536, -1624, 536, -1624, 532, -1628, 532, -1624, 536, -1624, 532, -1624, 536, -1624, 532, -548, 508, -572, 504, -572, 536, -544, 536, -544, 508, -572, 532, -544, 536, -544, 536, -544, 536, -1624, 508, -572, 508, -572, 504, -1652, 508, -572, 532, -548, 508, -572, 532, -548, 508, -572, 532, -544, 508, -1652, 508, -1652, 508, -572, 504, -572, 536, -1624, 508, -1648, 536, -1624, 536, -544, 536, -544, 532, -548, 504, -572, 536, -548, 504, -572, 536, -544, 536, -544, 508, -572, 532, -1624, 532, -548, 508, -572, 508, -572, 532, -1624, 508, -1652, 532, -548, 532,

Original Remote Control
Power on, 19 degrees, no swing, manual fan level 2

Raw: (295) 4388, -4364, 508, -1652, 508, -1652, 504, -1652, 512, -1648, 508, -572, 508, -572, 508, -1648, 508, -572, 508, -572, 508, -572, 508, -572, 532, -544, 508, -1652, 508, -1648, 512, -568, 508, -1652, 508, -572, 508, -572, 508, -572, 508, -568, 512, -568, 508, -572, 508, -1652, 508, -1648, 508, -1652, 528, -1632, 508, -1648, 508, -1648, 536, -1624, 512, -1648, 508, -572, 508, -572, 508, -568, 512, -568, 508, -572, 508, -572, 508, -572, 508, -568, 512, -568, 508, -1652, 508, -572, 508, -572, 508, -1648, 512, -568, 508, -572, 536, -544, 508, -572, 508, -568, 512, -568, 508, -1652, 508, -1648, 512, -568, 508, -572, 536, -544, 508, -572, 508, -1648, 508, -576, 504, -572, 508, -572, 508, -572, 508, -568, 512, -544, 536, -568, 508, -572, 508, -572, 508, -1648, 512, -568, 508, -572, 508, -572, 508, -572, 508, -572, 508, -568, 508, -7492, 4364, -4368, 508, -1652, 504, -1652, 508, -1652, 508, -1648, 508, -572, 508, -572, 508, -1652, 504, -572, 508, -572, 508, -548, 536, -568, 508, -572, 508, -1652, 504, -1652, 508, -572, 508, -1648, 512, -568, 508, -572, 508, -572, 508, -572, 508, -572, 508, -568, 508, -1652, 508, -1652, 508, -1652, 504, -1652, 508, -1648, 508, -1652, 508, -1652, 508, -1652, 504, -576, 504, -572, 508, -572, 508, -572, 504, -576, 508, -568, 508, -572, 508, -572, 508, -572, 508, -1624, 532, -576, 508, -568, 508, -1652, 508, -572, 508, -568, 508, -572, 508, -572, 508, -572, 508, -572, 504, -1656, 508, -1648, 508, -572, 508, -572, 508, -568, 508, -572, 508, -1652, 508, -572, 508, -572, 508, -572, 504, -572, 508, -572, 508, -572, 508, -572, 508, -572, 508, -572, 532, -1624, 508, -572, 508, -572, 508, -568, 512, -568, 508, -572, 508, -572, 508,

Samsung s4 IR Mihome App (Xiaomi app) AC Remote
Power off

Raw: (199) 4508, -4528, 524, -1644, 524, -532, 524, -1644, 548, -1620, 524, -532, 524, -532, 548, -1620, 524, -532, 524, -536, 548, -1616, 528, -532, 548, -508, 524, -1644, 524, -1644, 524, -532, 524, -1644, 548, -508, 524, -1644, 524, -1644, 524, -1644, 524, -1640, 524, -536, 524, -1644, 524, -1640, 524, -1644, 524, -560, 500, -532, 548, -508, 524, -536, 520, -1644, 524, -536, 548, -508, 524, -1644, 524, -1644, 524, -1644, 524, -532, 524, -532, 524, -532, 552, -508, 524, -532, 524, -532, 528, -532, 520, -536, 524, -1644, 548, -1616, 528, -1644, 520, -1644, 524, -1644, 548, -5296, 4540, -4524, 524, -1644, 524, -532, 524, -1644, 524, -1644, 524, -532, 540, -516, 524, -1644, 524, -532, 524, -536, 524, -1644, 524, -532, 524, -532, 524, -1644, 524, -1644, 524, -532, 524, -1644, 524, -532, 524, -1644, 524, -1644, 524, -1644, 524, -1644, 524, -532, 524, -1668, 500, -1672, 492, -1644, 528, -532, 524, -532, 524, -532, 524, -536, 520, -1648, 520, -536, 524, -532, 524, -1644, 524, -1644, 524, -1644, 520, -536, 524, -532, 524, -536, 540, -516, 524, -532, 524, -532, 524, -536, 520, -536, 524, -1644, 524, -1644, 524, -1644, 520, -1644, 528, -1640, 524,

Samsung s4 IR Mihome App (Xiaomi app) AC Remote
Power on, 19 degrees, no swing, manual fan level 2

Raw: (199) 4564, -4496, 524, -1644, 548, -512, 524, -1640, 524, -1644, 524, -536, 520, -536, 524, -1644, 524, -532, 524, -532, 524, -1644, 524, -532, 528, -532, 524, -1644, 524, -1640, 524, -536, 524, -1644, 520, -536, 524, -1644, 524, -532, 524, -1644, 524, -1644, 524, -1640, 524, -1644, 524, -1644, 524, -1644, 524, -532, 524, -1644, 524, -536, 520, -536, 524, -532, 524, -532, 524, -536, 524, -532, 524, -532, 524, -1644, 524, -1644, 524, -536, 520, -536, 520, -536, 524, -532, 524, -1644, 524, -1644, 524, -532, 524, -532, 524, -1672, 496, -1644, 524, -1668, 500, -1644, 524, -5344, 4540, -4496, 524, -1644, 524, -560, 500, -1644, 524, -1640, 524, -536, 524, -532, 524, -1644, 524, -532, 524, -532, 524, -1644, 524, -536, 524, -532, 524, -1644, 524, -1644, 524, -532, 548, -1620, 524, -532, 532, -1636, 524, -532, 524, -1644, 524, -1644, 524, -1644, 520, -1648, 524, -1640, 524, -1644, 524, -536, 520, -1644, 524, -536, 520, -536, 524, -532, 524, -532, 552, -508, 524, -532, 524, -536, 520, -1644, 524, -1644, 524, -536, 520, -536, 524, -532, 524, -532, 524, -1644, 524, -1644, 524, -532, 524, -536, 524, -1640, 528, -1640, 524, -1644, 524, -1644, 524,

I've tried to send those signals back, but nothing happens.

Can you, please, give me a clue if I'm doing something wrong?
Or just guide me if I can do the trick. The IR Transmitter has a red light, which blinks, when the sygnal is send, so I defenitely send a signals

Kind and Best Regards
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: Toshiba AC Ir arduino Mega

Post by AnalysIR »

I imported the first of your signals into AnalysIr and it is indeed recognised a a valid Toshiba AC signal, as below. I have also cleaned the signal for you with AnalysIR.

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : TOSHIBA_80_96_144_160AC :  : F20D03FC0120670046F20D03FC0120670046 : 144 : 0
Note: Be sure to use the correct Carrier frequency, for each individual signal, as(or if) indicated above
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit https://www.AnalysIR.com/ or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct carrier frequency


unsigned int Signal_0_0[] = {4400,4400,543,1623,543,1623,543,1623,543,1623,543,543,543,543,543,1623,543,543,543,543,543,543,543,543,543,543,543,1623,543,1623,543,543,543,1623,543,543,543,543,543,543,543,543,543,543,543,543,543,1623,543,1623,543,1623,543,1623,543,1623,543,1623,543,1623,543,1623,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,1623,543,543,543,543,543,1623,543,543,543,543,543,543,543,543,543,543,543,543,543,1623,543,1623,543,543,543,543,543,1623,543,1623,543,1623,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,1623,543,543,543,543,543,543,543,1623,543,1623,543,543,543,7492,4400,4400,543,1623,543,1623,543,1623,543,1623,543,543,543,543,543,1623,543,543,543,543,543,543,543,543,543,543,543,1623,543,1623,543,543,543,1623,543,543,543,543,543,543,543,543,543,543,543,543,543,1623,543,1623,543,1623,543,1623,543,1623,543,1623,543,1623,543,1623,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,1623,543,543,543,543,543,1623,543,543,543,543,543,543,543,543,543,543,543,543,543,1623,543,1623,543,543,543,543,543,1623,543,1623,543,1623,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,543,1623,543,543,543,543,543,543,543,1623,543,1623,543,543,543}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
 // AnalysIR IR Protocol: TOSHIBA_80_96_144_160AC, Key:  
So if you are having problems sending, it is likely an issue with your circuit or firmware.

PS: Check our blog for a recent post on sending AC signals from FLASH on arduino....no issues with SRAM and you can store a lot of signals in FLASH.
DemoN
Posts: 2
Joined: Wed Jul 06, 2016 7:53 am

Re: Toshiba AC Ir arduino Mega

Post by DemoN »

[quote="AnalysIR"]I imported the first of your signals into AnalysIr and it is indeed recognised a a valid Toshiba AC signal, as below. I have also cleaned the signal for you with AnalysIR.

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : TOSHIBA_80_96_144_160AC :  : F20D03FC0120670046F20D03FC0120670046 : 144 : 0
Note: Be sure to use the correct Carrier frequency, for each individual signal, as(or if) indicated above
*/
And why the carrier frequency was't recognized by AnalysIR?
I've the same situation. Signal from my AC detected as TOSHIBA_80_96_144_160AC but frequency is 0.
Haw to correct this?
DemoN
Posts: 2
Joined: Wed Jul 06, 2016 7:53 am

Re: Toshiba AC Ir arduino Mega

Post by DemoN »

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : TOSHIBA_80_96_144_160AC :  : F20D03FC0120670046F20D03FC0120670046 : 144 : 0
Note: Be sure to use the correct Carrier frequency, for each individual signal, as(or if) indicated above
*/

Why the carrier frequency wasn't recognized by AnalysIR?
I've the same situation. Signal from my AC recognized as TOSHIBA_80_96_144_160AC but carrier frequency 0.
How to correct this?
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: Toshiba AC Ir arduino Mega

Post by AnalysIR »

@DemoN

It really depends on what you are using to source IR signals for AnalysIR.

To get the carrier frequency recorded, you need to use 2 IR receivers. The IR Learner measures the carrier frequency.
(We have IR component kits available in our online shop or we also have some A.IR Shield 'eval' units available now that are plug and play with AnalysIR for this purpose and more)

However, all you need to do is set the carrier frequency to 38000 (or 38 in the generated code) and you should be fine.
You can also set the freq to any value in the History context menu (right-click).

If you need more info, just post more details about your set-up.
bahaman
Posts: 1
Joined: Tue Dec 29, 2020 8:55 am

Re: Toshiba AC Ir arduino Mega

Post by bahaman »

I know this is an old post but.. would it be possible for you @ivanchob to scan some more of the codes? I would really like to have the codes for 26deg,no swing, fan speed 3 and 5, and maybe with low power mode and normal power mode
Thanks in advance!
Post Reply