วันพุธที่ 13 พฤษภาคม พ.ศ. 2558

Arduino WiFi Control with ESP8266 Module



Version Arduino UNO




Version Arduino MEGA + LCD Display

Arduino WiFi Control with ESP8266 WiFi Module
This Arduino Project you can control 4 channel relay outputs via WiFi with ESP8266 WiFi Module.
This Project is a basic Internet of Things.(IoT)


Now,We've upgrade to use only ESP8266 Module only.
Pls. see this
http://androidcontrol.blogspot.com/2016/05/esp8266-wifi-control-relay.html


System Diagram
Hardware
1.Arduino Board or compatible board
2.ESP8266 WiFi Module
3.Relay Board.
4.Logic Converter ( We use Resistor 4.7K and 2.7 K )

Option 
  • Regulator
  • LCD Display


Wiring Diagram

For Arduino MEGA

ESP8266 pin CH_PD to 3.3V

Arduino Pin19  ( RX1 )  to ESP8266 pin UTXD
Arduino Pin18  ( TX1 )  to ESP8266 pin URXD


Relay Board Wiring
Arduino Pin 22 to Relay 1
Arduino Pin 23 to Relay 2
Arduino Pin 23 to Relay 3
Arduino Pin 24 to Relay 4



For Arduino UNO

ESP8266 pin CH_PD to 3.3V

Arduino Pin10  ( RX1 )  to ESP8266 pin UTXD
Arduino Pin11  ( TX1 )  to ESP8266 pin URXD

Arduino Pin 2 to Relay 1
Arduino Pin 3 to Relay 2
Arduino Pin 4 to Relay 3
Arduino Pin 5 to Relay 4


Development Kit Prototype




Arduino Development Kits on ebay
http://www.ebay.com/sch/marychanyanuch2012/m.html?




ESP8266 Wifi Module Test with AT-Command


WiFi Module ESP8266 AT-Command Test
http://microcontrollerkits.blogspot.com/2015/02/wifi-module-esp8266-at-command-test.html




WiFi Module ESP8266 AT-Command Make WebServer
http://microcontrollerkits.blogspot.com/2015/03/arduino-esp8266-wifi-web-server.html




Software


Arduino Code 

For Arduino MEGA ( 4 channel with 16x2 LCD Display )

http://softpowergroup.net/files/Arduino/ArduinoMegaCode.zip


For Arduino UNO ( only 2 Relay channel )
http://softpowergroup.net/files/Arduino/ArduinoUNO.zip


Android App on Google Play  







App Manual
Open App
If your android device connect to WiFi Network already. It show "Your SSID"
Then Connect



For First Connect
Must input your Arduino Esp8266 wifi IP Address ( xxx.xxx.x.xxx ) and Port is 80


Then Connect to IP Address






Connect OK ,Ready to Control your device.




Change your Device Name
you can press option each channel to change device nmae.






Change Device Name then Save

Delete Device channel ,set to default and delete your IP address
use Option Menu then setting





My Blog







Raspberry Pi Project



My Website
http://softpowergroup.net/
email : info@softpowergroup.net   Tel .081-6452400
Google+  https://plus.google.com/+SoftpowergroupNetThailand/


วันจันทร์ที่ 4 พฤษภาคม พ.ศ. 2558

Arduino Bluetooth Control Smart Home




Arduino Bluetooth Control Smart Home

with Firmata

This project you can control 8 channel relay outputs via Bluetooth with Android device and Arduino board + Bluetooth Module.

About Arduino code use Firmata Library so, you don't need to write any arduino code just flash to arduino board because Firmata library is built-in in Arduino IDE already.


System Diagram




Hardware
1. Arduino Board or compatible Board.
2. Bluetooth Module ( HC-04,HC-05 or HC-06 )
3. Relay Board

Option
Regulator 5 V. DC 1 A for Relay Module







Wiring Diagram

Arduino Pin 2 to Relay CH.1
Arduino Pin 3 to Relay CH.2
Arduino Pin 4 to Relay CH.3
Arduino Pin 5 to Relay CH.4
Arduino Pin 6 to Relay CH.5
Arduino Pin 7 to Relay CH.6
Arduino Pin 8 to Relay CH.7
Arduino Pin 9 to Relay CH.8


Arduino Pin 0 ( Rx ) to Bluetooth Module Pin
Arduino Pin 1 ( Tx ) to Bluetooth Module Pin

You can change Arduino Pin by Setting Arduino Pin.



Software

Arduino Sketch

Arduino Code use  Firmata Library.

How to program Firmata code to Arduino Board
http://microcontrollerkits.blogspot.com/2014/12/arduino-usb-control-with-firmata.html



Android App on Google Play




Download App on Google Play
https://play.google.com/store/apps/details?id=arduino.bluetooth.control




All My App on Google Play


   Amphan Account


   Digital2u Account





Arduino Bluetooth Control App Manual


1.Bluetooth Setting
you must setting and pairing Bluetooth Module with android device first
when Bluetooth setting is done.Open App and connect to Bluetooth.



2.Change your device name and Arduino Output pin

you can use option menu or setting on each channel.



Use Option Menu to Setting

you can delete some channel ( Set to default  mean set back to 8 channel )





Multi-Screen design




My Blog







Raspberry Pi Project



My Website
http://softpowergroup.net/
email : info@softpowergroup.net   Tel .081-6452400
Google+  https://plus.google.com/+SoftpowergroupNetThailand/