Show Posts
Pages: [1] 2 3 ... 12
1  Topics / Home Automation and Networked Objects / Re: Using Pronto hex .CCF discrete codes in arduino on: July 20, 2013, 01:47:47 am
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.

2  Topics / Home Automation and Networked Objects / Re: Arduino and Samsung A/C IR codes. on: July 19, 2013, 01:47:34 am
I decode my universal remote control for air contitioners and for Samsung A/C Code 610

Command: Power On  Mode: Cool   Fan: Auto Temp: 24 deg celcius

Frequency: Maybe 38KHz

Header : 3140,8800 usecs  ON PWM , wait( off )

Bit 1: 640,1320 usecs
Bit 0: 640,380 usecs

final : 640,20000usecs

1000 0000  0100 1000  1111 0101
1000 0001  1000 0001  1000 1000
0000 1111

7x8bits = 56 bits IR pulses code

Also I decode my universal remote control for air contitioners and for LG A/C Code 600

NEC protocol

Command: Power On  Mode: Cool   Fan: Auto Temp: 24 deg celcius

                1000 1000 0000 0000 1001 0101 1110

Power Off: 1000 1000 1100 0000 0000 0101 0001

Anyone to confirm them IR codes?
Hardware: You need arduino board and an IR led ( you can find from an old remote ).
Software: http://learn.adafruit.com/ir-sensor/overview
               http://www.righto.com/2009/08/multi-protocol-infrared-remote-library.html
3  Topics / Home Automation and Networked Objects / Arduino and LG , Samsung A/C IR codes. on: July 18, 2013, 06:23:55 am
Hello arduino friends.I try to find IR codes for Samsung A/C.
I find this https://docs.google.com/spreadsheet/ccc?key=0Aupzmp8AqC8JdGtNOXhUc0R0WC1hbVdRa0p3aDVxdFE#gid=0
What about the header pulses ? Same with TV ? Header for Samsung TV : 4500 -4500 usecs.
Thank you very much.
4  Topics / Home Automation and Networked Objects / Re: Home Automation with android, arduino, bluetooth, IR LED. on: July 01, 2013, 05:21:06 am
Can you tell me the distance between sensor and central arduino?
You can use Arduino + Sensor + Bluetooth module  and Arduino+Bluetooth module central as receiver.
Another way for more range >10 m and cheap is the RF link.
5  Topics / Home Automation and Networked Objects / Re: Solved: LG air conditioning codes on: June 30, 2013, 11:43:43 pm
Hi, I used this code for LG A/C Power On : Header NEC + 10001000 + 0000 0000 + 10100100 + 1110 + final pulse (520,4200usecs)
and it works fine with the LG Air Condition power on but how i switch off ?Not the same....i can't switch off....
Can you share the code for power off and others functions?
I find the code from there....http://irremote.psiloc.com/Show.aspx?d=Air%20Conditioner
Thanks.
6  Topics / Home Automation and Networked Objects / Re: Connecting android phone with arduino through use? on: June 25, 2013, 06:15:33 am
Yes.It is possible with USB shield.You can control the arduino from android.For example you can switch a LED.
7  Topics / Home Automation and Networked Objects / Re: Can i remote control an Android from an Arduino ? on: June 18, 2013, 06:20:04 am
Very nice project,idea to work as secondary security system.
It needs works from android side....arduino side is very easy...
Arduino+Bluetooth module side: IF DIGITAL PIN = HIGH  THEN serial output = "PIR SENSOR ENABLE"
Arduino sends over bluetooth the message to Android.
Android receive the message over bluetooth and "wake up".
Android captures photo from door side and send it to administrator user (You) as email...
I think you must root the android device for this function...
Your project is a mix from all my arduino + android applications....
A cheap and easy way is this http://www.power7.net/GSM_tutorial.html or GSM shield.
Or you need my oppossite of IO SMS Bluetooth - SMS REMOTE CONTROL android application is inside to my website.
When you receive the sms or call from your door system you can access your door side Android (root) device and open the Camera,Flash LED ( night ),Skype,anything....
with Remote Android application or similar....from your smartphone ( administrator ).
I think is the time to create an android application for this case...IO Bluetooth to SMS or CALL to administrator...
For MMS or Email it needs root smartphone...not permission for this function normally without user.
Thanks.
8  Topics / Home Automation and Networked Objects / Re: Can i remote control an Android from an Arduino ? on: June 18, 2013, 02:27:16 am
Hello arduino and android friend.
Yes it is possible....for example in this application https://play.google.com/store/apps/details?id=arduino.bluetooth.terminal
arduino sends back data to android over bluetooth....( for example temperature ).I can create for you a specific application about your project.
For example when digital pin is HIGH send this information to android device and the screen change the color...or play something...
I do not understand what would make the arduino? It would open the door electromagnetic ?
Android door side sends over wifi the camera capture to another android inside your home or to TV monitor?
9  Topics / Home Automation and Networked Objects / Re: Starting a Home Automation Business with Arduino on: June 11, 2013, 09:48:44 am
Power button ON/OFF   20DF10EF  same code for on and off.

Inside my sketch Blue_Remote_Control_V1_0.pde you must write...

irsend.sendNEC(0x20DF10EF,32); //SEND IR PULSES LG TV POWER
delay(100);

For example

if ( readString.indexOf("TVON")>0)
              {
                
                irsend.sendNEC(0x20DF10EF,32);//SEND LG TV POWER
                delay(100);
      
              }

10  Topics / Home Automation and Networked Objects / Re: IR control over network on: June 11, 2013, 04:48:31 am
Hello arduino friend.You can look my project with Arduino+Ethernet card+IR LED there http://www.power7.net/arduinoethernet.html .I can control my A/C via internet.
11  Topics / Home Automation and Networked Objects / Re: Universal Alarm System. Need Help on: June 07, 2013, 05:20:22 am
Hello,I have a similar project there http://www.power7.net/GSM_tutorial.html
You can modify it to sends SMS or call to administrator number( without cost ) when digitalRead(pinAlarmSensor) == HIGH from an Alarm sensor.....
12  Topics / Home Automation and Networked Objects / Re: Starting a Home Automation Business with Arduino on: June 06, 2013, 02:23:22 am
Hello, look this sketch http://www.power7.net/apk_file/Blue_Remote_Control_V1_0.pde
Home Automation with Android,Arduino,Bluetooth module and IR LED.
My app is there https://play.google.com/store/apps/details?id=power.remote.control
Also i have and other projects to control arduino via WiFi,Cloud,SMS.
13  Topics / Home Automation and Networked Objects / Re: Help needed to understand and make an IR Remote. on: June 02, 2013, 02:39:26 pm
Nice....Thanks....look....Your pulse is ....
Code:

pulseIR(4450);//On PWM Header
    delayMicroseconds(4450);//Off Header
    pulseIR(550);
    delayMicroseconds(1650); bit 1
    pulseIR(600);
    delayMicroseconds(600); bit 0
    .......


E0E0....is HEX number if you convert to binary is....1110000011100000......
http://www.mathsisfun.com/binary-decimal-hexadecimal-converter.html

If you visit my site i have a project to control IR devices from android via arduino and bluetooth module....
with extra RF module you can expand the range....
14  Topics / Home Automation and Networked Objects / Re: Help needed to understand and make an IR Remote. on: June 02, 2013, 10:15:49 am
Hi, Yes... pulseIR is On pulses PWM....delay() is wait...off...nothing...

Code:
    pulseIR(4450);//On PWM
    delayMicroseconds(4450);//Off
    pulseIR(550);
    delayMicroseconds(1650);
    pulseIR(600);
    delayMicroseconds(1650);
    .......

Reply me if it works....check your IR LED also you must use PWM digital output...
15  Topics / Home Automation and Networked Objects / Re: Help needed to understand and make an IR Remote. on: June 01, 2013, 05:48:16 am
Hi,you test it with IRrecord from Ken Shirriff's IR library? You must connect a button to send back the IR signal...or test it with IRsendDemo....change Sony with NEC protocol  and 32 bit....look my site for Samsung TV example....
Code:
irsend.sendNEC(0xE0E020DF, 32); // Samsung TV power code
without for....loop...
I think the problem is the header pulses.Samsung header is 4450 -4450 ( look your raw ), NEC header is 9000 -4500 in this case you can follow this way.....http://learn.adafruit.com/ir-sensor/reading-ir-commands it definitely works...
but needs more work from user....modify this example...

Code:
   // This sketch will send out a Nikon D50 trigger signal (probably works with most Nikons)
    // See the full tutorial at http://www.ladyada.net/learn/sensors/ir.html
    // this code is public domain, please enjoy!
    int IRledPin = 13; // LED connected to digital pin 13
    // The setup() method runs once, when the sketch starts
    void setup() {
    // initialize the IR digital pin as an output:
    pinMode(IRledPin, OUTPUT);
    Serial.begin(9600);
    }
    void loop()
    {
    Serial.println("Sending IR signal");
    SendNikonCode();
    delay(60*1000); // wait one minute (60 seconds * 1000 milliseconds)
    }
    // This procedure sends a 38KHz pulse to the IRledPin
    // for a certain # of microseconds. We'll use this whenever we need to send codes
    void pulseIR(long microsecs) {
    // we'll count down from the number of microseconds we are told to wait
    cli(); // this turns off any background interrupts
    while (microsecs > 0) {
    // 38 kHz is about 13 microseconds high and 13 microseconds low
    digitalWrite(IRledPin, HIGH); // this takes about 3 microseconds to happen
    delayMicroseconds(10); // hang out for 10 microseconds, you can also change this to 9 if its not working
    digitalWrite(IRledPin, LOW); // this also takes about 3 microseconds
    delayMicroseconds(10); // hang out for 10 microseconds, you can also change this to 9 if its not working
    // so 26 microseconds altogether
    microsecs -= 26;
    }
    sei(); // this turns them back on
    }
    void SendNikonCode() {
    // This is the code for my particular Nikon, for others use the tutorial
    // to 'grab' the proper code from the remote
    pulseIR(2080);
    delay(27);
    pulseIR(440);
    delayMicroseconds(1500);
    pulseIR(460);
    delayMicroseconds(3440);
    pulseIR(480);
    delay(65); // wait 65 milliseconds before sending it again
    pulseIR(2000);
    delay(27);
    pulseIR(440);
    delayMicroseconds(1500);
    pulseIR(460);
    delayMicroseconds(3440);
    pulseIR(480);
    }

My Toshiba TV , header pulses : 9000 4500
Code:
name  Toshiba_CT-9573
   bits           16
   flags SPACE_ENC|CONST_LENGTH
   eps            30
   aeps          100

   header       9107  4413

and works fine with sendNEC command (Ken Shirriff's IR library).....for NEC protocol...
http://www.sbprojects.com/knowledge/ir/nec.php

Another solution is edit/modify the Ken Shirriff's IR library inside NEC protocol header, change it with 4500,4500...or make new protocol Samsung protocol....to help and others users...
Pages: [1] 2 3 ... 12