Fish Feed System with Pinoo
Purpose of the Project: To make a phone-controlled fish feed system using a Bluetooth module and servo motor with the Pinoo Control Card.
Duration: 2 lessons
Age Group: 9 years old and over
Pinoo Set: Maker set and full set.
- Learns to code Pinoo control card.
- Learns to use the Bluetooth module.
- Learns to use servo motor.
- Improves the skill of setting up algorithms.
- Improves coding skill.
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 cartoon, utility knife, scissors, gray round mirror cardboard, silicone gun and silicone.
For our project, we first make a half cut with a utility knife so that it will not cut our towel napkin inner cartoon completely in the middle.
We place our mirrored round cardboard in the part we cut and fix our servo motor appropriately to the end of our round cardboard with the help of a silicon gun.
We also fix our servo motor on the cardboard.
We make sure that our cartoon completely covers the path inside.
We fix our tongue cartoon on the edge of the glass storage container.
Then we connect the servo motor and the bluetooh 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 from our phone that works with the Android operating system. Then, after opening the application, we select our HC-06 bluetooth module. Then we complete the matching by entering the password as "1234" for matching.
Then a window appears, we choose the "Switch Mode" option since we will do 2 operations, that is, the opening and closing operation. On the next screen, we click on the settings section on the upper right. From here, we write the closing operation that we will do in our codes as 0 opening operation and confirm it.
Adding Pinoo extension:
From the Extensions tab, we click on the "Manage Extensions" option.
In the window that opens, we type "Pinoo" into the search engine and simply say download to the result. It was installed on our computer.
Connecting the Pinoo sensor board to the computer:
In Mblock 3, we click on the "Connect" tab on the upper left.
We click on the "Serial Port" section from the opened window and select the "COM6" option from the opened page.
NOTE: Since the port entries of each computer are different, the numbers next to COM text can vary.
We click on the Cards tab.
We select the "Arduino Nano" card option used by the Pinoo sensor card from the window that opens.
We click on the Extensions tab.
In the window that opens, we select the extension "Pinoo" of the sensor card we use.
We click on the Connect tab.
We click on "Firmware Update" from the window that opens.
We run the servo motor under the "key is pressed" command to start it. Since the servo motor works between 0 and 180 degrees, we are trying both angles.
We add our code block, which introduces the connection points 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 bluetooth. If the incoming numerical data is equal to 1, that is, when we press the open 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 it to turn our servo motor to 20 degrees.
Note: Servo motor angles can vary depending on how you install the brush of the servo motor. For this, it is important to try angles in this project.
We right click on the "Pinoo Program" command and select the "Upload to Arduino" option in the window that opens.
On the page that opens, we click the "Upload to Arduino" button selected in red.
Our codes are uploaded to our Pinoo sensor card.
We click on the "Close" button after the "Download Finished" text appears. After the installation is finished, the battery compartment is inserted and the project is run.
Working Status of the Project:
Any object that resembles a fish meal can be thrown into our cardboard. Then we can pour the fish food as much as we want with the help of bluetooth from the android phone and then close the feed path. See you in another project.