วันอาทิตย์ที่ 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

วันเสาร์ที่ 23 เมษายน พ.ศ. 2559

Android Arduino Bluetooth Control LEDs


Android Arduino Bluetooth Control LEDs

Arduino Project which you want to control LED with Android device via Bluetooth, then this application for education and Fun!
App control 8 LEDs on the Arduino board via Bluetooth connection.
Bluetooth on Android device needs to be enable.


The Application Features


- Control 8 LEDs. ( with Bluetooth connection )

- Edit scene or pattern of LED and save to database

- One time / Loop Running

- Free Version with Ad.

Hardware

1. Arduino UNO Board or Compatible Board
2. Serial Bluetooth Module. ( HC-06 )
3. LED with Resistor 300 - 1K ohm x 8


Arduino Code and Wiring Diagram



Android App on Google Play  





App Manual

Pairing Bluetooth Module First
Settings => Bluetooth 


Search Your Bluetooth Device
Found Bluetooth Module Model HC-06



Pairing Bluetooth Device PIN 1234


Pairing OK then Close Settings and Open App



Open App then Connect Bluetooth





Bluetooth Connected OK


So, You can RUN One Time or LOOP  



EDIT Scene or pattern 



Option Menu





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

วันพุธที่ 13 เมษายน พ.ศ. 2559

Android Control BLE Bluetooth Low Energy with MI Band

Android Control MI Band 

BLE Bluetooth Low Energy Device ) 

Xiao Mi Band is BLE Bluetooth Low Energy Device.We Test Android SDK for communicate and control with MI Band.

We test with MI Band version 1 only. ( This version has not heart rate sensor yet )

Original Code form /miband-sdk-android
https://github.com/pangliang/miband-sdk-android



What is BLE Bluetooth Low Energy ?






Andriod App on Google Play


 https://play.google.com/store/apps/details?id=ble.sdk.miband








สอน Android รับเขียนโปรแกรม


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


วันเสาร์ที่ 6 มิถุนายน พ.ศ. 2558

Android and Arduino IoT Control Devices with ThingSpeak


Android Arduino IoT Control Devices with ThingSpeak.com

Arduino Board  ESP8266 WiFi Module and Android devices make Internet of Things Application to control devices with Thingspeak.com. 
System Diagram



Hardware 
  1. Arduino Board or compatible board
  2. ESP8266 WiFi Module ( ESP-01 ) with Flash New Firmware.
  3. Relay Board.
Option 
Regulator Power Supply for Relay Board.



Wiring Diagram , Arduino Code 


Please link to...
Arduino and ESP8266 Control Devices with ThingSpeak.com
http://microcontrollerkits.blogspot.com/2015/05/arduino-esp8266-iot-control-thingspeak.html






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




ThingSpeak API


Test Command ThingSpeak API

For Control Devices
http://api.thingspeak.com/update?key=xxxxxxxxxxxxxxxx&fieldxx=xx

Example Device 1 ON
http://api.thingspeak.com/update?key=1234567890ABCDEF&field1=1.0


Example Device 1 OFF
http://api.thingspeak.com/update?key=1234567890ABCDEF&field1=0.1


Check Update Status
Last data
http://api.thingspeak.com/channels/xxxxx/fields/x/last

xxxxx = Channel Id 
x = field 



Andriod App on Google Play









สอน Android รับเขียนโปรแกรม


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

วันจันทร์ที่ 1 มิถุนายน พ.ศ. 2558

Android IoT ThingSpeak Sensor Data Monitor


 
Android IoT ThingSpeak Sensor Data Monitor

A major component of or rather the very concept, Internet of Things, is about how to connect various devices to the network so that they can both send data and receive commands. Various technologies to address the last mile connectivity, such as Bluetooth, WiFi, NFC, etc... already exist, but most of these are complicated to deploy and often need additional hardware such as a local control server or appliance.

What is ThingSpeak?
ThingSpeak is an open source “Internet of Things” application and API to store and retrieve data from things using HTTP over the Internet or via a Local Area Network. With ThingSpeak, you can create sensor logging applications, location tracking applications, and a social network of things with status updates.

NEW Version



System Diagram


Your Things
Things is the objects or embedded system or electronics sensors or devices and  connectivity to enable it to achieve greater value and service by exchanging data with the manufacturer, operator and/or other connected devices.
Each thing is uniquely identifiable through its embedded computing system.

but is able to interoperate within the existing Internet infrastructure.

Arduino



My Things


Arduino ESP8266 Sent Sensor data to IoT ThingSpeak 
http://microcontrollerkits.blogspot.com/2015/05/arduino-esp8266-sensor-IoT-Thingspeak.html




Android IoT ThingSpeak Data Monitor App.



IoT ThingSpeak Data Monitor in Android App.

วันพุธที่ 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)


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/