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

Arduino WiFi Control with ESP8266 Module



Version Arduino UNO




Version Arduino MEGA + LCD Display

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


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




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/

วันพุธที่ 31 ธันวาคม พ.ศ. 2557

Arduino USB control Smart Home




(  Test to Control LED Strips )



Arduino USB control Smart Home
with Arduino Firmata

System Diagram



Hardware
1. Arduino Board or compatible Board.
2. Relay Board
3. USB-OTG Cable ( Female A to Micro A )
4. USB Cable ( A to B Male/Male )

Wiring Diagram

Arduino Pin 22 to Relay CH.1
Arduino Pin 23 to Relay CH.2
Arduino Pin 24 to Relay CH.3
Arduino Pin 25 to Relay CH.4
Arduino Pin 26 to Relay CH.5
Arduino Pin 27 to Relay CH.6
Arduino Pin 28 to Relay CH.7
Arduino Pin 29 to Relay CH.8

You can change Arduino Pin by Setting Arduino Pin


 

Software

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.control.firmata



 










Smart Home Automation Model 



Android USB Firmata Sample Code


My Blog







Raspberry Pi Project



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

วันอาทิตย์ที่ 28 กันยายน พ.ศ. 2557

Raspberry Pi Smart Home Control




New Version Test  ( 15 Jan 2015 )


Raspberry Pi  - Smart Home Control ระบบควบคุมบ้านอัฉริยะ
Make Smart Home Automation and Control  Devices with Raspberry Pi Board and Arduino Board.
Control on Web Browser.


System Diagram





















Hardware Devices
1.Raspberry Pi Board  + OpenWRT Boot Loader SD Card
2.Arduino UNO Board or Compatible Board
3.Relay Board
and WiFi Router with LAN Cable ,Power Supply for Raspberry Pi and Arduino Board



Wiring Diagram
Raspberry Pi Board connect to Arduino Board with Serial Communication TTL UART Port ( Rx , Tx )
If your Arduino Board use 5 Volt Supply must need level converter to Raspberry Pi Board ( Raspberry Pi board use 3 V. )
But Arduino Board use 3.3 V so, don't need use level converter.
Use Arduino Pin 0,1

Level converter use Resistor 270 ohm and 470 ohm ( 2.7K and 4.7K )


Level converter use Level Converter Module


Arduino Board to Relay Board use Digital output pin 2 - 9
But your change to other pin you want.

Software
1. OpenWRT embedded Software to create Web Server.
2. Python
3. JavaScript
4.Arduino - Python Command API by thearn ( For Arduino Board )


Raspberry Pi Web Server



Responsive Web Design



Arduino Output Pin Setting on Web Server
and Change Device Name.




Open WRT Admin