Crosswalk With Pinoo
Aim of the Project: To make a safe crosswalk project using Pinoo Control Card with LED module and servo motor.
Time: 2 lessons
Age Group: 9 years old and above
- Learns to code the Pinoo control card.
- Learns to use led module.
- Learns to use servo motor.
- The ability to create algorithms improves.
- Coding skill improves.
Required Materials: Mblock 3 program, pinoo sensor board, led module, servo motor module.
Materials Required for Design: Cardboard, colored cardboard, adhesive cardboard, toothpick, tongue blade, box, silicone gun and silicone͘
Implementation of the Project:
- Let's start with road design for our project first. We will use cardboard to design the road. Let's create the ground with cardboard
We cut the piece of cardboard in a rectangular shape.
We stick black thinner cardboard on the piece of cardboard we cut.
We cut 4 tiny pieces of green eva to give the appearance of grass
We stick it to the 4 corners of the floor.
We cut 4 pieces of gray eva.
We cut yellow and white rectangular pieces.
We glue the cut pieces that we cut to form a crosswalk and path.
We make fences on the roadsides with toothpick͘.
We stick the fences to the roadsides and we make the top left part after placing the servo motor͘.
To add the servo motor, we use a small cardboard support and complete the fence͘.
We stick the servo motor.
NOTE: Check the angles of the servo motor and stick it according to the angle of rotation.
We place the tongue stick on the servo motor. (To act as a barrier)
We make a long stick or box to stick the leds.
We place the box on the floor and stick the leds on it͘.
We will use a small box to store the pinoo sensor board.
We insert the pinoo sensor board inside the box and cut the part where the cables will pass.
We plug in cables.
This is the version of electronic components installed.
2. Adding a Pinoo extension:
We click on the option "Manage Extensions" from the Extensions tab.
the window that opens, we write "Pinoo" in the search engine and it is enough to click download to the result.Installed on our computer.
3. Connecting the Pinoo sensor board to the computer:
In Mblock 3, we click on the "Connect/Bağlan" tab in the upper left.
We click on the "Serial Port" section from the window that opens and select the "COM6" option from the opened page.
NOTE: Since the port entries of each computer are different, the numbers next to COM may change.
We click on the “Cards/Kartlar” tab͘
From the window that opens, we select the “Arduino Nano” board option used by the pinoo sensor board.
We click on the “Extensions/Uzantılar” tab͘
In the window that opens, we choose the extension of the sensor board “Pinoo” we use.
We click on the “Connect/Bağlan” tab͘
We click on "Firmware Update/Aygıt Yazılımı Güncellemesi" from the window that opens.
Let's flash our LED modules under the command "when the button is pressed/tuşu basılınca".
To start the servo motor, we run it under the command “when pressed”. We try both angles because the servo motor operates between 0 and 180 degrees.
Let's flash both led modules in 3 sec intervals. The logic of the system here is this; While the red led is on, the green led is off at that moment.
While the red led is on, our servo motor will make an angle of 160 degrees, that is, it will be off. While the green led is on, our servo motor will make a 45 degree angle.
IMPORTANT: Be sure to try your angles, there may be different angles in each example͘ The reason for this is the position of the servo motor.
NOTE: In this project, our light platform is for pedestrians.
In order to load our codes on the pinoo sensor card, we start the event "Pinoo Program" command.
We right click on the "Pinoo Program" command and select the "Upload to Arduino/Arduino’ya yükle" option in the window that opens.
In the page that opens, we click on the "Upload to Arduino/Arduino’ya Yükle" button, selected in red.
Our codes are loading on our pinoo sensor card͘.
We click on the "Close" button after the "Loading is Over/Yükleme Bitti" message. After the installation is finished, the battery socket is inserted and the project is run.
5.Final version of the project:
The red led is on and the servo motor is off, so pedestrians cannot pass.
When the green led is on, the servo motor is on, so pedestrians can pass.