⬆️ ⬇️

As I entered Baumanka, or “Step into the Future”

All good, habra users. Yes, I made a robot.



image



I am writing this post in order to popularize such a flow as the “Step into the Future” of MSTU. N. E. Bauman, because we all know that there are enough schoolchildren and those who are interested in modern education in Habrahabr.

')

“Step into the Future” is an Olympiad for high school students (10th and 11th), smart, ready to engage in scientific activities.









It consists of two stages:





Based on the results of the first part (i.e., how many balls you will get for the defense), the participant is allowed either to the second stage or filtered out.



It was a brief digression. Now I will tell you how I passed all the stages.

To begin with, I studied at the Lyceum at MSTU. N. E. Bauman as much as 2 years. Yes, they helped us, but they helped us only with the information that there is such an Olympiad and that with the help of it one can enter the university. I have been programming since I was 13 years old, and now I am successfully working for one of the companies.



First of all, I went to the office of the 354 main academic building. There I left information that I want such and such for such a department of such a faculty. It's simple.

After 2 months it was necessary to submit the project annotation. By this time, the participant should have already been given contacts by the supervisor, with whom, in fact, the participant is engaged in the project (I did everything myself). I was writing off my email account, and in the end I decided on the theme of the project (thanks to Habr). We came to the conclusion that I will be making an Arduino based robot, for this is cool and spectacular.



So, I have already ordered arduino duemilanove on ebay and I received it after a lot of time thanks to the Post of Russia. Good stuff. I tried to write a program that turns on and off the LED. Well, cool. What's next?

Then I absolutely did not know what to do next with this board. By searching on ebay, I found the wheeled platform mr. basics.







Yes, and I suddenly received it by mail. Chinese useless platform. In the end, she erased all the gears and she began to drive badly. I had to order another.







Mr. Basics I tried to connect to Arduino through transistors for a long time and hard, because the current didn’t have enough power to move the motors (I was pushed by my teacher, thanks to him, even though I started to understand circuit engineering a little). But the power is still not enough. Then I googled a motor shield for arduino, with which you can connect servos and motors. And besides, the shield has its own class for the arduino IDE. It really helped me. Connecting is simple, writing code is also easy. Now motors have earned.



To control the motors you had to write your software. I chose Qt. A simple program was written, where there were 4 arrows. By pressing, an array of data was sent through com-port to the board itself. The array contained: the direction of the right motor, the speed of the right motor, the direction of the left motor, the speed of the left motor.



Everything worked fine through the wire. Now I started looking for radio modules. Found some APC 220.







I ordered them on ebay. The Chinese seller assured me that one module would be enough for me to control the arduina from the computer. I was young and green, broke for a long time, but believed his perseverance. And, suddenly! It was necessary, of course, two modules. In general, they profited on me. He sent the second module to the wrong one (and I burned it), I had to look in Moscow.

APC 220 is very difficult to connect, there is no documentation, I fought a week just to get it connected.



Further, I was not enough, and I decided to connect the ultrasonic range finder in order to:

  1. determine the distance to the first obstacle
  2. automatically stop in front of this obstacle in order not to damage such expensive equipment.








For information on this module and in general for it thanks to Ilya Danilov (idanilov.ru). He helped me a lot with setting up and connecting.



In the end, this is a robot controlled via radio via PC:

image



image







In February, it was necessary to submit an abstract for protection, which described the stages of development of the robot. It turned out pages 20. He was reviewed and also put up balls. In March, the defense was already held, following the results of which they were allowed to participate in a physics competition. In May, the winners of the Olympiad were determined. This year both prize winners and winners arrived at MSTU.



Now I am a student of the Software Engineering Department of the Moscow State Technical University. N. E. Bauman. Thanks for attention.

Source: https://habr.com/ru/post/126211/



All Articles