Monday, 8 July 2019

Arduino Bluetooth Remote Control (Updated )

Arduino Bluetooth  Remote Control

Output taken from Ardiuno 2 & 4 pins, Bluetooth device connected at 6 & 7 pins

For 30Amps Relay 2SC1384 used connected to pin 2, C945 for 10 Amps Relay connected to pin 4 . In Android application Buttons 1 & 3 will work.
Search Bluetooth device first enter 0000 password, 
Now start app in Android  press connection button ,it will be green  below it show the connection status 
Then you on or off any Appliances










KIT: 3,000 PKR

#include <SoftwareSerial.h>
SoftwareSerial mySerial(7, 6);
#define relay1 2
#define relay2 3
#define relay3 4
#define relay4 5
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
else if( val == '9' ) {
digitalWrite(relay1,HIGH);
digitalWrite(relay2,HIGH);
digitalWrite(relay3,HIGH);
digitalWrite(relay4,HIGH);
}
//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
else if( val == 'I' ) {
digitalWrite(relay1,LOW);
digitalWrite(relay2,LOW);
digitalWrite(relay3,LOW);
digitalWrite(relay4,LOW);
}
}


Friday, 5 April 2019

Arduino GPS Tracker

WhatsApp : +923127800081
Below is a complete GPS GSM Car Tracker

                  HEX not for free

Having a below  specifications:


1). Get GPS coordinates by sending a SMS.

2). Get alert if door or bonnet open.


3). Lock your car any time by sending SMS.


4). Get Call & SMS while some one open the door or bonnet


 Here in this project were need up to 5 VDC for GSM ,GPS , controller & relays .

Following  parts were used:

1). 3V to 5V DC Step up 
2).  3.7 , 2Amps mobile battery 
3). Car charger 2Amps
4). On/off button
5). 1000uf ,16v capacitor
6). Small size Rectifier bridge 

    ----------------------------------------


check video:


https://www.youtube.com/watch?v=QGYTBDkDp_o&t=13s























   

Monday, 11 February 2019

GSM Based Home Automation System using Arduino

Below mentioned simple GSM arduino project where you can control any thing through GSM module . 
Here SIM900A used , need 3.7 , 2 Amps power supply must for SIM module , ground must common .



Image result for sim900aImage result for arduino uno
Simple AT commands use to get output from the module , Pin 7 & 8 of Arduino used as TX & TX for GSM module .  for controlling any appliance any pin can be used  



Codes are below



#include <SoftwareSerial.h> // Library for using serial communication
SoftwareSerial SIM900(8, 7); // Pins 7, 8 are used as used as software serial pins

String incomingData;   // for storing incoming serial data
String message = "";   // A String for storing the message
int relay_pin = 9 ;    // Initialized a pin for relay module

void setup()
{
  Serial.begin(115200); // baudrate for serial monitor
  SIM900.begin(9600); // baudrate for GSM shield

  pinMode(relay_pin, OUTPUT);   // Setting erlay pin as output pin
  digitalWrite(relay_pin, HIGH);  // Making relay pin initailly low

  // set SMS mode to text mode
  SIM900.print("AT+CMGF=1\r");  
  delay(100);
  
  // set gsm module to tp show the output on serial out
  SIM900.print("AT+CNMI=2,2,0,0,0\r"); 
  delay(100);
}

void loop()
{
  //Function for receiving sms
  receive_message();

  // if received command is to turn on relay
  if(incomingData.indexOf("Led_on")>=0)
  {
    digitalWrite(relay_pin, LOW);
    message = "Led is turned ON";
    // Send a sms back to confirm that the relay is turned on
    send_message(message);
  }
  
  // if received command is to turn off relay
  if(incomingData.indexOf("Led_off")>=0)
  {
    digitalWrite(relay_pin, HIGH);
    message = "Led is turned OFF";
    // Send a sms back to confirm that the relay is turned off
    send_message(message);
  }        
}

void receive_message()
{
  if (SIM900.available() > 0)
  {
    incomingData = SIM900.readString(); // Get the data from the serial port.
    Serial.print(incomingData); 
    delay(10); 
  }
}

void send_message(String message)
{
  SIM900.println("AT+CMGF=1");    //Set the GSM Module in Text Mode
  delay(100);  
  SIM900.println("AT+CMGS=\"+92xxxxxxxxxx\""); // Replace it with your mobile number
  delay(100);
  SIM900.println(message);   // The SMS text you want to send
  delay(100);
  SIM900.println((char)26);  // ASCII code of CTRL+Z
  delay(100);
  SIM900.println();
  delay(1000);  
}




Wednesday, 12 December 2018

Arduino GSM Jammer

Below is a simple  Arduino GSM Jammer ()
For 1800 MHz another VCO can be used.

The square wave from Arduino pin 10 fed to VCO tuning volt input which will almost cover the Required input voltage from 0.5 to 5 volts to cover the frequency range from 870 MHz to 980 Mhz
Arduino code for generating square wave 


void setup(){ }

void loop()
{
tone(10, 15000); // generate square wave
}



Click for video:



https://youtu.be/xLuq1X6kNps








1).MVCO944 (870 Mhz - 980 Mhz)

2). BFG591 or SXA389  RF Transistor 4-7GHz ,1.5 Watts

1).The transistor used in this project must be working on high frequencies , any other type transistor can be used.

Power supply must be 5vdc

Components used:

Wednesday, 14 November 2018

Generator start Timer ( on Low Battery capacity )

This simple project can set the generator in automatic way to start the generator on low battery level
specially for running network system


#include <LiquidCrystal.h>  //Default Arduino LCD Librarey is included

int Read_Voltage  = A0;
int Read_CUTOFF  = A1;
int led  = 8;
int led1  = 9;
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; //Mention the pin number for LCD connection
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
  lcd.begin(16, 2); //Initialise 16*2 LCD
  pinMode(8, OUTPUT);
   pinMode(9, OUTPUT);
  lcd.print("KSF ELECTRONICS"); //Intro Message line 1
  lcd.setCursor(0, 1);

  delay(3000);
  lcd.clear();
}
void loop() {

 float Voltage_Value = analogRead(Read_Voltage);
 float CUTOFF_Value = analogRead(Read_CUTOFF);
Voltage_Value = Voltage_Value * (5.0/1023) * 6;
 CUTOFF_Value = CUTOFF_Value * (5.0/1023) * 6;

 lcd.setCursor(0, 0);
 lcd.print("VOLT="); lcd.print(Voltage_Value);
 lcd.print(" VDC ");
 lcd.setCursor(0, 0);
 lcd.print("VOLT="); lcd.print(Voltage_Value);


lcd.setCursor(0, 1);
 lcd.print("CUT ="); lcd.print(CUTOFF_Value);
 lcd.print(" VDC ");
 lcd.setCursor(0, 1);
 delay(200);

if(Voltage_Value < CUTOFF_Value)
digitalWrite(8 , HIGH);
delay(200000);
digitalWrite(8 ,LOW);
}

Thursday, 1 November 2018

Russian PI metal detector circuit.

Russian PI metal detector circuit.
Classical Russian PI detector where only few components were used working fine
LM555 , TL062 , IRF 740 or 840 . ( IXQT0460P2 in my case)

Contentious tone from speaker but change in tone if metal found 


Testing video click below link