Stone-Paper-Scissors Game With Pinoo
Introduction: Stone-Paper-Scissors Game With Pinoo
Purpose of the Project: Creating a rock-paper-scissors game with a servo motor module, joystick module, module with lcd (I2c) and distance sensor using the Pinoo control card.
Duration: 2 lessons
Age Group: 7 years and older
Pinoo Set: Maker Set, Full Set.
Benefits:
• Learns to code Pinoo control card.
• Learns to code the distance sensor.
• Learns to code the Servo Motor module.
• Learns to code the joystick module.
• Learns to code the LCD module.
• Improves the skill of setting up algorithms.
• Improves coding skill.
• Design skill develops.
• Designs and plays his own game
Supplies
Materials to be Used: Mblock 3 program, Pinoo control card, distance sensor, 3 servo motor modules, connection cables, joystick module, module with LCD (I2C)
Materials Required for Design: Dekota, colored cardboard, cardboard in different colors, eva, silicone gun and silicone, pencil, screwdriver, scissors, knife, ruler.
Step 1: Project Preparation
* We draw the hand shapes of the stone, paper, scissors game on the colored cardboard and cut them with the help of scissors.
* Using a ruler and pencil, we draw two 36x30cm rectangles on the deco. We cut rectangles with the help of a knife.
* Using a ruler and pencil, we draw two 10x36cm rectangles on the decorate and cut them with the help of a curved knife.
* Using a ruler and pencil, we draw two rectangles of 10x30cm on the decorator and cut them with the help of a curved knife.
* With the help of a silicon gun, we glue the pieces we cut from the decota as shown in the figure and form a box.
* Note: We do not paste the upper part of the box, we will paste it after our codes are finished.
* We drill rectangular holes as far as the Pinoo control card can pass, to coincide with the back of the box we created.
* We take the part we cut for the top of the box. By placing the sensors and modules we will use on it, we determine their positions.
* Note: We arrange the hands so that they do not hit each other and the sensors.
* We draw the eyes of the sensor on the section we have set to place the distance sensor and cut it with the help of a knife.
Step 2: Circuit
* With the help of a silicon gun, we mount the servo motor modules and the distance sensor to the holes we drilled as shown in the figure.
* We install the propellers of the servo motor modules horizontally, with their ends facing left and right. We fix the screws using a screwdriver to be strong.
* NOTE: Before fixing the propellers of the servo motor modules, we definitely encode them to 180 degrees!
* We assemble the stone, paper and scissors drawings we made at the very beginning of the design to the propellers of the servo motor modules with the help of a silicon gun as shown in the figure.
* We mount the joystick module to the square hole we drilled with the help of a silicone gun.
* We connect the LCD (I2C) module to the converter so that the GND parts correspond to each other. 997
Then we mount it to the rectangular hole we opened with the help of a silicone gun.
* We make connections with the modules of the servo motors in a way that corresponds to the "Brown cable-GND, Red cable-5V, Orange cable-D0".
* We connect the modules and the sensor to the Pinoo control card with the help of a connection cable. We connect the LCD (I2C) module to the red / white input number 10.We connect the joystick module to the red / yellow input number 9.
* We connect the distance sensor to the purple / green input number 5. When we reverse the decode, we connect the servo motor modules to the purple inputs 2,3,4 respectively, starting from the left. (scissors-2nd entrance, paper-3rd entrance, stone-4th entrance)
* We draw the hand shapes of the game of stone, paper, scissors again on colored cardboard and cut them with the help of scissors.
* We assemble the upper part of our box with the help of a silicon gun as shown in the figure. Then we decorate it with evas and hand shapes as we want.
* NOTE: It will be healthier to assemble the upper part of the box after the coding is completed. 997