[vc_row][vc_column width=”1/1″][vc_column_text]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![/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_column_text]
[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_column_text]The Arduino code for infrared and gainspan can be downloaded from here.Download Android source code for WiFi TV Remote Control here.[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_column_text]There are three steps are as follows:[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Step 1″ tab_id=”1393293788-1-34″][vc_column_text]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.
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][/vc_column_text][/vc_tab][vc_tab title=”Step 2″ tab_id=”1393293788-2-45″][vc_column_text]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).[/vc_column_text][/vc_tab][vc_tab title=”Step 3″ tab_id=”1393294285219-2-8″][vc_column_text]Step 3: Install TV remote control.apk to Android smartphone, path: \IR\TV remote control\bin
Input ip and port and click button.
[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.