Project tutorial
Arduino Bluetooth Boat

Arduino Bluetooth Boat

A DIY Bluetooth control boat made from Styrofoam and an Arduino Nano.

  • 4,519 views
  • 4 comments
  • 21 respects

Components and supplies

Apps and online services

About this project

It all started when I wanted an RC boat... but first it was necessary to create a body. Having found the drawings of the boat on the Internet, I decided to make it out of foam.

Next, I created a motor mount.

And made a layout of the electronics.

From there, I constructed the steering wheel and a propeller. In the final result, they were replaced by purchased ones.

The shaft of the propeller with the motor shaft was connected by means of a coupling.

Check out the final result...

Code

bluetooth_test.inoC/C++
just upload in arduino
#include <Servo.h> 
Servo myservo;

int val;
int LED = 13;
int IN4 = 4; // Input3    5 
int IN3 = 5;
int IN2 = 7;
int IN1 = 6;
int k = 0;
void setup()
{
Serial.begin(9600);
pinMode(LED, OUTPUT);
 pinMode (IN4, OUTPUT);
  pinMode (IN3, OUTPUT);
  pinMode (IN2, OUTPUT);
  pinMode (IN1, OUTPUT);
   myservo.attach(10);
}

void loop()
{
if (Serial.available())
  {
     val = Serial.read();
     
        if (k == 0)
        {
           myservo.write(90);  // (1    )
           k++;
        }
           //   "F"   ( w)
   if (val == 'X')
     {
        myservo.write(90);
       }
       if (val == 'x')
     {
        myservo.write(90);
       }
    if (val == 'F')
     {
        digitalWrite (IN4, HIGH);
         digitalWrite (IN3, LOW); 
         digitalWrite (IN2, HIGH);
         digitalWrite (IN1, LOW); 
       }
         //   "S"  
     if ( val == 'S')
       {
       digitalWrite (IN3, LOW);
         digitalWrite (IN4, LOW); 
          digitalWrite (IN2, LOW);
         digitalWrite (IN1, LOW); 
        }
         //   "B"  
         if ( val == 'B')
       {
         digitalWrite (IN4, LOW); 
         digitalWrite (IN3, HIGH);
          digitalWrite (IN2, LOW); 
         digitalWrite (IN1, HIGH);
        }
        //  
        if ( val == 'L')
       {
         myservo.write(50);
       //  myservo.write(90);
        }
        //  
        if ( val == 'R')
       {
         myservo.write(130);
       //  myservo.write(90); 
        }

        //  45 +  
        
           //   "G"    
    if (val == 'G')
          {
        digitalWrite (IN4, HIGH);
         digitalWrite (IN3, LOW);
         digitalWrite (IN2, HIGH);
         digitalWrite (IN1, LOW);
         myservo.write(50); 
           delay(1000);  
         myservo.write(90);
       }
    
         //   "I"   
         if ( val == 'I')
       {
         digitalWrite (IN4, HIGH); 
         digitalWrite (IN3,LOW);
           digitalWrite (IN2, HIGH);
         digitalWrite (IN1, LOW);
         myservo.write(130);
           delay(1000);  
         myservo.write(90);
        }
       //   ""   
         if ( val == 'H')
       {
         digitalWrite (IN4, LOW); 
         digitalWrite (IN3, HIGH);
         digitalWrite (IN1, HIGH);
         digitalWrite (IN2, LOW);
         myservo.write(130);
           delay(1000);  
         myservo.write(90);
        }
         //   "J"   
         if ( val == 'J')
       {
         digitalWrite (IN4, LOW); 
         digitalWrite (IN3, HIGH);
          digitalWrite (IN1, HIGH);
         digitalWrite (IN2, LOW);
          myservo.write(50); 
            delay(1000);  
          myservo.write(90);
        }
    }
}

Schematics

two channels on motor driver connected in parallel because i use motor 370 class and in parallel I increased the maximum current to 4A
rc_boat_CiGqjOik4K.fzz

Comments

Similar projects you might like

Bluetooth Boat in doubleA

Project showcase by joeydream

  • 2,727 views
  • 1 comment
  • 8 respects

Otto DIY+ Arduino Bluetooth Robot Easy to 3D Print

Project tutorial by Team Otto builders

  • 48,234 views
  • 117 comments
  • 162 respects

Arduino Robot w/ GoPro and FPV iPhone Control via Bluetooth

Project in progress by AlxArd

  • 3,144 views
  • 5 comments
  • 24 respects

Bluetooth Based Home Automation

Project tutorial by Team Brink.IO

  • 9,653 views
  • 13 comments
  • 38 respects

Bluetooth TFS Build LED strobe light

Project tutorial by Jimmy Ramkisoen

  • 3,511 views
  • 0 comments
  • 10 respects

Bluetooth Controlled Light Switch

Project showcase by Team The Instrumentation Crustaceans

  • 23,403 views
  • 4 comments
  • 26 respects
Add projectSign up / Login