Difference between revisions of "Infrared Shield for Arduino"

From LinkSprite Playgound
Jump to: navigation, search
(Created page with "== Introduction == == Features == == Application Ideas == == Cautions == == Schematic == == Specification == == Pin definition and Rating ...")
 
(Introduction)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
== Introduction  ==
 
== Introduction  ==
 +
This shield adds a pair of infrared transmitter and receiver to your Arduino. The spare area can also be used as breadboard.  Interesting sample project is WiFi TV remote control using Android smartphone. All source codes are provided.
  
 
+
[[File:DSCF5566.JPG|640px]]
 
 
 
 
  
 
== Features  ==
 
== Features  ==
Line 24: Line 23:
  
 
== Schematic  ==
 
== Schematic  ==
 +
*[https://s3.amazonaws.com/linksprite/Shields/IR_shield/IRshieldSCH.pdf Schematic]
 +
 +
== Specification  ==
 +
 +
 +
 +
 +
 +
== Pin definition and Rating  ==
 +
 +
  
  
  
 +
== Mechanic Dimensions  ==
  
  
== Specification  ==
 
  
  
  
 +
== Usage  ==
 +
In this tutorial, we are going to make a WiFi TV remote control using LinkSprite Infrared Shield and LinkSprite Juniper Gainspan WiFi shield.  We also design an Android app so that you can control your TV using your Android smartphone without the need of the remote control.
  
 +
Stop fighting for the remote control. Now everybody in the house has a remote control!
  
== Pin definition and Rating ==
+
=== Steps ===
 +
The Arduino code for infrared and gainspan can be downloaded from here.
  
 +
Download Android source code for WiFi TV Remote Control here.
  
 +
'''Step 1:''' First, we need to configure the Juniper wifi shield. When use AT command to configure the Juniper WiFi shield, remove ATMEGA328P on the Arduino, short J4 (Pi1) and J5 (p2), Short J4 (pin2) and J5 (pin1), then connect the Arduino with Juniper installed to PC.
  
 +
[[File:tutorialsch.jpg]]
  
 +
Using serial terminal console on PC, the configuration steps are as follows:
  
== Mechanic Dimensions  ==
+
*AT        --- Detect if module is connected to the virtual COM, and if the module can receive the AT commands from the host
 +
[OK]        --- The response from the module.
  
  
 +
*AT+WD  -- Disconnect from the current network
  
 +
[OK]
  
  
== Usage  ==
+
*AT+NDHCP=0    --- Not use DHCP
  
 +
[OK]
  
  
 +
*AT+NSET=192.168.1.2,255.255.255.0,192.168.1.1  --- Set fixed IP, network mask, gateway
  
 +
[OK]
  
=== Hardware Installation  ===
 
  
 +
*AT+WAUTO=0,LS,,01      ------ Set mode "STA", connect to SSID "LS" and use channel -1
  
 +
[OK]
 +
  
 +
*AT+NAUTO=1,1,,2000-    -- Set TCP(1) server, and port is 2000
  
 +
[OK]
  
=== Programming  ===
 
  
 +
*ATC1  -- Automatically reconnect after reset
  
 +
[OK]
  
 +
 +
*AT&W0  -- Automatically save
  
 +
[OK]
  
== FAQ ==
+
   
Please list your question here:
+
*ATA      -- Automatically connect to IP SubNet Gateway 192.168.1.2: 255.255.255.0: 192.168.1.1
  
== Support  ==
+
[OK]
  
If you have questions or other better design ideas, you can go to our [http://www.linksprite.com/forum/index.php forum] to discuss or creat a ticket for your issue at [http://www.linksprite.com/support/ linksprite support].
+
 +
'''Step 2:''' Remove Juniper, Download IRSend code to Arduino, and then reinstall Juniper to Arduino, set the Juniper to talk to ATMEGA328 through UART. The setting is as follows:
  
== Resources  ==
+
J4(pin1) is connected to J4(pin2), J5(pin1) is connected to J5 (pin2).
  
 +
'''Step 3:''' Install TV remote control.apk to Android smartphone, path:'''\IR\TV remote control\bin'''
  
 +
[[File:tutorial1.jpg]]
  
 +
Input ip and port and click button.
  
 +
[[File:tutorial2.jpg]]
  
== How to buy ==
+
== FAQ ==
 +
Please list your question here:
  
 +
== Support  ==
  
 +
If you have questions or other better design ideas, you can go to our [http://www.linksprite.com/forum/index.php forum] to discuss or creat a ticket for your issue at [http://www.linksprite.com/support/ linksprite support].
  
 +
== Resources  ==
 +
*[https://s3.amazonaws.com/linksprite/Shields/IR_shield/Android+source+code.zip Andriod source code]
 +
*[https://s3.amazonaws.com/linksprite/Shields/IR_shield/IRCODE.rar Sample Code]
  
 +
== How to buy  ==
 +
Here to buy Infrared Shield for Arduino on [http://store.linksprite.com/linksprite-infrared-shield-for-arduino/ store]
  
 
== See Also  ==
 
== See Also  ==

Latest revision as of 05:39, 22 March 2016

Introduction

This shield adds a pair of infrared transmitter and receiver to your Arduino. The spare area can also be used as breadboard. Interesting sample project is WiFi TV remote control using Android smartphone. All source codes are provided.

DSCF5566.JPG

Features

Application Ideas

Cautions

Schematic

Specification

Pin definition and Rating

Mechanic Dimensions

Usage

In this tutorial, we are going to make a WiFi TV remote control using LinkSprite Infrared Shield and LinkSprite Juniper Gainspan WiFi shield. We also design an Android app so that you can control your TV using your Android smartphone without the need of the remote control.

Stop fighting for the remote control. Now everybody in the house has a remote control!

Steps

The Arduino code for infrared and gainspan can be downloaded from here.

Download Android source code for WiFi TV Remote Control here.

Step 1: First, we need to configure the Juniper wifi shield. When use AT command to configure the Juniper WiFi shield, remove ATMEGA328P on the Arduino, short J4 (Pi1) and J5 (p2), Short J4 (pin2) and J5 (pin1), then connect the Arduino with Juniper installed to PC.

Tutorialsch.jpg

Using serial terminal console on PC, the configuration steps are as follows:

  • AT --- Detect if module is connected to the virtual COM, and if the module can receive the AT commands from the host

[OK] --- The response from the module.


  • AT+WD -- Disconnect from the current network

[OK]


  • AT+NDHCP=0 --- Not use DHCP

[OK]


  • AT+NSET=192.168.1.2,255.255.255.0,192.168.1.1 --- Set fixed IP, network mask, gateway

[OK]


  • AT+WAUTO=0,LS,,01 ------ Set mode "STA", connect to SSID "LS" and use channel -1

[OK]


  • AT+NAUTO=1,1,,2000- -- Set TCP(1) server, and port is 2000

[OK]


  • ATC1 -- Automatically reconnect after reset

[OK]


  • AT&W0 -- Automatically save

[OK]


  • ATA -- Automatically connect to IP SubNet Gateway 192.168.1.2: 255.255.255.0: 192.168.1.1

[OK]


Step 2: Remove Juniper, Download IRSend code to Arduino, and then reinstall Juniper to Arduino, set the Juniper to talk to ATMEGA328 through UART. The setting is as follows:

J4(pin1) is connected to J4(pin2), J5(pin1) is connected to J5 (pin2).

Step 3: Install TV remote control.apk to Android smartphone, path:\IR\TV remote control\bin

Tutorial1.jpg

Input ip and port and click button.

Tutorial2.jpg

FAQ

Please list your question here:

Support

If you have questions or other better design ideas, you can go to our forum to discuss or creat a ticket for your issue at linksprite support.

Resources

How to buy

Here to buy Infrared Shield for Arduino on store

See Also

Other related products and resources.

Licensing

This documentation is licensed under the Creative Commons Attribution-ShareAlike License 3.0 Source code and libraries are licensed under GPL/LGPL, see source code files for details.