แสดงบทความที่มีป้ายกำกับ esp8266 wifi แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ esp8266 wifi แสดงบทความทั้งหมด

วันพฤหัสบดีที่ 5 พฤษภาคม พ.ศ. 2559

ESP8266 WiFi Control Relay


ESP8266 WiFi Control Relay

This ESP8266 WiFi Module Project you can control 4 channel relay outputs via WiFi Network.

This project upgrade for this one.
http://androidcontrol.blogspot.com/2015/05/arduino-wifi-control-with-esp8266-module.html

System Diagram




Hardware
1.ESP8266 WiFi Module ( or NodeMCU )
2.4 Channel Relay Board. ( Active High )
3.OLED Display




Wiring Diagram



ESP8266 Pin GPIO_14 to Relay 1
ESP8266 Pin GPIO_12 to Relay 2
ESP8266 Pin GPIO_13 to Relay 3
ESP8266 Pin GPIO_15 to Relay 4

Option OLED Display
 ESP8266 Pin GPIO_05  ( SCL )  to  OLED pin SCL
 ESP8266 Pin GPIO_04  ( SDA )  to  OLED pin SDA



ESP8266 Source Code
IDE use Arduino IDE 1.6.8

Source Code on GitHub
https://github.com/amphancm/ESP8266WiFiControl



Android App on Google Play  





App Manual

Open App then click CONNECT

Set your IP Address xxx.xxx.xx.xx from ESP8266 Serial Monitor or OLED Display
and Port ( 80 )


Now, You can control device



Setting 

Change your device name





My Website
email : info@softpowergroup.net  ,amphancm@gmail.com
Tel .+6681-6452400 ( Thailand )

วันอาทิตย์ที่ 24 เมษายน พ.ศ. 2559

Android ESP8266 IoT ThingSpeak Sensor Data Monitor

Android ESP8266 IoT ThingSpeak Sensor Data Monitor

Old Version in  Article Android ESP8266 IoT ThingSpeak Sensor Data Monitor  We have use ESP-01 Module.
In this article we change to use ESP8266 12E Module ( or Node MCU )



System Diagram


Wiring Diagram





My Things




ESP8266 Code
https://github.com/amphancm/ESP8266ThingSpeak




Android IoT ThingSpeak Data Monitor App.



IoT ThingSpeak Data Monitor in Android App.

My Website
email : info@softpowergroup.net   Tel .081-6452400

วันอังคารที่ 6 ตุลาคม พ.ศ. 2558

ESP8266 WiFi SmartConfig with Android App.



ESP8266 WiFi SmartConfig with Android App and Arduino IDE.


What is ESP8266 WiFi SmartConfig?

When you use ESP8266 WiFi Module connect your network or Internet. You must fill SSID and password for your network to ESP8266 Code. SmartConfig help you to do that automatically.

System Diagram



smart config APIs

Herein we only introduce smart-config APIs,users can inquire Espressif Systems for smart-config documentation which will contain more details. Please make sure the target AP is enabled before enable smart-config.

1. smartconfig_start

Function: Start smart configuration mode, to connect ESP8266 station to AP, by sniffing for special packets from the air, containing SSID and password of desired AP. You need to broadcast the SSID and password (e.g. from mobile device or computer) with the SSID and password encoded.
Note:
  1. This api can only be called in station mode.
  2. During smart-config,ESP8266 station and soft-AP are disabled.
  3. Can not call smartconfig_start twice before it finish,please call smartconfig_stop first.
  4. Don’t call any other APIs during smart-config, please call smartconfig_stop first.

2. smartconfig_stop

Function: stop smart config, free the buffer taken by smartconfig_start.
Note:
Whether connect to AP succeed or not, this API should be called to free memory taken by smartconfig_start.

Prototype: bool smartconfig_stop(void)
Parameter: null
Return:
true: succeed
false: fail











ESP8266 WiFi SmartConfig Source Code ( Arduino IDE )

https://github.com/sandeepmistry/esp8266-Arduino/blob/master/esp8266com/esp8266/libraries/ESP8266WiFi/examples/WiFiSmartConfig/WiFiSmartConfig.ino













Android App Source Code