Elevator System with Pinoo

Purpose of the Project: To create an elevator system with distance sensor and dc motor using the Pinoo Control Card.

Duration: 2 lessons

Age Group: 9 years and older

Pinoo Set: Pinoobot kit and full set.

Benefits:

  • Learns to code the Pinoo control card.
  • Learns to code the distance sensor.
  • Dc engine learns to code.
  • Algorithm building skill develops.
  • Coding skill improves.

 

Materials to be Used: Mblock 3 program, Pinoo Control Card, Distance sensor, Dc motor-2 wheel rollers, Connection Cable

 

 

Materials Required for Design: 2 rolls of towel paper, tongue stick, string, cardboard, colored cardboard, scissors, silicone gun, medium-sized box

 

 

           

  

Project Preparation:

 

Glue two rolls of towel paper together and get a long roll. If it is too long, you can shorten it.

 

 We fix the motor on one end of the roller. We attach the pulley of the wheel.

 

 We fix the wheel pulley on one end of the tongue bar. We secure the wheel pulley to the roll by passing the free end of the tongue rod through the roll.

 

We will use rope to establish a connection between two wheel pulleys. This connection will be the main component of the elevator system.

We pass two separate ropes of the same length over the reels. The important thing here is that we have to thread the ropes tightly on the reels.

 

We design a colored cardboard elevator door and fix it in the middle of the ropes.

 

 We cut the top cover of the box and cut a window in the middle of the base.

 

 

We fix the roll inside the window that we cut on the box. The important thing here is that a part of the wheel pulley remains in the box because we want the elevator door to touch the box / floor.

*** If you have any problems with fixing, you can get help from the tongue stick.

 

We fix the distance sensor on the floor so that it can see the entrance door of the elevator. We attach the RJ-11 Cable and hang it from the window on the box to the inside of the box.

 

You can decorate the design as you wish.

 

Let's make our connections. We fix our Pinoo board to the floor. We connect the motor cable to the A1 / A2 input from the appropriate inputs for the motor, and our distance sensor to the purple / green input number 5 with RJ11 cable.

After completing the connections, we hide the Pinoo card inside the box.

 

Connection and Coding:

 

We have completed our connections, now let's move on to the coding part. We will use the mblock-3 application for this.

 

Let's connect our Pinoo Control Card to the computer with the help of a connection cable and enter the Mblock3 application. Then, let's introduce our Pinoo Control Card to the computer. To do this, we first click on the serial port option from the ‘’Connect’’ tab. Then we select COM3. (The number may differ depending on the computer and the port.)

 

After making the serial port connection, let's select the card we will use from the cards tab. We are working with Arduino Nano model.

 

In order to add the Pinoo extension to our computer, we click on the manage extensions option from the extensions tab. In the window that opens, we type "Pinoo" in the search engine and click download to the result. It has been installed on our computer.

 

We come to the extensions tab again and click on the Pinoo option. We will write our codes with the Pinoo extension.

 

In the coding part; To start the application, we get the code when the Green Flag is clicked from the ‘’Events’’ menu.

 

 

We will get help from the dummy to learn the value read by the distance sensor. For this, we get the hello command from the ‘’view’’ tab. Instead of the word Hello, we take the code block for the distance sensor in the robots tab. We change the pin input to Pinoo5 that we connect.

Since we want it to do the reading process continuously, not once, we take all our codes into the continuous repeat block from the ‘’control’’ tab.

 

Let's click on the green flag and observe the change of values ​​by moving our hand closer to the sensor and away. Let's move our hand closer to the elevator entrance (sensor) and take note of the value read by the sensor. 

 

If the value read by the distance sensor is less than 4, that is, the person is in front of the elevator door

  •  motor starts running in reverse direction for 0.8 seconds
  • Motor stop for 3 seconds
  • the motor moves forward 0.8 sec.
  • and finally the engine stops running.

If it is greater than 4, if there is nobody in front of the elevator, the engine will stop working. Now let's put this into a code.

Here we will make use of the small and large comparison operators from the if block and operations tab in the control tab.

 

Let's complete the start-stop codes of the elevator motor according to the condition to be provided. From the Robots tab, we get the PinooBot Direction: Forward Speed: 0 code block.

Based on the algorithm we wrote in the previous step, we change the direction to forward or backward, to 0 to stop the engine and to 255 to run the engine.

We also take the wait 1 second command from the control tab and place it in appropriate places according to the algorithm.

Since we want this process to be constantly controlled, we place all blocks in the repeat block.

 

If there is nobody in front of the elevator, we wanted the motor to stop. For this, we get the PinooBot Direction: Forward Speed: 0 code block from the robots tab.

 

 If there is nobody in front of the elevator, we wanted the motor to stop. For this, we get the PinooBot Direction: Forward Speed: 0 code block from the robots tab.

If there is no problem in the operation of our project, we need to load the codes we have written into our card in order to run our project with a power source independent of the computer.

If there is no problem in the operation of our project, we need to load the codes we have written into our card in order to run our project with a power source independent of the computer.

 

  

 Right click on the code and click on Upload to Arduino. (We work with Arduino as a board.)

 

Right click on the code and click on Upload to Arduino. (We work with Arduino as a board.)

 

 If there is no problem, we disconnect our power cable from the computer. We power our Pinoo Control board with the help of a 9v battery and a battery cap. We also turn the on / off button right next to the battery input to the on position.

  

 

With Pinoo sets, children can make hundreds of projects with materials they can easily find in their homes.