Guitar With Button and Pinoo

by pinoorobotics in Circuits > Arduino

148 Views, 0 Favorites, 0 Comments

Guitar With Button and Pinoo

Pinoo ile Gitar - Guitar with Pinoo

Purpose of the Project: To make a guitar project using the Pinoo control card and buzzer-button modules.

Duration: 2 lessons

Age Group: 9 years and older

Pinoo Set: Basic Set, Invention Set, Maker Set, Full Set.

Benefits:

• Learns to code Pinoo control card.

• Learns to use a LED module.

• Learns to use buzzer module.

• Improves the skill of setting up algorithms.

• Improves coding skill.

Supplies

Required Materials: Mblock 3 program, Pinoo control card, 5 button modules, 1 buzzer module

Materials Required for the Design: 2 large pink cardboard, scissors and a utility knife, silicone gun and silicone.

Desing (Part1)

5.JPG
6.JPG
7.JPG
8.JPG
9.JPG
10.JPG
11.JPG

  • For our project, let's start by designing the guitar first.
  • We design the front part of the guitar and cut it with scissors.
  • We design the back of the guitar and cut it with scissors.
  • We draw a circle on its front part.
  • We cut the round part we have drawn with a utility knife.
  • We cut 2 strips 4 cm thick and 26 cm long. Again, we cut 4cm thick pieces that do not notice the length. (we will use it to cover the sides)
  • We silicon the pieces of equal length perpendicular to the back of the guitar's stem.
  • We silicon the remaining parts perpendicularly around the lower part of the guitar.

Desing (Part2)

12.JPG
13.JPG
14.JPG
15.JPG
35.PNG
17.JPG
18.JPG

  • We silicon the 5 button modules on the guitar.
  • We also silicon the buzzer module on the guitar.
  • We attach the connection cable of the first buzzer module and silicon it.
  • We attach the connection cables of the other 2 buzzer modules and silicon.
  • We attach and silicon the connection cables of all buzzer modules.
  • We attach the connection cables of the modules to the Pinoo control board. We install the buzzer module on the 1st door. Other buttons 2,3,4,5,6. we attach to the doors.
  • We connect the USB connection cable to the Pinoo control card and to the computer. Now we can start coding. (We will close the back part when coding is finished.)

Adding Pinoo Extension

a2.jpg
a3.jpg

  • 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 Control Board to the Computer

a4.jpg
a5.jpg
a6.jpg
a7.jpg

  • In Mblock 3, we click on the "Connect" tab on the upper left.
  • We click on the "Serial Port" section from the window that opens and select the "COM6" option from the page that opens. NOTE: Since the port entries of each computer are different, the numbers next to the COM text may change.
  • We click on the Cards tab.
  • We select the "Arduino Nano" card option used by the Pinoo control card from the window that opens.
  • We click on the Extensions tab.
  • In the window that opens, we select the extension "Pinoo" of the control card we are using.
  • We click on the Connect tab.
  • We click on "Firmware Update" from the window that opens.

Coding

13_d5889f83-b6f5-4170-a56c-7e4630ed0979.png
15_5a362c13-c8ca-44b8-a83b-78e94f52091e.png
17_a3801884-9672-45d5-8c43-49b79c0c0ce1.png
19_39c8885e-ede1-4926-b113-d7ca57e05289.png
21_a15674e6-134e-410e-95c4-f248c80f8f7c.png
22_9a440630-66d0-42ad-9a58-2c4946cf29cd.png
23_ecd130e9-29cb-4a1f-ab90-dcd718fed821.png
31.JPG
32.JPG
33.JPG
34.JPG

  • We start with the Pinoo Program code block. We will check the button statuses continuously.
  • Then, we take the condition structure ‘if it is’ and specify our condition. Our condition is that the value of the button attached to the door is equal to 1. (That is, if the button module is pressed)
  • If our condition is correct, we make the sound from the buzzer module attached to the door.
  • (you can choose the note you want)
  • We specify our other requirement. Our condition is that ‘’the value of the button attached to the door is equal to 1’
  • If our condition is correct, we make the sound from the buzzer module attached to the door.
  • (you can choose the note you want)
  • We specify our other requirement. Our condition is ‘the value of the button attached to the 4.door is equal to 1.’
  • If our condition is correct, we make the sound from the buzzer module attached to the door.
  • (you can choose the note you want)
  • We specify our other requirement. Our condition is ‘the button value attached to the 5.door is equal to 1.’
  • If our condition is correct, we make the sound from the buzzer module attached to the door.
  • (you can choose the note you want)
  • We specify our other requirement. Our condition is 6. The button attached to the door is equal to 1.
  • If our condition is correct, we make the sound from the buzzer module attached to the door.
  • (you can choose the note you want)
  • 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 control card. We click on the "Close" button after the "Download Finished" text appears.
  • We silicon the Pinoo control card inside the lower part of the guitar.

Working Status of the Project

16.JPG
36.PNG

  • When we click the buttons, notes will appear from the buzzer module.