And again about the ears

    Another letter that came to our mail:

    Some time ago, after talking with friends who are professionally engaged in special effects for the movie, I had a desire to try myself in animatronics. Given the availability of a self-assembled 3D printer, some skills in using the Arduino, enough straight arms everything did not look very complicated.

    To begin with, SolidWorks were designed and then printed and assembled moving eyes with control from Arduino.



    But work piled up here, and the sequel was put on hold.

    Suddenly in Giktims I saw an article . I thought that these ears with some modifications could well serve as an addition to the already made eyes.



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

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

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

    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 HC-05 module, which was introduced into the system. Due to their small size, both boards were combined into one housing and placed on one rim arm.



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



    Connection diagram:



    And then the fun began, because before that I had absolutely nothing to do with writing programs for Android.

    An attempt to install the Eclipse environment at first was unsuccessful, all kinds of errors got out, on which even Google did not give unambiguous answers. As a result, it became clear that at the moment you have to do with a simpler tool, which is AppInventor.

    After a couple of nights reading documentation and watching video tutorialsA simple application was built and launched. Of course, experienced programmers will say unkindly about its size, and about my "abilities," but for such elementary tasks the program has fully paid off. I got initial skills for working with Android, I liked the toy for my grandson and friends.

    The nearest development is seen in an additional control mode (avoiding 5 standard routines to directly control each ear) and combining it with previously made eyes. Well, and, perhaps, the third option is based on the increasingly widely used WiFi modules ESP8266 everywhere.

    And yes, I still defeated Eclipse, but its regular emulator is sad, and the alternative in the free version seems to have been cut off a lot. I will sort this out.

    Project author: Vladimir Klimovsky VovVovich

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

    Also popular now: