Friday 13 November 2020

Arduino Bluetooth Remote control

Complete Bluetooth Remote control Project  

Arduino Bluetooth Remote control with APK

A great Bluetooth Remote control for your home automation , 



...............................................................................................

Check Video: 


https://m.youtube.com/watch?v=j2HYM4YbRK0


1). 1k Resister
              2). Any NPN transister
 3). 5 Volt Relay
     4). Arduino  nano
          5). Bluetooth module
            6). 5 volt power supply
                                              7). Arduino 6 & 7 pin used with bluetooth 


























MIT Codes




Below are the Arduino codes 


#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); Bluetooth  module connected to 2,3 pins of ardiuno
#define relay1 A1
#define relay2 A2
#define relay3 A3
#define relay4 A4
char val;
void setup() {
pinMode(relay1,OUTPUT);
pinMode(relay2,OUTPUT);
pinMode(relay3,OUTPUT);
pinMode(relay4,OUTPUT);
digitalWrite(relay1,LOW);
digitalWrite(relay2,LOW);
digitalWrite(relay3,LOW);
digitalWrite(relay4,LOW);
mySerial.begin(9600);
Serial.begin(9600);
}
void loop() {
//cek data serial from bluetooth android App
while ( mySerial.available() >0 ) {
val = mySerial.read();
Serial.println(val);
}
//Relay is on


if( val == '1' ) {
digitalWrite(relay1,HIGH); }
else if( val == '2' ) {
digitalWrite(relay2,HIGH); }
else if( val == '3' ) {
digitalWrite(relay3,HIGH); }
else if( val == '4' ) {
digitalWrite(relay4,HIGH); }
//relay all on

//relay is off
else if( val == 'A' ) {
digitalWrite(relay1,LOW); }
else if( val == 'B' ) {
digitalWrite(relay2,LOW); }
else if( val == 'C' ) {
digitalWrite(relay3,LOW); }
else if( val == 'D' ) {
digitalWrite(relay4,LOW); }
//relay all off
}

Saturday 7 November 2020

ATS (Auto Transfer Switch ) with 3 sources input


 ATS (Auto Transfer Switch ) with 3 sources input

The clasical ATS system already shared by every one ,  but now a days we may need 3 thource ATS type through which we can manage the sources like hybrid power system   Mains power supply  , Generators, Solars , inverters ,  

If we look at the figure first of all source (S-1) will be connected as the relay will be energized through transformer which is connected to the Source (S-1), 

Failure of Source (S-1)  relay will not in the energized position , where common pin will be connected to relay (NC) pin , here NC pin is connected to the relay 2 common pin , 

If source (S-2 ) available relay 2 will be energized common pin will be connected to relay 2 (NO) ,

source (S-2) will be connected through NO pin then to Common of relay 2 ,then to NC of Relay 1 finally to output.

If source (S-2 ) unavailable relay 2 will be off , source (S-3) will be connected through NC of relay 2 then common pin then to the  NC or relay 1 finally to the output.

https://www.youtube.com/channel/UCo9zgx6UXdhBhpF51f5JjDw


SIMPLE IDEA