Mini Underwater Rov

l293d shield
arduino uno
hc 06
jumper wires
2 18650 battery
18650 battery holder
3 motors
3 propellers
female headers
8 white led
1 flash led
2 plastic cilinder
*******tools**********
2 screws
glue gun
slone glue
Lights

i used 9 leds for lighting. I made a circuit for 4 leds.doubles sides lights include 8 leds and up light includes 1 fash led.I connected all lights together by soldering and output pin set to uno pin 9
Motors


I used normal motor and propplers here.three motors are connected to l293d shield. I made a gap between cilinder and motors with 2 screws
Controller



I used HC06 as controller.i used Bluetooth Electronic app for controll via bluetooth
Arduino Programme

#include AF_DCMotor motor1(1); AF_DCMotor motor2(2); AF_DCMotor motor3(3); //AF_DCMotor motor4(4); char bt='S'; void setup() { Serial.begin(9600); motor1.setSpeed(255); motor2.setSpeed(255); motor3.setSpeed(255); // motor4.setSpeed(255); Stop(); pinMode(9,OUTPUT); } void loop() { bt=Serial.read(); if(bt=='R') { forward(); } if(bt=='B') { backward(); } if(bt=='Y') { left(); } if(bt=='G') { right(); } if(bt=='W') { Stop(); } ////////////////////////////////////////// if(bt=='r') { Stop(); } if(bt=='b') { Stop(); } if(bt=='y') { Stop(); } if(bt=='g') { Stop(); } if(bt=='w') { Stop(); } /////////////////////// if(bt=='D') { down(); } if(bt=='U') { up(); } if(bt=='1') { digitalWrite(9,HIGH); } if(bt=='2') { digitalWrite(9,LOW); } } void forward() { motor1.run(FORWARD); motor2.run(FORWARD); motor3.run(RELEASE); /// motor4.run(FORWARD); } void backward() { motor3.run(RELEASE); motor1.run(BACKWARD); motor2.run(BACKWARD); // motor4.run(BACKWARD); } void left() { motor1.run(FORWARD); motor2.run(BACKWARD); motor3.run(RELEASE); // motor4.run(BACKWARD); } void right() { motor1.run(BACKWARD); motor2.run(FORWARD); motor3.run(RELEASE); // motor4.run(FORWARD); } void Stop() { motor1.run(RELEASE); motor2.run(RELEASE); motor3.run(RELEASE); // motor4.run(RELEASE); } void down() { motor1.run(RELEASE); motor2.run(RELEASE); motor3.run(FORWARD); // motor4.run(BACKWARD); } void up() { motor1.run(RELEASE); motor2.run(RELEASE); motor3.run(BACKWARD); // motor4.run(BACKWARD); }
Water Proof


Finish

