top of page

Smart Bridge

Project Purpose: To make a bridge project by using distance sensor and servo motor with Pinoo Control Card.

Duration:  2 lessons

Age group:  7 years and older

Pinoo Set:  Basic set, invention set, maker set and full set.

Achievements:

  • Learns to code Pinoo control board.

  • Learns to use distance sensor.

  • Learns to use servo motor.

  • Develops algorithmic skills.

  • Coding skills develop.

  

Materials to be used:  Mblock 3 program, pinoo control card, 2 servo motors, 1 distance sensor

 

  

 

Materials Needed for Design: Large forex, scissors and a utility knife, colored cardboard, glue gun and silicone.

 

 

  

  Project Construction:

Let's start with the bridge design for our project. We cut 1 piece of 40x20 cm and 2 pieces of 20x10cm from the forex. Let's use a utility knife to cut it. You can cut it by going over it several times.

 

 

We silicone the 2 pieces to the middle points of the large piece, with a distance of 30 cm between them. The bridge will have pillars.

 

We cut 2 small pieces from the forex.

 

We siliconize the parts we cut in such a way that they are opposite to the midpoints of the poles.

 

We remove the end parts of the servo motors and siliconize them oppositely.

 

We silicon the distance sensor in front of one of the poles.

We attach the connection cables of the distance sensor and the servo motor.

We attach the distance sensor to the 1st and 2nd Doors of the servo motors to the 5th Door.

We cut 2 strips of 15x5cm from colored cardboard.

  We connect the USB connection cable to the Pinoo control card and the computer. We will attach the ends of the servo motor after adjusting the angles in the coding part.

 

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:

 

We make the angles of the servo motor 80 degrees using the up and down arrow keys.

 

We attach the ends of the servo motor vertically. On top of it, we siliconize the colored cardboard pieces that we cut.

 

When the green flag is clicked, we are constantly writing the necessary codes to show the distance value on the screen.

 

If not, we add our condition block and write our condition that the value read by the distance sensor attached to the 5th door is less than 20.

 

 

If our condition is true, we make the angle of the servo motor attached to the door 0 degrees. We wait 0.1 seconds. 2. We make the angle of the servo motor attached to the door 0 and wait for 3 seconds. The bridge will be opened.

If our condition is not correct, we make the angle of 80 degrees on 2 servo motors at 0.1 second intervals. The bridge will be closed.

In order to upload our codes to the Pinoo control card, we make our event start with the "Pinoo Program" command and delete the code block we used to show the distance value on the screen.

  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 red.

 

 

Our codes are uploaded to our Pinoo control card.

 

  

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

 

Working Status of the Project:

Our project will look like this in the first place.

 

The bridge will open when the distance sensor detects the car.

 

 

After a while, it will be closed and other vehicles will be able to pass over the bridge above.

1.JPG
Adsız.png
5.JPG
6.JPG
7.JPG
8.JPG
9.JPG
10.JPG
11.JPG
12.JPG
13.JPG
14.JPG
pinoo_uzanti_480x480.jpg
1_a8314da2-edff-4525-979d-b2d3ff93364b_large.png
seri_port_480x480.jpg
KART_480x480.jpg
pinooo_480x480 (2).jpg
aygit_yazilim_480x480.jpg
15.png
16.JPG
17.png
18.png
19.png
20.png
21.png
22.png
23.png
24.png
25.png
26.png
27.png
28.png
bottom of page