jehankandtsadun_j
Published © Apache-2.0

Arduino Bluetooth and Servo

Arduino Bluetooth and Servo Connected Project

IntermediateFull instructions provided662
Arduino Bluetooth and Servo

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Arduino Web Editor
Arduino Web Editor

Story

Read more

Schematics

Arduino Bluetooth and Servo Motor

Arduino Bluetooth and Servo Motor

Code

Arduino Bluetooth and Servo Motor

C/C++
Arduino Bluetooth and Servo Motor
//.................JEHANKANDY.................
//........Bluetooth Servo Connected Project...

#include <Servo.h>

Servo Jehan;
char val;
void setup() {
  pinMode(6,OUTPUT);
  Jehan.attach(4);
  Serial.begin(9600); 
}

void loop() {
  if(Serial.available()){
    val=Serial.read();
    Serial.println(val);
    }
  if(val=='1'){
    digitalWrite(6,HIGH);
    Jehan.write(90);
  }
  else{
    digitalWrite(6,LOW);
    Jehan.write(0);
  }
}

//...........coded by : Jehankandy.........................
//............thank you...................................

Credits

jehankandt
21 projects • 8 followers
Contact
sadun_j
0 projects • 1 follower
Contact

Comments

Please log in or sign up to comment.