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










วันอาทิตย์ที่ 3 สิงหาคม พ.ศ. 2557

Arduino Smart Home Automation






Arduino Smart Home Automation

Open Source Arduino Smart Home Automation


System Diagram



Hardware Feature
  •         8 Digital Output Control
  •         4 Analog Input Sensor
  •         Control via TCP/IP or Internet
  •         Control with Web Browser or Android App


Software Feature
  •          Arduino Web Server TCP/IP ( LAN )
  •          Set your device name and sensor name
  •          Sensor Control Output Automatically.
  •          Set your IP Address and port
  •         Real time status
Hardware Device
  1.        Arduino MEGA Board or compatible board.
  2.      Ethernet (WIZnet 5100) Shield
  3.      Relay Board
  4.      Light Sensor or Motion Sensor or other


Wiring Diagram


Device1  Arduino Output PIN 2
Device2  Arduino Output PIN 3
Device3  Arduino Output PIN 4
Device4  Arduino Output PIN 5
Device5  Arduino Output PIN 6
Device6  Arduino Output PIN 7
Device7  Arduino Output PIN 8
Device8  Arduino Output PIN 9

Analog Input Sensor1   -  Arduino PIN A0  to Control Output 5
Analog Input Sensor2   -  Arduino PIN A1  to Control Output 6
Analog Input Sensor3   -  Arduino PIN A2  to Control Output 7
Analog Input Sensor4   -  Arduino PIN A3  to Control Output 8



Control With Web Browser
If you don’t want use android app. You can control with Web Browser also.


or Web Browser on Mobile Device.




Arduino WebServer Source Code



Mirror Site : http://android-arduinocontrol.blogspot.com/2014/08/android-arduino-smart-home-automation.html



Install and Testing in Home





Some Problem about IP Address
I use TP-Link Wireless Router so it give gateway  to 192.168.0.1 

Then I use IP Address for Arduino Code to 192.168.0.199 


IF YOUR GATEWAY NOT THE SAME MY GATEWAY.

YOU NEED CHANGE YOUR ARDUINO CODE For IP ADDRESS.

see below...


#include <SPI.h>
#include <Ethernet.h>

// Define measurement variables
float amplitude_current;
float effective_value;
float effective_voltage = 230; // Set voltage to 230V (Europe) or 110V (US)
float effective_power;
float zero_sensor;

// Variables to be exposed to the API
int power;

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x2D };

byte gateway[] = { 192, 168, 0, 1 };              //   Your Gateway          
byte subnet[] = { 255, 255, 255, 0 }; //             
IPAddress  ip(192,168,0,199);                       // Your IP Address 




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

My Blog







Raspberry Pi Project

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

Arduino Control RGB LEDs via Bluetooth




Diagram



Arduino Control RGB LEDs via Bluetooth.
( ควบคุม หลอดไฟ RGB LEDs ด้วย Android + Arduino + Bluetooth )



This App need connect to Arduino Board then control RGB LEDs via Bluetooth Connection.
Use Android Bluetooth to control. Then need enable Bluetooth setting.

The Application Features

  •          Control Color for RGB LEDs. ( via Bluetooth connection )
  •          Blink Function and can adjust timing to blink.
  •          Fading Function and can adjust timing to fading.
  •          When Bluetooth not connect to Arduino Board – User Interface Disable.
  •          When Bluetooth connected – User Interface Enable.
  •          Free Version with Ad.

Hardware
1.Arduino Board or compatible Board 
2.Serial Bluetooth Module.( TTL Output )
3.RGB LEDs  ( We use SPNovaLED model NMRTB-USD-AAB+ADE+Y2Z1-1 )
4.Android Device with Bluetooth Supported.


Software
Arduino Code ( You need to program into Arduino Board. )

Visit Hardware page ( USB Version )
http://microcontrollerkits.blogspot.com/2013/06/arduino-control-rgb-led-via-serial-port.html 
          
For more detail about Arduino Programming http://arduino.cc/en/

*** Code for Arduino for Bluetooth version, the same USB Version ***





 
  Android App.



https://play.google.com/store/apps/details?id=arduino.bluetooth.rgbleds

Download Arduino Control RGB LEDs via Bluetooth  on Google Play.
https://play.google.com/store/apps/details?id=arduino.bluetooth.rgbleds




Wiring Diagram in common-cathode.
If you want use in common-anode.Need change wiring and edit some arduino code.


Wiring Diagram and Hardware page ( USB Version )
Pls. visit in more detail.
http://microcontrollerkits.blogspot.com/2013/06/arduino-control-rgb-led-via-serial-port.html


About App.
  • Open App then connect to bluetooth.


      
  • Paired Bluetooth Device.
         If you are not pair bluetooth device yet. SCAN for devices first.
         Paired device already. Select name of bluetooth module to connect.



  •       Bluetooth Connected already. 



  •       Other Menu - Hardware Diagram - About Developer.


   For Android Control RGB LEDs (USB Version)

     http://androidcontrol.blogspot.com/2013/06/android-arduino-control-rgb-led.html