top of page

Fish Feeder

Project Purpose: To make fish food system controlled by phone using Pinoo Control Card, Bluetooth module and servo motor.

Duration: 2 lessons

Age Group: 7 years and above

Pinoo Set: Maker set and full set.

Achievements:

  • Learns to code Pinoo control board.

  • Learns to use bluetooth module.

  • Learns to use servo motor.

  • Develops algorithmic skills.

  • Coding skills develop.

  

Materials to be used: Mblock 3 program, Pinoo control card, servo motor module, connection cables.

 

 

 

Materials Required for Design: Glass storage container, towel napkin inner cardboard, utility knife, scissors, gray round mirror cardboard, glue gun and silicone.

  

 

 

 

 

 

 

Project Construction:

For our project, first of all, we make a half cut with a utility knife so that we do not cut our towel napkin inner cardboard completely in the middle.

 

 

We place our mirrored round cardboard on the part we cut and fix our servo motor to the end of our round cardboard with the help of a silicone gun.

 

 

We fix our servo motor to the cardboard.  

 

 

We pay attention to the fact that our cardboard completely blocks its way inside.  

 

  

We fix our tongue cardboard on the edge of the glass storage container.

 

 

 

 

 

 

 

 

 

 

 

 

Then we connect the servo motor and the bluetooth module and our design part is finished.

 

 

 

 

 

 

 

 

 

 

 

           

In order to use our Bluetooth module, we download the 'Arduino Bluetooth Controller' application from the Google play store on our phone running the android operating system. Then, after opening the application, we select our HC-06 bluetooth module. Then we enter the password as '1234' and complete the matching.  

 

          

Then a window appears before us, we choose the 'Switch Mode' option because we will do 2 operations, that is, opening and closing. On the next screen, click on the settings in the upper right corner. From here, we write the closing operation to be done in our codes as 0, the opening operation as 1 and confirm it.

 

Adding Pinoo extension:  

 

 

From the Extensions tab, click "Manage Extensions".

  

 

In the window that opens, we write “Pinoo” in the search engine and it is enough to say download to the result.

Installed on our computer.

 

Connecting the Pinoo control board to the computer:

 

  

In Mblock 3, we click on the "Connect" tab in the upper left.  

In the window that opens, we click on the "Serial Port" section and select the "COM6" option from the page that opens.

NOTE: As each computer has different port entries, the numbers next to COM may change.

 

 

Click on the Cards tab. From the window that opens, we select the "Arduino Nano" card option used by the Pinoo control card.

 

 

Click on the Extensions tab. In the window that opens, we select "Pinoo", the extension of the control card we use.

 

 

Click on the Connect tab.

Click "Firmware Update" from the window that opens.

 

Coding part:

  

  

To start the servo motor, we run it under the command "when the key is pressed". Since the servo motor works between 0 and 180 degrees, we try both angles.

  

 

We add our code block that introduces the connection places of our Bluetooth module under the 'Pinoo Program' code. Then, if the bluetooth connection is established, we want it to read the numerical data from the bluetooth. If the incoming numerical data is equal to 1, that is, when we press the on button from the Arduino Bluetooth Controller application, bring our servo motor to 90 degrees. If it is equal to 0, that is, if we want to close our fish food cover, we tell our servo motor to bring it to 20 degrees.

 

Note: Servo motor angles may vary depending on how you attach the servo motor's brush. For this, it is important to try the angles in this project.

 

 

Right-click on the “Pinoo Program” command and select the “Install to Arduino” option in the window that opens.

 

 

On the page that opens, we click on the "Upload to Arduino" button, which is selected in red. 

Our codes are uploaded to our pinoo control card. 

After the “Installation Finished” message comes, click the “Close” button. After the installation is finished, the battery holder is inserted and the project is run.

 

Working Status of the Project:

 

  

Any object reminiscent of fish bait can be thrown into our cardboard. Then we can pour the fish bait as much as we want with the help of bluetooth from the android phone and then close the bait path.

ARDUINO IDE CODES:

#include <Servo.h> // we added the servo library

Servo servo; // name the servo object

void setup()

Serial.begin(9600); // starts serial communication 

servo.attach(2); // assigned to the 2nd pin of the servo motor

}

void loop()

if (Serial.available())

{ // Executes the codes if there is a Bluetooth connection  

int data = Serial.read();  

delay(100); 

  if (data == '1') { // if the incoming data is 1;     servo.write(90);

   }

else if (data == '0')

{ // if the incoming data is 0;     servo.write(20);   }

  }

}

IMG_4020.jpeg
IMG_4006.JPEG
IMG_4007.JPEG
IMG_4008.JPEG
IMG_4010.JPEG
IMG_4015.JPEG
IMG_4012.JPEG
333_large.jfif
44444_large.jfif
1_a8314da2-edff-4525-979d-b2d3ff93364b_large.png
pinoo_uzanti_480x480.jpg
seri_port_480x480.jpg
KART_480x480.jpg
pinooo_480x480 (2).jpg
aygit_yazilim_480x480.jpg
1_84cee91b-bc7f-46e9-bdb1-4672f9e95d32_large.png
1.JPG
2.jpg
3.jpg
IMG_4015.JPEG
bottom of page