Skip to main content

Blutooth modual control Arduino LED

Blutooth modual control Arduino Connected Device

 First step you can open Arduino IDE type everything programming to  under the page first of all we will not everything for this programming now start (int) integer led1, led2 this 2 are variable.

Blutooth-modual-control-Arduino -LED
Blutooth-modual-control-Arduino -LED

Let's discuss about hardware 1) blutooth modual 2) Arduino any. Arduino to blutooth modual connection Arduino 5Volt connect to blutooth modual VCC, Arduino GND (Ground) to modual GND (Ground), Arduino TX pin connect to Modual RX pin and Arduino RX pin connect to Modual to TX pin.

Blutooth-modual-control-Arduino -LED

Arduino pin D2 connect LED Anode pin and another pin of LED Chotod connect to Arduino GND pin.
Arduino pin D3 connect LED Anode pin and another pin of LED Chotod connect to Arduino GND pin.

HC-05 modual control Arduino programming

int led1 = 2;//pin number D2

int led2 = 3;//pin number D3

char TTRX;

void setup(){

  Serial.begin(9600);//serial commuction port number defind 9600

  pinMode(led1, OUTPUT);//led1 pin defind output device

  pinMode(led2, OUTPUT);//led2 pin defind output device

}

void loop(){

  if (Serial.available()){

    TTRX = Serial.read();//serial function read data for RX pin

  }

  if (TTRX == '1'){

    digitalWrite(led1, HIGH);

  }

  if (TTRX == '2'){

    digitalWrite(led1, LOW);

  }

  if (TTRX == '3'){

    digitalWrite(led2, HIGH);

  }

  if (TTRX == '4'){

    digitalWrite(led2, LOW);

  }

}

Different void loop programming

(use any of them loop)

void loop(){

  switch (TTRX == '1'){

 case 0:

  digitalWrite(led1, HIGH);

  break;

 case 1;

  digitalWrite(led1, LOW);

  break;

}

delay(1);

  switch(TTRX == '2'){

   case 0:

   digitalWrite(led2, HIGH);

   break;

   case 1;

   digitalWrite(led2, LOW);

    break;

}

delay(1);

}

Divices controlling Application

See Next part Comming Soon

Comments

Popular posts from this blog

FM transmitter using crystal

FM transmitter using crystal   Power supply   :-   Using power supply stable DC voltage 2 V to 3.7 V max. You can only use battery because battery is perfect for this circuit battery output doesn't any noise. Components  :-  Transistor BC 547 , Resistance 100 ohm, 4.7K ohm.   Capacitor 1nF, 47pF,              22pF.   Inductor 1uH. Condenser mic any .       Resistance  :-   Using resistance 100 ohm +-5% changing 1/3 watt, 4.7 K ohm +-5% changing 1/3 watt. Video link -  https://youtu.be/aV7K2NHrHTM 3 Volt Circuit Diagram Capacitor  :-   1uF this capacitor positive pin connect 4.7K ohm resistance one pin and another pin connect 2K ohm resistance one number pin. 5 Volt Circuit Diagram This Circuit Transmitter range 0.3 Kilometre (300 Metre) to 0.5 kilometre (500 Metre) without any obstacle otherwise range 0.2 Kilometre (200 metre) anywhere. It's a spy device. D...

Fm transmitter circuit

Fm transmitter circuit Power supply   :-   Using power supply stable DC voltage 2 V to 3.7 V max. You can only use battery because battery is perfect for this circuit battery output doesn't any noise. Components  :- Transistor BC 547 , Resistance 100 ohm , 4.7 K ohm .   Capacitor 1nF, 47pF, 22pF.   Inductor 1uH. Condenser mic any . Resistance  :-   Using resistance 100 ohm +-5% changing 1/3 watt, 4.7 K ohm +-5% changing 1/3 watt. Capacitor  :-   1nF this capacitor number 102 non-polar, 22pF this capacitor number 22 non-polar, 47pF this capacitor number 47 non-polar. Inductor  :-   This part important part for any transmitter circuit, 1uH 5Turn 24SWG. Transistor  :-   BC 547  is an NPN Bipolar junction transistor. It is commonly  used  to amplify current. A small current at its base controls a larger current at collector & emitter terminals.  It has a transition...

US names six crew killed in refuelling plane crash in Iraq

Latest News Update The aircraft was on a combat mission as part of ongoing US operations against Iran when it crashed in western Iraq on Thursday. The aircraft was on a combat mission as part of ongoing US operations against Iran when it crashed in western Iraq on Thursday. In-Depth Context: Aerial refueling Aerial refuelling, also referred to as air refuelling, in-flight refuelling (IFR), air-to-air refuelling (AAR), and tanking, is the process of transferring aviation fuel from one aircraft (the tanker) to another (the receiver) while both aircraft are in flight. The two main refuelling systems are probe-and-drogue, which is simpler to adapt to existing aircraft and the flying boom, which offers faster fuel transfer, but requires a dedicated boom operator station. The procedure allows the receiving aircraft to remain airborne longer, extending its range or loiter time. A series of air refuelling can give range limited only by crew's physiological needs (l...