author
1Instructables7,958Views17CommentsIndia
Passionate to electronics..............Ready to help

Achievements

      • Quarter Iso-grid Cardboard Longboard
      • DIY Low Cost Air Hockey Table
      • Raspberry Pi Powered IOT Garden
      • Arduino Robot With Wireless Camera and Fire Detection for Home Security
    • Arduino robot with wireless camera and fire detection for Home security
      2,235 views
      66 favorites
      3 comments
  • Its a dot board man it uses the soldering lead for connection

    View Instructable »
  • Da pillai Kayari ange meyyuvaanallo

    View Instructable »
  • #include <elapsedMillis.h>elapsedMillis timeElapsed;char BluetoothData; // the Bluetooth data received int switch1 = 11;int switch2 = 12;int trig_pin = 8;int echo_pin = 9;long echotime; //in micro secondsfloat distance; //in cmunsigned int interval = 100;void setup() { Serial.begin(9600); //Set Digital Pins 4 to 7 as Output pinMode(4,OUTPUT); pinMode(5,OUTPUT); pinMode(6,OUTPUT); pinMode(7,OUTPUT); pinMode(13,OUTPUT); pinMode(12,OUTPUT); pinMode(11,OUTPUT); //Set State of Pins all to LOW (0) digitalWrite(4,0); digitalWrite(5,0); digitalWrite(6,0); digitalWrite(7,0); digitalWrite(11,0); digitalWrite(12,0); digitalWrite(13,0); Serial.begin (9600); ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW);}void loop() {motor();sensor();} …

    see more »

    #include <elapsedMillis.h>elapsedMillis timeElapsed;char BluetoothData; // the Bluetooth data received int switch1 = 11;int switch2 = 12;int trig_pin = 8;int echo_pin = 9;long echotime; //in micro secondsfloat distance; //in cmunsigned int interval = 100;void setup() { Serial.begin(9600); //Set Digital Pins 4 to 7 as Output pinMode(4,OUTPUT); pinMode(5,OUTPUT); pinMode(6,OUTPUT); pinMode(7,OUTPUT); pinMode(13,OUTPUT); pinMode(12,OUTPUT); pinMode(11,OUTPUT); //Set State of Pins all to LOW (0) digitalWrite(4,0); digitalWrite(5,0); digitalWrite(6,0); digitalWrite(7,0); digitalWrite(11,0); digitalWrite(12,0); digitalWrite(13,0); Serial.begin (9600); ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW);}void loop() {motor();sensor();} void motor(){??if (Serial.available()){ BluetoothData=Serial.read();if(BluetoothData=='F'){ // Red Button Pressed digitalWrite(4,1); //Turn diital out 4 to High digitalWrite(5,0); //Turn digital out 5 to Low digitalWrite(6,1); digitalWrite(7,0); } if(BluetoothData=='B'){ // Yellow Button Pressed digitalWrite(5,1); digitalWrite(4,0); digitalWrite(6,0); digitalWrite(7,1); } if(BluetoothData=='f'||BluetoothData=='b'){ // Red or Yellow Button Released digitalWrite(4,0); digitalWrite(5,0); digitalWrite(6,0); digitalWrite(7,0); } if(BluetoothData=='L'){ // Green Button Pressed digitalWrite(6,1); digitalWrite(7,0); digitalWrite(4,0); digitalWrite(5,0); } if(BluetoothData=='R'){ // Blue Button Pressed digitalWrite(4,1); digitalWrite(5,0); digitalWrite(7,0); digitalWrite(6,0); } if(BluetoothData=='l'||BluetoothData=='r'){ // Green or Blue Button Released digitalWrite(7,0); digitalWrite(4,0); digitalWrite(5,0); digitalWrite(6,0); } if(BluetoothData=='G'){ digitalWrite(13,1); } if(BluetoothData=='g'){ digitalWrite(13,0); } if(BluetoothData=='P'){ digitalWrite(12,1); }if(BluetoothData=='X'){ digitalWrite(11,1); Serial.print("*XR241G232B248"); } if(BluetoothData=='x'){ digitalWrite(11,0); Serial.print("*XR000G000B000"); } if(BluetoothData=='p'){ digitalWrite(12,0); } delay(10);// wait 10 ms} } ??void sensor(){ if (timeElapsed > interval) { digitalWrite(trig_pin, HIGH); ??delayMicroseconds(10); ??digitalWrite(trig_pin, LOW);motor(); ??//get the result ??echotime= pulseIn(echo_pin, HIGH); ??distance= 0.0001*((float)echotime*340.0)/2.0; ?? ??Serial.print("*D"+String(distance,1)+"*"); ??timeElapsed = 0; ??}}

    Arduino: 1.6.7 (Windows 7), Board: "Arduino/Genuino Uno"C:\Users\user\Documents\Arduino\Bluetooth_robot_project\Bluetooth_robot_project.ino:113:2: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs] ??//get the result ^C:\Users\user\Documents\Arduino\Bluetooth_robot_project\Bluetooth_robot_project.ino: In function 'void setup()':Bluetooth_robot_project:33: error: expected primary-expression before '?' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected primary-expression before '?' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected ':' before ';' token ??pinMode(trig_pin, OUTPUT);…

    see more »

    Arduino: 1.6.7 (Windows 7), Board: "Arduino/Genuino Uno"C:\Users\user\Documents\Arduino\Bluetooth_robot_project\Bluetooth_robot_project.ino:113:2: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs] ??//get the result ^C:\Users\user\Documents\Arduino\Bluetooth_robot_project\Bluetooth_robot_project.ino: In function 'void setup()':Bluetooth_robot_project:33: error: expected primary-expression before '?' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected primary-expression before '?' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected ':' before ';' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected primary-expression before ';' tokenBluetooth_robot_project:33: error: expected ':' before ';' tokenBluetooth_robot_project:33: error: expected primary-expression before ';' tokenBluetooth_robot_project:33: error: expected primary-expression before '?' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected primary-expression before '?' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected ':' before ';' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected primary-expression before ';' tokenBluetooth_robot_project:33: error: expected ':' before ';' tokenBluetooth_robot_project:33: error: expected primary-expression before ';' tokenBluetooth_robot_project:33: error: expected primary-expression before '?' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected primary-expression before '?' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected ':' before ';' token ??pinMode(trig_pin, OUTPUT); ??pinMode(echo_pin, INPUT); ??digitalWrite(trig_pin, LOW); ^Bluetooth_robot_project:33: error: expected primary-expression before ';' tokenBluetooth_robot_project:33: error: expected ':' before ';' tokenBluetooth_robot_project:33: error: expected primary-expression before ';' tokenC:\Users\user\Documents\Arduino\Bluetooth_robot_project\Bluetooth_robot_project.ino: In function 'void loop()':Bluetooth_robot_project:36: error: 'motor' was not declared in this scope motor(); ^Bluetooth_robot_project:37: error: 'sensor' was not declared in this scope sensor(); ^C:\Users\user\Documents\Arduino\Bluetooth_robot_project\Bluetooth_robot_project.ino: At global scope:Bluetooth_robot_project:41: error: expected initializer before 'if' if (Serial.available()){ ^exit status 1expected primary-expression before '?' tokenInvalid library found in C:\Program Files\Arduino\libraries\elapsedMillis-master: C:\Program Files\Arduino\libraries\elapsedMillis-masterInvalid library found in C:\Program Files\Arduino\libraries\elapsedMillis-master: C:\Program Files\Arduino\libraries\elapsedMillis-master This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.

    I am seeing this error message while compiling what to do

    HiI am not able to open the program file.Will you please send me the program as text to me.

    View Instructable »
  • Will you please add the diagram of the circuit with a pcb????

    View Instructable »
  • RECTIFIERS ARE NOT PRESENT IN THE CIRCUIT?????IF THEY ARE NOT REQUIRED PLEASE PROVIDE THE BATTERY SPECIFICATIONS???

    Then where is the rectifier???

    Which is better PCB or BREADBOARD??????

    Why are you using such a big battery?? We need only 2 9v batteries one to power the motors and other to power the arduinoisn't it??I

    View Instructable »
  • Will you please send me the links to buy the components.I am in need please ...

    View Instructable »