Friday, 13 November 2020

Arduino Bluetooth Remote control

           

Complete Arduino Bluetooth Remote Control Home Automation Project (with Custom APK)

This project provides a complete, easy-to-build wireless home automation system controlled via Bluetooth using a custom Android application.

📺 Project Demonstration Video

📦 Required Components & Hardware

  1. Arduino Nano microcontroller

  2. Bluetooth Module (such as HC-05 or HC-06)

  3. 5V Relay Module (4-channel configuration)

  4. NPN Transistor (e.g., BC547 or 2N2222 for relay driving)

  5. 1k Resistor (for transistor base current limiting)

  6. 5V DC Power Supply

🔌 Wiring & Pin Connections

  • Bluetooth Module: Connected to Pins 2 and 3 of the Arduino Nano (using SoftwareSerial).

  • Relay Control Pins: Connected to Arduino Analog Pins configured as digital outputs:

    • Relay 1: Pin A1

    • Relay 2: Pin A2

    • Relay 3: Pin A3

    • Relay 4: Pin A4

💻 Arduino Source Code

Copy and upload the following sketch to your Arduino Nano:

C++
#include <SoftwareSerial.h>

// Bluetooth module connected to pins 2 (RX) and 3 (TX) of Arduino
SoftwareSerial mySerial(2, 3); 

#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() {
  // Check incoming serial data from Bluetooth Android App
  while (mySerial.available() > 0) {
    val = mySerial.read();
    Serial.println(val);
  }

  // Relay Turn ON Commands
  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 Turn OFF Commands
  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);
  } 

}                                                                                                                                                 



























MIT Codes



Saturday, 4 April 2020

GPS Car Tracker

GPS Car Tracker 



Price: 20,000 PKR

No Annual charges with android App

Specifications.

 1). Track your car through GPS coordinates.
 2). Car door open alert.
 3). Car Bonnet open alert.
 4). Car Battery terminal open alert.
 5). Car engine On/Off.
 6). Car engine Start/Stop.
 7). Car Door lock Open/Close.
 8). Car Horn On/Off.
 9). Car Lights On/Off.
10). Built-in MIC.
11). Geofence
---------------------------------------------------------------------------------

Contact me at:


Whatsapp:  +923127800081

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

PIM 2 Metal Detector:



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


Check video:


https://www.youtube.com/watch?v=2HWzavLhwaA&t=54s


      

                                      Easy Andriod simple app 




In this project following parts were used1). micro controller Atmega328
2). Sim900A.
3). Neo GPS module
4). DC to DC boost power supply.
5). 12vdc to 5vdc converter (car charger).
6). 3.7V, 1800 mAh , (mobile battery).
7). 5V relays