Project tutorial
The Fishing Bot

The Fishing Bot

A joystick controlled robot for playing the famous fishing game.

  • 4,626 views
  • 0 comments
  • 7 respects

Components and supplies

Necessary tools and machines

Apps and online services

About this project

It was about the classic fishing game. This game is found in almost all toy stores.

People use to challenge themselves by trying to catch the highest possible number of fish. The idea was trying to shift this toy to the automated side.

Code

Fishing bot codeArduino
Binary file (n
#include <SoftwareSerial.h>
#include<Servo.h> // include server library

Servo ser1;  
Servo ser2;
int potpin1 = A0;  // analog pin used to connect the potentiometer
int potpin2 = A1;
int val;    // variable to read the value from the analog pin

void setup() {
  ser1.attach(9);
  ser2.attach(8);// attaches the servo on pin 9 to the servo object
}

void loop() {
  val = analogRead(float(potpin2));            // reads the value of the potentiometer (value between 0 and 1023)
  val = map(val, 0, 1023, 0, 60);     // scale it to use it with the servo (value between 0 and 180)
  ser1.write(val);                  // sets the servo position according to the scaled value
  delay(100); // waits for the servo to get there

  val = analogRead(float(potpin1));            // reads the value of the potentiometer (value between 0 and 1023)
  val = map(val, 0, 1023, 0, 40);     // scale it to use it with the servo (value between 0 and 180)
  ser2.write(val);                  // sets the servo position according to the scaled value
  delay(100);

}o preview)

Comments

Similar projects you might like

Trash Built BT Line Drawing Bot - My Bot

Project tutorial by jegatheesan

  • 854 views
  • 0 comments
  • 7 respects

Telegram Bot with ESP8266

Project tutorial by Shebin Jose Jacob

  • 41,620 views
  • 44 comments
  • 77 respects

Obstacle Avoidance Bot Using IR Sensors

Project tutorial by Chandran N

  • 4,048 views
  • 0 comments
  • 11 respects

Remote Control Gripper Bot

Project tutorial by Scott Beasley

  • 5,765 views
  • 8 comments
  • 17 respects

Simple MPU6050 IMU + Arduino bot UPDATE

Project tutorial by Imalwaysontheinternet

  • 3,967 views
  • 14 comments
  • 28 respects

Bluetooth Controlled Bot (Using Adafruit L293D Motor Driver)

Project showcase by Chandran N

  • 3,664 views
  • 1 comment
  • 15 respects
Add projectSign up / Login