Table of Contents
Start: of Posts Show

Home Automation with Raspberry Pi, Programmable Logic Controller (PLC), Android and Wireless

My home automation with raspberry pi for lamp control in the room and outdoor my home. Automation control, especially to lamp control using android phone via wireless. Wireless on android phone connect to router wireless. The router must have a LAN (RJ45) and Wireless. LAN on router connect to raspberry pi via RJ45 cable. And for communication between raspberry pi and PLC using RS232. The function of PLC to turn on or turn off the lamp in my home.
This video about my home automation for lamp control in my room with raspberry pi, PLC and android phone.

1. Hardware required for home automation, especially to lamp control
My Home Automation with Raspberry Pi, PLC and Wireless LAN Router
My Home Automation with Raspberry Pi, PLC and Wireless LAN Router

Hardware of Home Automation with Raspberry Pi
hardware of home automation with raspberry pi

Description of the image above:
1. Raspberry Pi, SD Card, mouse, keyboard, monitor and Adapter.
Note: mouse, keyboard and monitor are only used for the operating system setup
raspberry pi made in china

2. Programmable Logic Controller (PLC) : Siemens S7-200
Programmable Logic Controller PLC Siemens S7-200

3. PLC Cable: RS232-PPI
PLC Cable RS232-PPI

4. UART TTL to RS232 converter module
UART TTL to RS232 converter module with cable

5. RS232 crossover cable
RS232 crossover cable

RS232 crossover cable diagram
RS232 crossover cable diagram

6. Router with RJ45(LAN) and Wireless or Wireless LAN Router
Router with RJ45 LAN and Wireless or Wireless LAN Router

7. RJ45 Cable
RJ45 Cable

8. Adapter for Raspberry Pi and Router
Adapter for Raspberry Pi and Router

2. Step by step to make home automation to lamp control in home
2.A. Preparation and setup in the raspberry pi
1. Download Raspbian (Debian Wheezy):
2. Download Win32DiskImager: click here
3. Insert sd card into computer with Windows OS
4. Run Win32DiskImager
5. Write Raspbian OS to sd card using Win32DiskImager
6. After write raspbian to sd card, take the sd card and insert it into the raspberry pi (turn off the electrical power)
7. Connect a mouse, keyboard and monitor to the raspberry pi.
8. Raspberry Pi should not be connected to the serial module.
9. Turn on the adapter to the raspberry pi. LOGIN: pi ,PASSWORD: raspberry , USE: startx

10. After Raspberry Pi ready to use with Raspbian OS/Wheezy OS, download project file.
11. Download project file: click here and Save to Flash disk
Download file and Save to Flash disk

12. After download file in flash disk and Insert Flash disk into USB of Raspberry Pi.
13. Copy-Paste all project file to Raspberry Pi in folder: /home/pi

14. Look at this video for Auto Login on Raspberry Pi, Install PySerial on Raspberry Pi, Setup RS232 or UART pins on Raspberry Pi and Auto Run Python Script on Raspberry Pi.

15. Next:
15.1. Logout and shut off the power to the Raspberry Pi
15.2. Connect raspberry pi to serial/rs232 module, and LAN Router with RJ45
15.3. Unplug mouse, keyboard and monitor cables from the Raspberry Pi

3. Wiring and Connection between Raspberry Pi to Programmable Logic Controller (PLC)
3.A. Connect Raspberry Pi to LAN Router with RJ45 Cable
3.B. Connect Raspberry Pi to Serial/RS232 Module
3.C. Connect Serial/RS232 Module to Programmable Logic Controller (PLC) with RS232 crossover cable and PLC Cable
raspberry pi to serial rs232 module and programmable logic controller plc

3.D. Connecting of Programmable Logic Controller (PLC) to Lamp in Home
Programmable Logic Controller PLC to Lamp in Home

4. Install Android Apps
Download APK File and Install to Android Phone, click here
How to use LampOnOff Android Apps:
1. Click LampOnOff
2. Edit IP Target: Ip address for raspberry pi
3. Edit Port Target to 5000
4. Click Connect, waiting until show: Lamp Num or Disconnect Button
5. Click screen for Lamp On or Lamp Off.
Lamp On Off Android Apps

More information about communication between android and computer

5. Communication Test without Lamp in home, just light in PLC

Hopefully this article can add your insights.
Please follow me:

Share on Facebook Tweet this Share to Google Plus Stumble this article

Enter Your Email Address

All Labels

  1. ABB PLC
  2. Allen Bradley PLC
  3. Analog Input
  4. Android
  5. Android and PLC
  6. Android Bluetooth
  7. Audio and PLC
  8. Automatic Gates using PLC
  9. Baldor PLC
  10. Battery Level Indicator using PLC Analog
  11. BMS
  12. Building Management System
  13. Car Ticketing Machine using PLC
  15. Click Series PLC
  16. Computer Vision
  17. Computer Vision and PLC
  18. Control Seven Segment Display with PLC
  19. Conveyor Control Using PLC
  20. CPU PLC
  21. CV and PLC
  22. CX-One
  23. DCS
  24. DDC
  25. DELMIA V5
  26. DeltaV
  27. Digital Input
  28. DirectLogic PLC
  29. DirectSOFT PLC
  30. Eaton PLC
  31. Elevator with PLC Program
  33. Fatek PLC
  34. Festo PLC
  35. Fieldbus
  36. Forex Trading and PLC
  37. FPGA PLC
  38. GE Fanuc PLC
  39. GP proface
  40. GX Developer
  41. Heater Controller with PLC
  42. Hitachi PLC
  43. HMI
  44. Home Automation
  45. Honeywell PLC
  46. IDEC PLC
  47. Keyence PLC
  48. Koyo PLC
  49. LED Display
  50. LG PLC
  51. Lock Unlock Door Using PLC
  52. Logixpro PLC
  53. Maple OIT
  54. Matsushita PLC
  55. MELSEC A
  56. MELSEC Q
  57. Memory PLC
  58. Micro PLC
  59. MicroSmart PLC
  60. Mitsubishi PLC
  61. Mobile Application
  62. Modbus
  63. Modicon PLC
  64. Momentum PLC
  65. Motion Control
  66. National Instruments PLC
  67. Omron PLC
  68. OPC
  69. PAC
  70. Panasonic PLC
  71. Parking Information using PLC
  72. Password Using PLC
  73. PLC
  74. PLC Analog Input Module
  75. PLC and Arduino
  76. PLC and CNC
  77. PLC and Computer
  78. PLC and Facebook
  79. PLC and PC
  80. PLC and Servo
  81. PLC and Visual Basic
  82. PLC Battery
  83. PLC Beginner Guide
  84. PLC Book
  85. PLC Cable
  86. PLC Codesys
  87. PLC Companies List
  88. PLC Computers
  89. PLC Design
  90. PLC for 3 Movement
  91. PLC for Assembly Line
  92. PLC for Automatic Welding
  93. PLC for Binding Machine
  94. PLC for Cutting Machine
  95. PLC for Filling Machine
  96. PLC for Fountain Application
  97. PLC for Injection Molding
  98. PLC for Marking
  99. PLC for Packing
  100. PLC for Rotary Bottle Washing
  101. PLC for Snack Vending Machine
  102. PLC for Sorter Machine
  103. PLC for Water Treatment
  104. PLC Hardware
  105. PLC Hybrid
  106. PLC Information
  107. PLC Knowledge
  108. PLC Language
  109. PLC Link Model
  110. PLC Mitsubishi Download
  111. PLC Model
  112. PLC Modules
  113. PLC Simulator
  114. PLC Software
  115. PLC Supplier
  116. PLC Types
  117. PLC Wiring
  118. PLC WorkShop
  120. PLCSIM
  121. Power Supply for PLC
  122. Profibus
  123. ProSafe PLC
  124. Push ON Push OFF with PLC
  125. Quickpanel Operator Interfaces
  126. Raspberry Pi
  127. Raspberry Pi and PLC
  128. RTU
  129. RTU and PLC
  130. SAS
  131. SCADA
  132. Schneider PLC
  133. SHARP PLC
  134. Siemens PLC
  136. Small Modular PLC
  137. Standard Sequence Programming for PLC
  138. Substation Automation System
  139. Teco PLC
  140. Telemetry
  141. TEP PLC
  142. Texas Instruments PLC
  143. Timer Countdown with PLC
  144. Toshiba PLC
  145. Touch Screen PLC
  146. Traffic Light with PLC
  147. TWIDO PLC
  148. Types of PLC
  149. Unitary PLC
  150. Unitronics PLC
  151. VIPA PLC
  152. Vision PLC
  153. Weighing Machine Using PLC
  154. Yokogawa PLC
  155. Zelio PLC

Search This Blog

Copyright © 2009- All Rights Reserved