I am a teacher of physics, computer science and astronomy in ordinary high school. I managed to work as a sysadmin-enikeyschik and friends with computers a little, I know how to work with sites a little, I understand php and MySQL a little. But in programming, I'm a little more than zero. This should slightly reduce your anger from reading the program I wrote, which I will show a little further.
')
In the spring of 2014, at the regional conference, he met LEGO WeDo and electronic collectors of LART-M LLC. I liked this business very much, but it was not with me.
It so happened that at the beginning of the school year I was offered to lead a robotics circle with LEGO Mindstorms NXT. Even the lack of experience with these sets did not bother the director of the regional house of childhood and youth. So far, it seems everyone is happy with me.
I got involved, I started to like robotics, but the prices for Lego just killed. Then I came across this
article . I contacted the company involved in the delivery of these kits to us and we agreed on a trial purchase of one set and further cooperation in the field of introducing this case to schools. After receiving this set in my tenacious pens, I began to try and use foul language ... I’ll tell you about the problems associated with this set if it is interesting. The main thing is not this.
At first I, of course, tried to connect sensors / buttons / diodes. Everything worked and sparkled. I even spoke at one regular regional conference and “broke the bank”. And there were only 2 photoresistors, 2 LEDs, 1 speaker, 1 button, 3 mirrors, 1 potentiometer (there were no more buttons at that time) and 1 laser pointer. This resulted in a small house that did the following:
1) light the LED above the entrance door when it is dark outside;
2) play a simple melody when they press the doorbell button;
3) light the LED in the “guard room” when someone rings the doorbell (all of a sudden the guard in headphones listens to music);
4) when unscrewing the potentiometer to the maximum (it will be necessary to replace the second button, the benefit now it is) the alarm went on - the internal photoresistor began to respond to the interruption of the laser beam from the pointer through the mirror system directed to it "from the street". When crossing the beam in the “guard room”, a siren rang and the LED came on.
After becoming acquainted with this set, I began to actively read about the Arduino and, in the end, I ordered a set with an Arduino UNO (or rather, a Chinese equivalent with a wild name) and a bunch of details on Aliexpress. And then Ostap suffered (s) ...