📜 ⬆️ ⬇️

And again about the ears

Another letter that came to us in the mail:

Some time ago, after talking with friends who are professionally engaged in special effects for the cinema, I had a desire to try myself in animatronics. Given the presence of a self-assembled 3D printer, some skills in using Arduino, fairly straightforward hands didn’t look very difficult.

To begin with, Solidworks designed, and then printed and assembled, movable eyes controlled by Arduino.
')


But then the work came over and the continuation was put on the back burner.

Suddenly I saw an article in Hiktaimes. I thought that these ears with some modifications may well complement the already made eyes.



No sooner said than done. Print out the details. It turned out that the sizes of the servos by the author were somewhat different from mine. I had to scale slightly, and later on the site there were files under my typewriter. And then it became clear that the tail of the buttons does not add to the convenience and beauty of the whole structure.

As a result, the first version of the change appeared - with control from the IR remote. I used one of the smaller Chinese consoles, of which there are many on Ali. And the circuit changes were minimal - all the buttons were thrown out and a standard TSOP31236 receiver was hung on one of the Arduino inputs (I usually use Pro mini).

This sketch of mine is present on the Master Kit website in the description of the lugs (along with the apk-file for Android and the stl file of the enclosure for electronics). The main thing is first to use a standard example from the Arduino library to read the remote control codes for the buttons used and change my codes in the sketch to those received by the scanner.

Well, then there was a desire not to use extraneous consoles. The solution is simple - any tablet or phone on Android and bluetooth.

At hand was the module HC-05, which was introduced into the system. Due to their small size, both boards were combined into one case and placed on one of the rim arms.



And on the second, the 18650 battery holder was fixed with a power button and a DC-DC boost converter from the same Chinese comrades.



Connection diagram:



And then the fun started, because before that, writing programs for Android had absolutely no relation.

An attempt to install the Eclipse environment at first did not succeed, all sorts of errors came out, for which even Google did not give definite answers. As a result, it became clear that at the moment it would have to do with a simpler tool, which is AppInventor.

After a couple of evenings reading the documentation and watching the video tutorials, a simple application was compiled and launched. Of course, experienced programmers will say unkindly both about its size and about my “abilities”, but for such elementary tasks the program has completely justified itself. I got the initial skills of working with Android, I liked the toy for my grandson and friends.

The immediate development is seen in the additional control mode (the departure from 5 standard subroutines to the direct control of each ear) and the combination with the previously manufactured eyes. Well, and, perhaps, the third option on the basis of the ESP8266 modules, which are increasingly used everywhere by WiFi.

And yes, I won Eclipse, but his regular emulator is sadness, and the alternative one in the free version seems to have been severely cut off. I will sort this out.

Project author: Vladimir Klimovsky VovVovich

We posted this letter with the permission of the author and his note:
This is my first article, so I am ready both for practical advice and for throwing slippers.

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


All Articles