<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://baszerr.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>BaSzErr - blog:2023:05:06</title>
        <description></description>
        <link>https://baszerr.eu/</link>
        <lastBuildDate>Thu, 30 Apr 2026 13:15:59 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://baszerr.eu/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>BaSzErr</title>
            <link>https://baszerr.eu/</link>
        </image>
        <item>
            <title>2023-05-06_-_toy_railway_barrier</title>
            <link>https://baszerr.eu/doku.php?id=blog:2023:05:06:2023-05-06_-_toy_railway_barrier</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;toy_railway_barrier&quot;&gt;2023-05-06 - toy railway barrier&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
today we had some fun with my sons. younger one decided he&amp;#039;d love to have railway barrier for his toy locomotive and tracks. electronically movable, with cables – as usual. ;) so we got into working…
&lt;/p&gt;

&lt;p&gt;
having a decent supply of cheap 9g microservos and some spare arduino nano, i&amp;#039;ve quickly wired it all up and wrote a small piece of code, to control it, adding some slow-motion up and down movement.
it&amp;#039;s all controlled with a button press (toggle switch). it&amp;#039;s powered via USB, so it fits typical phone charger, that kids can use.
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2023%3A05%3A06%3A2023-05-06_-_toy_railway_barrier&amp;amp;media=blog:2023:05:06:electronics.jpg&quot; class=&quot;media&quot; title=&quot;blog:2023:05:06:electronics.jpg&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=300&amp;amp;tok=4f3336&amp;amp;media=blog:2023:05:06:electronics.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; title=&quot;electronics&quot; alt=&quot;electronics&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
3D printed enclosure was next. quickly designed and slowly printed – as usual. ;) the good part was that it all fit nicely in the 1st try. connected together with some hot glue, to make assembly a breeze.
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2023%3A05%3A06%3A2023-05-06_-_toy_railway_barrier&amp;amp;media=blog:2023:05:06:in_the_box.jpg&quot; class=&quot;media&quot; title=&quot;blog:2023:05:06:in_the_box.jpg&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=500&amp;amp;tok=bc0973&amp;amp;media=blog:2023:05:06:in_the_box.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; title=&quot;putting into the enclosure&quot; alt=&quot;putting into the enclosure&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
kids had fun talking about how they will use it, who will drive the train and who will control barrier, etc. it was also a great chance to explain to them a bit how things work internally. while they are too young to follow the details, it&amp;#039;s good for them to have a general understanding on what-is-what, and why things are organized in this particular way.
&lt;/p&gt;

&lt;p&gt;
this is how it looks like at the end:
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2023%3A05%3A06%3A2023-05-06_-_toy_railway_barrier&amp;amp;media=blog:2023:05:06:final.jpg&quot; class=&quot;media&quot; title=&quot;blog:2023:05:06:final.jpg&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=500&amp;amp;tok=be5252&amp;amp;media=blog:2023:05:06:final.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; title=&quot;final assembly&quot; alt=&quot;final assembly&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
all the &lt;a href=&quot;https://github.com/el-bart/mini/tree/master/toy_railway_barrier&quot; class=&quot;urlextern&quot; title=&quot;https://github.com/el-bart/mini/tree/master/toy_railway_barrier&quot; rel=&quot;ugc nofollow&quot;&gt;sources are available online&lt;/a&gt;, for both electronics and enclosure (&lt;a href=&quot;https://en.wikipedia.org/wiki/OpenSCAD&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/OpenSCAD&quot;&gt;OpenSCAD&lt;/a&gt;).
&lt;/p&gt;

&lt;p&gt;
looking forward for next weekend&amp;#039;s project! ;)
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 06 May 2023 19:25:36 +0000</pubDate>
        </item>
    </channel>
</rss>
