top of page

Talking PinooBot

Project Purpose: Using Pinoo Control Card, pinoobot, distance sensor, light (ldr) sensor and LCD display  Build a talking pinoobot system.

Duration:  2 lessons

Age group:  7 years and older

Pinoo Set:  full set.

Achievements:

  • Learn to code Pinoo control board

  • Learns to code the distance sensor.

  • Learns to code the light (LDR) sensor.

  • Learns to code the LCD screen module.

  • Pinoobot learns to code.

  • Develops algorithmic skills.

  • Coding skills develop.

 

Materials to be used:  Mblock 3 program, PinooBot, distance sensor, LCD display module, light(LDR) sensor, connection cable.

 

 

Materials Needed for Design: Forex, scissors, glue gun, paint

  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  Project Construction:

 

 

We cut a rectangular piece of LCD screen size from Forex.

 

We stick the rectangle on the LCD screen to form a floor. We paint the floor in the color we want.

 

We fix the lcd module with a silicon gun on the distance sensor pin input (label).

 

We fix the light sensor to the back of Pinoobot with screws or with a silicone gun.

 

Let's make our connections. To our Pinoo card on Pinoobot;

  • Distance sensor to purple/green input 6,

  • Light sensor to red input 10,

  • We connect the LCD module to the red/white input number 10 with a connection cable.

 

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 the connection cable and log in to the Mblock3 application. Then let's introduce our Pinoo Control Card to the computer. For this, we first click on the serial port option on 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 choose the card we will use from the cards tab. We are working with the Nano model of Arduino.

 

 

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 write “Pinoo” in the search engine and it is enough to say download to the result. Installed on our computer.

 

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

 

In the coding part; We start our codes with the Pinoo program block in the robots tab, since the LCD screen can only run its unique code blocks if it is uploaded to the arduino card.

 

We are introducing the type of our lcd screen. The type of lcd screen we use is the 0x27 model.

 

Since all the code blocks we will write must work continuously, we get the code block from the control tab.

 

 

We will print text on the lcd module according to the values we get from two separate sensors. First of all, we will start with the light (LDR) sensor.

If the light value is less than 300, the LCD screen on the pinoo bot will give us the night output. If it's not greater than 300, it should output daylight. To create the condition loop, we get the expression if not from the control tab.

 

To create the condition section, we get the expression less than from the operations tab. In the first box, we place the code block related to the light sensor from the robots tab. We change the pin number to pinoo8. In the second box, we write 300.

 

If the light value is less than 300, we get the command Pinoo LCD print: Address 0x27 Row:1 column:1 in order to be able to print NIGHT on the LCD screen. We update the column section as 5 Summer and the NIGHT section.

If not, we get the same code to write DAY on the LCD screen and update the column number 5 as DAY.

***The reason we changed the column section to 5 is that we want to position the text in the middle of the screen.

 

The second sensor we will use is the distance sensor. When Pinoobot encounters an obstacle/human while on the move, let it stop for a certain time and say HELLO to us on the second line of the LCD screen! say.

If Pinoobot does not meet anyone, it should move forward and give WHERE ARE you on the second line of the LCD screen.

 

In order to understand whether the distance sensor is approaching/approaching a person, we will use the if-if not condition expression. From the Control tab, we get the expression if not.

 

 

 

 

 

 

 

 

 

 

 

 

 

In order to create the condition section, we take the statement that it is less than the operations tab. In the first box, we place the code block related to the distance sensor from the robots tab. We change the pin number to pinoo6. In the second box, we write 10.

 

 

 

 

 

 

 

 

 

 

 

 

If the distance value is less than 10, HELLO! In order to print the expression, we get the command to print Pinoo LCD: Address 0x27 Row:1 column:1. Row section:2 Column section 4  And the summer part, HELLO!  as we update.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HELLO with LCD ! After that, we first get the Pinoo Bot Direction Forward, Speed 0 command from the robots tab in order for Pinoo Bot to stop for 2 seconds.

In order for it to stay in the stop motion for 2 seconds, we get the wait for 1 second command from the control tab and update the number 1 to 2.

After Pinoo Bot completes the stopping process, we get the command Pinoo Bot Direction Forward, Speed 0 from the robots tab so that it can go off to the right at 150 speed. We update the Direction section to Right and the Speed section to 150.

 

If not, we get the command Pinoo LCD print: Address 0x27 Row:1 column:1 in order to print WHERE ARE YOU on the LCD screen. Row section:2 Column section 4  WHERE ARE YOU in the summer part?  as we update.

 

In order for Pinoo Bot to search for people-obstacles, it needs to move at 150 speed in the forward direction. From the robots tab of this, we get the Pinoo Bot Direction Forward, Speed 0 command. We update the speed section to 150.

 

 

In order to understand if there was any problem in the operation of our project, we had to upload our codes into the arduino. For this, we right-clicked the code block of the pinoo program and clicked the upload to arduino option. .( We work with arduino as a board.)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

We are waiting for the codes to be uploaded to the card. After the installation is complete, we close the window.

 

  When the codes are loaded, we may encounter four different situations. These are;

  • Pinoobot should move forward in a bright area and if there is no person in front of it, it should write DAY and WHERE ARE YOU on the LCD screen.

  • If there is no one in the dark area and there is no one in front of it, NIGHT and WHERE ARE YOU should be written on the LCD screen.

  • Pinoobot should move forward in a bright area and if there is anyone in front of it, it should write DAY and HELLO expressions on the LCD screen.

  • If there is someone in the dark area and in front of him, NIGHT and HELLO should be written on the LCD screen.

 

 

If there is no problem, we remove our power cable from the computer. We power our Pinoo Control card with the help of a 9v battery and a battery cap. We also bring the on-off button, which is right next to the battery input, to the on position.

1.jpg
2.JPG
3.jpeg
4.jpg
5.jpg
6.jpg
5.jpg
8.PNG
9.PNG
10.PNG
11.PNG
pinooo_480x480.jpg
13.JPG
14.JPG
15.JPG
16.JPG
17.JPG
18.JPG
19.JPG
20.JPG
21.JPG
22.JPG
23.JPG
24.JPG
25.JPG
26.png
28.png
29.jpg
30.jpg
31.jpg
bottom of page