A computer is a device that allows us to solve a wide variety of problems: from the simplest calculation to controlling a space rocket. But how can we get a computer to do all of the above?. By writing appropriate programs for it. A program is nothing but a sequence of instructions to solve a particular problem. The computer executes the programs that we write for it. The word programming refers to the activity of writing programs. Due to the prevalence of computers and computing devices, programming is one of the key skills today. In programming, we come across different principles: conditional statements, loops, event statements and various expressions. Learning these can be very tiring and difficult for some. Since most of the students have already encountered playing with Lego blocks while growing up, we decided to try to learn the basic principles by programming LEGO robots. First, we assembled a LEGO robot that will move (vehicle, animal, etc.). We attached some sensors to it (light sensor, touch sensor, ultrasonic sensor, etc.) with which we added intelligence to the robot. Then, using the LEGO robot programming software, we wrote a program that allowed the robot to move in certain situations (when touched, at a certain distance from an obstacle, in certain light, etc.). We used basic principles in the program and thus learned the basic principles of programming.
Read full abstract