Arduino obstacle avoiding bluetooth car
ARDUINO BLUETOOTH OBSTACLE AVOIDING CAR COMPONENTS AND SUPPLIES Arduino UNO HC-05 Bluetooth Module Ultrasonic Sensor - HC-SR04 (Generic) Rechargeable Battery, Lithium Ion SparkFun Dual H-Bridge motor drivers L298 Female/Female Jumper Wires DC Motor, 12 V SAMPLE PHOTOS Arduino Code #include <Ultrasonic.h> Ultrasonic u = Ultrasonic(3,4); #include <Servo.h> Servo s = Servo(); void setup() { // put your setup code here, to run once: s.attach(8); pinMode(11,OUTPUT); pinMode(12,OUTPUT); pinMode(13,OUTPUT); analogWrite(11,150); pinMode(5,OUTPUT); pinMode(6,OUTPUT); pinMode(7,OUTPUT); analogWrite(5,150); Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: int x = Serial.read(); if(x == '1'){ s.write(90); delay(300); int d = u.read(); if(d > 20){ digitalWrite(12,LOW); digi...