Skip to main content

Posts

Showing posts from April, 2022

Traffic Light with Mblock - 2

  In our previous application, I explained how to make a Traffic Light Application inArduino with Mblock . In this application, we will find the number of vehicles passing the red light by making additions to the mblock with the traffic light application First of all, we find a traffic light on the internet. At first, all the lamps are dark, by painting the red light, by painting the red and yellow light, by painting the yellow light, and finally, by painting the green  and green light, the sprite has 5 disguises in total. When each LED is on, which LED will light up, it will be disguised. After adding our traffic light, we add a road image to the background decor. In addition, we find a car picture on the Internet for the car that will pass on the road and add it. I drew a line on the road and painted it red in order to detect the people passing through the red light.   Now it's time to move the car. Below are the codes that we will write inside the car1 sp...

A Digital Footprint Test with Scratch

       In the lesson, we will do the digital footprint test of our students with scratch. For this, we add a sprite to our screen that will give instructions to the test, and 2 buttons for yes and no answers. Since the answers to the questions we ask will be yes and no, we create variables that will keep the number of yes and no. At the end of the test, we multiply the sum of the yes numbers by 2 and the sum of the no numbers by 1. We assign the result to the yes score and no score variable. We add the values ​​in these variables and assign them to the total score variable. The numerical values ​​of the result have a corresponding value. I will give them at the end of the article. Let's move on to the coding part;        We write the following codes inside our human sprite.           When the green flag is clicked, we set the variables that hold the total result to 0. The purpose of zero is that when we restart the test,...

Computer Input and Output Hardware Units Game Making with Scratch

 In this application, we will make a game of computer input and output hardware units with the scratch program. The game will be as follows; The user will be prompted to drag and drop pieces of hardware into the input and output device areas. If the user places the piece of equipment in the correct area, he will receive 5 points, if he places it in the wrong area, he will lose -5 points. Now it's time to code our game in the scratch program. First of all, we draw the sprites on which we will place the input and output hardware units from the costumes menu. After that, we add the hardware units that we downloaded to our computer before and the emoji expressions and the sound of applause when it is right or wrong. Let's come to the code part;   If the person playing the application places the equipment in the correct area, he will gain 5 points, if he places it in the wrong place, he will lose -5 points. For this we need a variable to hold the score. We create a variable calle...