HINDOLROY
Published © GPL3+

Bluetooth traffic signal

Control cars with a touch of your finger

IntermediateShowcase (no instructions)251
Bluetooth traffic signal

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Jumper wires (generic)
Jumper wires (generic)
×1
5 mm LED: Red
5 mm LED: Red
×1
5 mm LED: Green
5 mm LED: Green
×1
Breadboard (generic)
Breadboard (generic)
×1
5 mm LED: Yellow
5 mm LED: Yellow
×1
Android device
Android device
×1

Software apps and online services

ARDUINO CAR
Arduino IDE
Arduino IDE

Story

Read more

Schematics

BT SIGNAL

Code

BT SIGNAL CODE

Arduino
char t;

void setup() {
pinMode(13,OUTPUT); 
pinMode(12,OUTPUT); 
pinMode(11,OUTPUT); 
Serial.begin(9600);

}

void loop() {
if(Serial.available()){
t = Serial.read();
Serial.println(t);
}

if(t == 'R'){ 
digitalWrite(13,HIGH);
}
else if(t == 'D'){ 
digitalWrite(13,LOW);
}
else if(t == 'Y'){ 
digitalWrite(12,HIGH);
}
else if(t == 'L'){ 
digitalWrite(12,LOW);
}
else if(t == 'G'){ 
digitalWrite(11,HIGH);
}
else if(t == 'N'){ 
digitalWrite(11,LOW);
}
delay(1000);
}

   

Credits

HINDOLROY

HINDOLROY

2 projects • 0 followers

Comments