Project tutorial
Mobile-Controlled Water Bot

Mobile-Controlled Water Bot

Build an amazing water bot that can be controlled through your mobile phone.

  • 748 views
  • 1 comment
  • 4 respects

Components and supplies

Necessary tools and machines

plastic water bottles
woody sticks
milk bottle
26w6260 40
Multitool, Screwdriver
motor fans

About this project

This project aims to build a water robot that can be controlled by the smart phones via Bluetooth. The idea was created before a science fair exhibition were some of my talented students were intending to design a special kind of robot (unlike traditional well known land robots). After brainstorming, we reached this model which has two out breaking features:

1. Ability to move in water

2. Ability to be controlled by anyone's smartphone.

Code

Water robot codeArduino
#include <SoftwareSerial.h>
SoftwareSerial BlueTooth(11, 12);    // (TXD, RXD) of HC-06
char BT_input;                    // to store input character received via BT.
int speedpin=3;
int MotorRight1 = 5;                
int MotorRight2 = 6;                
int speedpin1=8;
int MotorLeft1 = 9;               
int MotorLeft2 = 10;               

void setup()  
{
  BlueTooth.begin(9600);  
  Serial.begin(9600);
  pinMode(speedpin,OUTPUT);
  pinMode(MotorRight1, OUTPUT);
  pinMode(MotorRight2, OUTPUT);
  pinMode(MotorLeft1, OUTPUT);
  pinMode(MotorLeft2, OUTPUT);
  pinMode(speedpin1,OUTPUT);
}

void loop() 
{
  if (BlueTooth.available())
  {
   BT_input=BlueTooth.read();
    if (BT_input=='U')
  {
    analogWrite(speedpin,100);
   analogWrite(speedpin1,100);   
digitalWrite(MotorRight1,HIGH);
digitalWrite(MotorRight2,LOW);
digitalWrite(MotorLeft1,LOW);
digitalWrite(MotorLeft2,LOW);
}
    else if (BT_input=='L')
  {
    analogWrite(speedpin,100);
   analogWrite(speedpin1,100);  
digitalWrite(MotorRight1,HIGH);
digitalWrite(MotorRight2,LOW);
digitalWrite(MotorLeft1,LOW);
digitalWrite(MotorLeft2,HIGH);
}


    else if (BT_input=='R')
 {
analogWrite(speedpin,100);
 analogWrite(speedpin1,100);  
digitalWrite(MotorRight1,HIGH);
digitalWrite(MotorRight2,LOW);
digitalWrite(MotorLeft1,HIGH);
digitalWrite(MotorLeft2,LOW);
}
  else if (BT_input=='D')
 {
analogWrite(speedpin,100);
 analogWrite(speedpin1,100);  
digitalWrite(MotorRight1,LOW);
digitalWrite(MotorRight2,HIGH);
digitalWrite(MotorLeft1,LOW);
digitalWrite(MotorLeft2,LOW);
}







   else if (BT_input=='X')
{
analogWrite(speedpin,100);
analogWrite(speedpin1,100);    
digitalWrite(MotorRight1,LOW);
digitalWrite(MotorRight2,LOW);
digitalWrite(MotorLeft1,LOW);
digitalWrite(MotorLeft2,LOW);
}
 
  } 
}

Schematics

Building the frame
The frame is build by connecting two plastic water bottles by two woody ice cream sticks. The sticks are attached to both the bottles on each side by using a glue. On the top of the sticks, an empty milk bottle is placed (green in the fig).This bottle will host all the electronic staff of the boat.
20180413 212027 nhscnsvjcm
Connections
This figure shows how the components of the robot are connected. First of all attach the arduino UNO board to its shield then connect the board to a 9V battery. and use the jumper wires for connecting each pin on the UNO shield to its adjacent pin on the mottor driver. The scheme also shows how the two motors are connected to the motor drive. and how the Bluetooth chip is finally connected to the UNO board.
Connections pic lnjfsoqu9h
Connections 2
Connections2 c2fmwykobi
Housing the electronics
In this figure, all the electronic components (including boards, wires and motors) are inserted into the previously prepared "house" which is the opening on the top of the milk bottle of the frame. Note that the motor is emerging from the round rim of the bottle.
20180507 203559 rdg4vewemi
Directional motor and fan
This figure shows how the directional motor (the one in the back of the milk bottle) is attached in its place and a special woody shaft (shown by the black arrow) was designed in order to fit with the white fan. As a result, the white fan (shown at the bottom of the figure) will be able to rotate inside water. This rotation will decide the left-right direction of the robot.
20180508 101129 mohfpu7cwk

Comments

Similar projects you might like

Trash Built BT Line Drawing Bot - My Bot

Project tutorial by jegatheesan

  • 116 views
  • 0 comments
  • 2 respects

Project Rising Water

Project tutorial by Team AHS Advanced Physics

  • 2,121 views
  • 1 comment
  • 6 respects

Build a Battle Bot Controlled with a PS2 Controller

Project tutorial by Team CodeDigs

  • 12,229 views
  • 5 comments
  • 22 respects

Remote Control Gripper Bot

Project tutorial by Scott Beasley

  • 5,259 views
  • 8 comments
  • 15 respects

Home Safety Bot

Project showcase by Team HomeSafety

  • 2,895 views
  • 3 comments
  • 17 respects

Super-Go: An Industrial IoT bot

Project tutorial by Team KS

  • 2,938 views
  • 0 comments
  • 16 respects
Add projectSign up / Login