How we created the laboratory stand for the overseas discipline "Informatics"

How long does the story affect, whether the matter is arguably done, but I got the feeling that the student has now gone some other way. Not that he who does not listen, and not so much stupid as unbeliever. He does not believe that he can do something worthwhile with his own hands. And since our specialty is “Management of technical systems” and without “direct working hands” is in any way here, I decided to help them. Show that just all the bucks can beat any apprentice can. It would be logged, but the right instrument is a computer, that is.

The stand in the form that a student sees him for the first time

We got together with my graduate in the fall and began to think about what kind of school it was and what kind of work it was possible to cope with, so that first-graders could be good for students, and the diploma project was ready for him in the spring. We decided to assemble a laboratory stand - so that we could connect a computer with Neladna via a universal cable to a secret chest, which would process our desire into electrical signals and transmit to the mechanism. And this mechanism was also overseas ingenious - a controlled machine.
And most importantly, so that a small expense would come out, we would go broke, and the master would not give money - no, he says, expect next year.


Structural diagram of the stand (idea)
Fig. 1 General scheme of the project

First, we laid eyes on the Arduino - a pretty damn thing. Everything is with her: the connectors are okay, and the examples are even a dime a dozen. But she is dear, and no one will believe that my graduate student conducted his independent research, pored at night; not only with his hands, but also with his head. So, we have to go differently - beat the microsin with a brow: “Take away the controller useful to us, so that we can connect to the Motherland and control the familiar from the Cursed language”.
And ATMEGA16 appeared to us. And she could accept commands via USB. And at the direction of the electrical signals to the control circuit to submit.

Photo of the circuit board before soldering optocouplers
Fig. 2 Controller mounting plate

And we rejoiced, and having congratulated each other, we came up with a control scheme. They named it proudly - an executive mechanism, so that students are aware of the importance and usefulness of their work. They say they’re already technologists, they can be planted for production like seedlings sprouted.

Circuit diagram
Fig. 3 Schematic diagram of connecting control lines of actuators (wiring the breadboard taken from microsin.ru)

And the circuit is simpler than a turnip. The wiring, from the circuit board directly to the remote control keys, was soldered. Well, of course, we inserted the connectors along the way, and we did not forget the optocouplers for galvanic isolation. And then who knows them, these first-year students, that they will poke holes then this is not a tricky business.
Breaking - not building, soldering - not writing songs. But we got a decent article. And it’s kind of not to say that handicraft is like a prototype, an alpha version.

Layout after soldering
Fig. 4 Development board with soldered optocouplers

Assembled stand (without computer and typewriter)
Fig. 5 Module assembly

Well, then the most interesting thing began - the study of control. How to make sure that the machine goes, and the first-year green students then coped with this.
And he again gave us microsin. Rather, the site is unforgettable. We found on it different descriptions and an interesting library - LibUSB. Well, and most importantly, what was our luck - our C # students studied something (C-Sharp, that is). Although some said "C-lattice."
And we got a miraculous, wonderful, eye-catcher: "How to rule an autonomous machine from a non-invasive program." And you just need to connect the third-party ATMega16.cs assembly, and declare the object. And then - write-read, do not flood.
And the methodological manual was prepared, and the workpiece was done - beat the student, and plan the spoons! You look and rush the cart dashing, and you will receive a treasured mark.

Type of stand prepared for defense
Fig.6 Stand assembly (a screenshot of the application is pasted later - this is an illustration for the diploma)

image
Fig.7 Application screenshot

But it turned out one ambush inconspicuous. In the circuit of what is called the controller, the USB protocol is only emulated and the lines on the bus are engaged in this. This means that not every bit or even a port can be used for control. So, you need to carefully approach the soldering and choose the outputs more wisely. And do not forget also to set the modes for ports, bit by bit - for writing it, or for reading.
I had to add a template program then, the ability to manage ports independently add. If you want, check the boxes; if you want, write or read the numbers.

image
Fig. 8 Screenshot of the full application

And it may have become a line to find working and safe. And the hunt appeared to connect a lot of great executive mechanisms to them. So that the dashing student taught our science, but praised.
And you, dear artisans, we ask you to give us an idea, an idea, which mechanism a young student might be interested in for automation - control.

And if anyone has the desire to repeat our work, then use for health:
- the source code of the management program (C #) ;
- recommendations for connecting and configuring the controller, the LibUSB library and the assembly module ATMega16.cs .

PS. It is not worth offering a radio-controlled helicopter - it’s already in operation ...

Also popular now: