top of page

Sunflower

Project Purpose: To make a sunflower project using Pinoo Control Card, servo motor and ldr module.

Duration:  2 lessons

Age group:  7 years and older

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

Achievements:

  • Learns to code Pinoo control board.

  • Learns to use ldr module.

  • Learns to use servo motor.

  • Develops algorithmic skills.

  • Coding skills develop.

 

Materials to be used:  Mblock 3 program, pinoo control card, ldr module, servo motor

 

 

Materials Required for Design:  Forex, scissors and utility knife, A4 paper, cardboard, crayons, acrylic paint and brush, glue gun and silicone.

 

 

Project Construction:

 

Let's start with the sunflower design for our project.

 

 

We draw a picture of a sunflower on A4 paper. We paint this picture with colored crayons. Then we cut it with scissors.

 

 

From the cardboard we cut a circle the size of the back of the sunflower. We silicone the cut cardboard on the back of the sunflower.

 

 

We cut a hole big enough for the ldr module to enter the middle of the sunflower with a utility knife. We place the Ldr module and silicon it.

 

 

 

We cut a 2x8 cm long piece of forex with a utility knife. We paint the piece we cut with green color with acrylic paint.

 

 

We silicone one end of this piece to the back of the sunflower. On the other end, we siliconize the tip of the servo motor.

 

 

We cut 3 pieces of 15x5cm length and 1 piece of 15x15xcm length from forex with a utility knife. We obtain a platform by siliconizing the other small pieces perpendicularly to the 3 sides of the large piece.

 

 

Using a utility knife, we create a hole large enough for the connection cable to pass through to the front of the large piece at the top. We silicone the servo motor next to this hole.

 

We attach the servo motor to the 1st port on the Pinoo control card. In order to install the Ldr module, we attach the connection cable to the 7th door.

 

We pass the cable attached to the 7th door through the hole we have created.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

We attach the end of the servo motor in the sunflower to the servo motor.

 

We plug in the connecting cable of the Ldr module.

 

We plug the usb cable into both the Pinoo card and the computer. Now we can start coding.

 

 

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 "COM4" 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:

 

First, we write the necessary codes to see the value of the ldr module installed on the 7th door on the screen. As we hold the Ldr module to the light, we will see that the value changes on the screen.

 

After seeing the changed values, we delete the codes. Click on the Data/Block field and click on Create a Variable. Enter a degree in the field that opens and click the OK button. We have created a variable named degrees.

 

 

We start with the Pinoo Program code block. Then we use the code block again and again.

 

 

We add the conditional structure, if any, into the repeat code block. Then we create our condition. Our condition is that the value of the light sensor (ldr module) attached to the 7th door is greater than 850. Here 850 is an illuminance value, so when we hold the flash we get a value greater than 850. This value may vary depending on the ambient light value.

 

If so, we write our condition by adding the code block, repeat until we are inside the code block. Our condition is that the value of the ldr module attached to the 7th door is less than 850. So here we are stating that it should work until the light goes out.

 

 

 

 

 

 

 

 

 

 

Repeat until we are increasing the value of the degree variable by 1 inside the code block.

 

 

We specify the angle of the servo motor attached to the 1st door as a degree variable.

 

 

 

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

 

 

 

 

 

 

 

 

 

On the page that opens, we click on the "Upload to Arduino" button, which is selected in blue. Our codes are uploaded to our pinoo control card.

After the “Installation Finished” message comes, click the “Close” button.

 

Working Status of the Project:

 

 

We insert the 9V battery. We make sure that the Pinoo card is ON.

 

 

You can try holding a flashlight on the Ldr module with your phone.

1.JPG
Ekran_Alintisi_f68c6a97-c591-4df7-b41b-1a8bed61d907_480x480.jpg
9.JPG
10.JPG
11.JPG
12.JPG
14.JPG
13.JPG
15.JPG
19.JPG
20.JPG
21.JPG
22.JPG
23.JPG
24.JPG
25.JPG
26.JPG
Screenshot_1_480x480.jpg
27.JPG
28.JPG
29.JPG
pinoo_uzanti_480x480.jpg
1_a8314da2-edff-4525-979d-b2d3ff93364b_large.png
KART_480x480.jpg
seri_port_480x480.jpg
aygit_yazilim_480x480.jpg
pinooo_480x480 (2).jpg
40.png
41.png
42.png
43.png
44.png
45.png
46.png
47.png
48.png
49.png
52_c5b3da8b-ba0b-4dc1-a956-0c622b2a0a73_480x480.jpg
53.PNG
bottom of page