<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Design Archives - Nerd Corner</title>
	<atom:link href="https://nerd-corner.com/tag/design-en/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerd-corner.com/tag/design-en/</link>
	<description>Craft your dreams!</description>
	<lastBuildDate>Sun, 22 Jun 2025 17:30:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://nerd-corner.com/wp-content/uploads/2019/10/cropped-LogoNerdCorner-2-32x32.png</url>
	<title>Design Archives - Nerd Corner</title>
	<link>https://nerd-corner.com/tag/design-en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>DIY keypad lock &#8211; 3D printing and code</title>
		<link>https://nerd-corner.com/diy-keypad-lock-3d-printing-and-code/</link>
					<comments>https://nerd-corner.com/diy-keypad-lock-3d-printing-and-code/#respond</comments>
		
		<dc:creator><![CDATA[Nerds]]></dc:creator>
		<pubDate>Tue, 17 Dec 2024 20:44:05 +0000</pubDate>
				<category><![CDATA[Arduino projects]]></category>
		<category><![CDATA[Handcrafted]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SolidWorks]]></category>
		<category><![CDATA[3D print]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[barrel jack]]></category>
		<category><![CDATA[CAD]]></category>
		<category><![CDATA[CAD design]]></category>
		<category><![CDATA[case]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[housing]]></category>
		<category><![CDATA[jumper cable]]></category>
		<category><![CDATA[keypad]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[precise]]></category>
		<category><![CDATA[Solid Works]]></category>
		<category><![CDATA[user guide]]></category>
		<guid isPermaLink="false">https://nerd-corner.com/de/?p=1677</guid>

					<description><![CDATA[<p>A cupboard that should always be locked and five people who need to access it &#8211; a classic challenge. The obvious solutions? Five keys in &#8230; </p>
<p>The post <a href="https://nerd-corner.com/diy-keypad-lock-3d-printing-and-code/">DIY keypad lock &#8211; 3D printing and code</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>A cupboard that should always be locked and five people who need to access it &#8211; a classic challenge. The obvious solutions? Five keys in circulation or a single person who manages the key so that you have to borrow it every time. But we&#8217;ve all been there: the key ends up lying in the cupboard, under the carpet or behind the flower pot.</p>
<p>But wouldn&#8217;t it be much more practical to do away with physical keys altogether? Nowadays, there are numerous ways to open a lock: Fingerprint scanners, facial recognition, NFC, numeric codes, dials &#8211; or, of course, brute force methods such as explosives and brute force. But if you are looking for an inexpensive, non-violent and simple solution, the keypad lock comes into focus.</p>
<p>Surprisingly, there are hardly any really good DIY solutions for hobbyists on the Internet. So I tackle it myself &#8211; my first keypad lock, which I simply call “Version 1”.</p>
<p><em><strong>This might also be interesting for you: </strong><a href="https://nerd-corner.com/diy-powerbank-with-voltage-regulator-and-voltmeter/">Do it yourself powerbank with voltage regulator and voltmeter</a></em></p>
<h2>Construction of the housing</h2>
<p>The initial focus is on the housing and the keypad holder. The first question that always arises is: How big should it be? The answer depends on several factors:</p>
<ul>
<li>Which components are required? Each component takes up space and influences the design.</li>
<li>How much space do the components take up? A compact design is advantageous, but must not restrict functionality.</li>
<li>What are the haptics and operability like? The keypad should be comfortable to use without being too cramped or impractical.</li>
</ul>
<p>These considerations form the basis for the housing design &#8211; because good planning saves time and nerves later on.</p>
<h3>What will be inside the housing?</h3>
<p>The central component is, of course, the membrane keypad (1.0.1). It has the following dimensions:</p>
<ul>
<li>Width: 69 mm</li>
<li>Length: 76 mm</li>
<li>Thickness: 0.6 mm (or 0.95 mm above the keys)</li>
</ul>
<p>The keypad also has a ribbon cable with DuPont sockets for connection to a microcontroller. The cable itself is 85 mm long and 17.78 mm wide.</p>
<p>The control center of the lock is the Nano (1.0.2). To accommodate it neatly in the housing and to make the cable connections as convenient as possible, I opted for a Nano expansion board with screw terminals (1.0.4).</p>
<p>A hollow socket (5.5 x 2.1 mm, 1.0.4) is used for the emergency power supply so that the lock continues to function even in the event of a power failure.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter wp-image-1671 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/1-0-1.jpg" alt="tastenfeldschloss Bauteile" width="2310" height="1324" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/1-0-1.jpg 2318w, https://nerd-corner.com/wp-content/uploads/2024/12/1-0-1-300x172.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/1-0-1-1024x587.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/1-0-1-768x440.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/1-0-1-1536x881.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/1-0-1-2048x1174.jpg 2048w" sizes="(max-width: 2310px) 100vw, 2310px" /></p>
<p>The pin and socket connectors (1.1.1) serve as the central power distribution and are later soldered to the breadboard (1.1.2). Jumper cables (1.1.3) are used to ensure that all components are reliably connected. Depending on the position of the components, different lengths are required &#8211; in this case 10 cm and 20 cm.</p>
<p><img decoding="async" class="aligncenter wp-image-1670 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/1-1.jpg" alt="" width="2310" height="1327" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/1-1.jpg 2321w, https://nerd-corner.com/wp-content/uploads/2024/12/1-1-300x172.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/1-1-1024x588.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/1-1-768x441.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/1-1-1536x882.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/1-1-2048x1176.jpg 2048w" sizes="(max-width: 2310px) 100vw, 2310px" /></p>
<p>For the status display of the keypad lock, I use Neo Pixel addressable LEDs of type WS2812b (1.2.1). These can be used to control different colors and effects to visually display the current status of the lock.</p>
<p>I will go into the positioning of the screws in more detail later.</p>
<p><img decoding="async" class="aligncenter wp-image-1669 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/1-2.jpg" alt="" width="2320" height="1324" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/1-2.jpg 2331w, https://nerd-corner.com/wp-content/uploads/2024/12/1-2-300x171.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/1-2-1024x584.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/1-2-768x438.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/1-2-1536x876.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/1-2-2048x1169.jpg 2048w, https://nerd-corner.com/wp-content/uploads/2024/12/1-2-1400x800.jpg 1400w" sizes="(max-width: 2320px) 100vw, 2320px" /></p>
<p>Now that the components have been determined, I can think about the size of the housing. This is not only determined by the installed elements, but above all by the usability and feel.</p>
<p>We encounter keypads every day &#8211; on ATMs, telephones, door lock systems and, of course, smartphones. The decision for the depth of the housing is based on a positive memory of my penultimate workplace: the keypad lock at the entrance was raised and easily accessible from both sides. You could operate it comfortably with your right or left thumb, and the rounded corners provided a pleasant feel when you put your hand on it.</p>
<h2>Keypad lock Housing design</h2>
<p>This results in a depth of 45 mm (2.0.3). For better ergonomics, the corners have a radius of 15 mm (R15) and the surrounding upper edges have a radius of 10 mm (R10). I am aware that these roundings slightly reduce the interior space, but the comfort and appearance outweigh this disadvantage.</p>
<p>The width and height of the housing are determined by the components to be installed. The space for the cabling must also be taken into account. Particularly important: When installed, the Nano should still be accessible with a standard USB mini cable, for example to be able to install new programs.</p>
<h3>Mounting and fastening</h3>
<ul>
<li>Four M3 threads (2.0.1) on the inside allow the support plate to be screwed on.</li>
<li>In addition, there are four mounting points with Ø4.2 mm holes for attaching the housing to a door, cover or wall.</li>
<li>The housing has a window (2.0.2) measuring 60 × 67 mm, which is intended for the keypad. This is later filled with the carrier plate.</li>
<li>Retaining columns with M2 threads and the opening for the hollow socket (1.0.4) are marked with orange ellipses (2.0.1, 2.0.3).</li>
<li>The next picture (2.0.4) shows the external dimensions: 110 mm wide and 117 mm high.</li>
<li>In addition, an aperture or slot 50 mm long is required for the LED cover (2.0.5).</li>
</ul>
<p>For the wall thickness of the housing, I have provided 2 mm throughout &#8211; stable enough for the intended purpose.</p>
<p>With the housing construction completed, we can now continue with the other components.</p>
<h3 data-start="1513" data-end="1546"><img loading="lazy" decoding="async" class="aligncenter wp-image-1668 zoooom" style="font-family: 'Source Sans Pro', Graphik, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2024/12/2-0-1.jpg" alt="Tastenfeldschloss Gehäuse" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/2-0-1.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/2-0-1-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/2-0-1-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/2-0-1-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/2-0-1-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/2-0-1-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></h3>
<h3>The support plate &#8211; the central mounting element</h3>
<p>The next important component is the carrier plate. The name is self-explanatory: With the exception of the hollow bushing, all components are attached here. This system offers several advantages over direct mounting in the housing:</p>
<p><img src="https://s.w.org/images/core/emoji/16.0.1/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Easy mounting outside the housing &#8211; More space and better handling when wiring.<br />
<img src="https://s.w.org/images/core/emoji/16.0.1/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Modularity &#8211; different carrier plates with different components are possible.<br />
<img src="https://s.w.org/images/core/emoji/16.0.1/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Simple enclosure design &#8211; The enclosure design remains simpler and more flexible.<br />
<img src="https://s.w.org/images/core/emoji/16.0.1/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Easy replacement &#8211; Components can be replaced or extended more easily.</p>
<p>But there is another decisive advantage for the keypad lock in particular:</p>
<p>The keypad is glued directly into a designated recess in the carrier plate (2.1.1). The carrier plate and keypad are then inserted into the housing from behind and fixed in place with M3 screws. The frame of the window in the housing completely covers the edge and the cables.</p>
<p><img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f512.png" alt="🔒" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Safety aspect: The window is dimensioned in such a way that the edge and the cables remain concealed, but the buttons are fully visible and operable. This means that the keypad cannot be removed without destroying it &#8211; an important protective mechanism against tampering.</p>
<h3>Fastening the components to the carrier plate</h3>
<p>There are various mounting options for the electronics on the back (2.1.2) of the carrier plate:</p>
<p><img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f7e1.png" alt="🟡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> M3 thread for the nano adapter (2.1.3) &#8211; As nano adapters on the Internet often have different hole spacings, there is an additional fastening thread on the right-hand side (2.1.2) for flexible adjustment. If the holes still do not fit exactly, they can be carefully widened &#8211; but without damaging the adapter&#8217;s conductor tracks.</p>
<p><img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f534.png" alt="🔴" class="wp-smiley" style="height: 1em; max-height: 1em;" /> M2 thread for the Nano R3 ATMEGA168P (2.1.4) &#8211; An alternative, cost-effective solution instead of a Nano R3 with adapter.</p>
<p><img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f535.png" alt="🔵" class="wp-smiley" style="height: 1em; max-height: 1em;" /> M2 thread for the breadboard (20×80 mm, 1.1.2, 2.1.5) &#8211; This is used for power distribution and connects all power supply lines neatly at a central point.</p>
<h3 data-start="1487" data-end="1545"><img loading="lazy" decoding="async" class="aligncenter wp-image-1667 zoooom" style="font-family: 'Source Sans Pro', Graphik, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2024/12/2-1-1.jpg" alt="" width="2310" height="1329" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/2-1-1.jpg 2317w, https://nerd-corner.com/wp-content/uploads/2024/12/2-1-1-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/2-1-1-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/2-1-1-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/2-1-1-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/2-1-1-2048x1178.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></h3>
<h3>The LED cover and its attachment</h3>
<p>The LED cover (2.2.1) has been designed so that it is clicked into the slot (2.0.5) of the housing from the rear. The radius on the outside of the LED cover corresponds to the housing radius, creating a smooth transition and allowing the cover to blend in seamlessly.</p>
<p>I don&#8217;t need to redesign the mounting bridge (front 2.2.2, back 2.2.3) as I have already used it successfully in other projects.</p>
<h3>Mounting the LEDs</h3>
<p>Now it remains to mount the three WS2812b LEDs (1.2.1). I will explain why exactly three LEDs are needed later in the programming section of this article.</p>
<p>The development of the LED holder (SMD50, 2.2.4) was more complex than expected. Of course, you could simply glue, clamp or hot glue the LED strips &#8211; but that seemed too unprofessional to me.</p>
<p>I therefore invested a lot of time and effort in designing a perfect holder. The result can be seen in picture 2.2.5.</p>
<p><img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f4cc.png" alt="📌" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Further information:</p>
<p data-start="1181" data-end="1300"><a href="https://nerd-corner.com/click-and-clamp-system-smd5050-bracket/">For details on the construction, there is a separate article on NerdCorner.</a></p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1666 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/2-2-1.jpg" alt="" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/2-2-1.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/2-2-1-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/2-2-1-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/2-2-1-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/2-2-1-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/2-2-1-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h2>3D printing of the components</h2>
<p>Once the design has been completed, the parts must now be printed.</p>
<p><img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f4cc.png" alt="📌" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Material selection for the individual components:</p>
<ul>
<li>Housing (3.0.1): Printed with ABS filament, consisting of front and back.</li>
<li>Carrier plate (3.0.2): made from PLA filament.</li>
<li>LED cover (3.0.3): produced upright in the printer, printed with PLA+ in the color “natural”.</li>
<li>LED terminals (3.0.4): also made of PLA+, manufactured in the same process as the LED cover.</li>
<li>Bridge for the hollow socket: printed from PLA filament, analogous to the carrier plate.</li>
</ul>
<p>With these materials, the mechanical and thermal properties of the components are optimally matched to their respective applications.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1665 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/3-0-1.jpg" alt="" width="2310" height="1329" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/3-0-1.jpg 2317w, https://nerd-corner.com/wp-content/uploads/2024/12/3-0-1-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/3-0-1-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/3-0-1-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/3-0-1-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/3-0-1-2048x1178.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h2>Post-processing of the components</h2>
<p>After printing, both the printed parts and some purchased parts need to be processed.</p>
<p>1&#x20e3; Cleaning the 3D printed parts</p>
<ul>
<li>Removal of support material and protruding print residues.</li>
</ul>
<p>2&#x20e3; Cutting the thread<br />
Housing (4.0.1):</p>
<ul>
<li>Four M3 threads (Attention: blind holes! Proceed carefully when cutting so as not to push the base outwards).</li>
<li>Two M2 threads (4.0.2).</li>
<li>Support plate (4.0.3):
<ul>
<li>The M2 threads marked in blue must be cut in any case.</li>
<li>When using a nano adapter with screw terminals (2.1.4), the M2 threads marked in red must also be cut.</li>
</ul>
</li>
</ul>
<p>3&#x20e3; Shortening the perforated grid plate</p>
<ul>
<li>The perforated grid plate (4.0.4) must be shortened to 8 to a maximum of 10 perforated grids.<br />
Important: The mounting holes should be retained (see 4.0.5).</li>
</ul>
<p>4&#x20e3; Shortening the pin header</p>
<ul>
<li>Shorten the pin header to eight pins using a side cutter (4.0.6).</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1664 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/4-0-2.jpg" alt="" width="2310" height="1394" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/4-0-2.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/4-0-2-300x181.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/4-0-2-1024x618.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/4-0-2-768x464.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/4-0-2-1536x927.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/4-0-2-2048x1236.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h3>Soldering the components</h3>
<p>Now it&#8217;s time to solder the parts. First we concentrate on the power supply board:</p>
<p>1&#x20e3; Soldering the power supply board</p>
<ul>
<li>Perforated grid plate (4.0.5): Soldering the base strip (1.1.1) and the pin strip (4.0.6).</li>
<li>Pin strip (4.1.2): A two-row pin and skirting board is soldered on. We connect the two rows on the back with solder.</li>
<li>The rows differ in male and female as well as in the colors: red for plus and black for minus. This makes it easier to connect the power supply.</li>
</ul>
<p>2&#x20e3; Soldering the WS2812B LEDs</p>
<ul>
<li>Soldering the connections of the WS2812B LED strip (4.1.3).</li>
</ul>
<p>3&#x20e3; Soldering the hollow socket</p>
<ul>
<li>Finally, the hollow socket (1.0.4) is soldered (4.1.4).</li>
<li>Detailed instructions <a href="https://nerd-corner.com/using-a-barrel-jack-as-a-switch/">on soldering the hollow socket can be found</a> in a separate article. It is important to know the exact procedure in order to avoid mistakes.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1663 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/4-1-2.jpg" alt="" width="2310" height="1329" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/4-1-2.jpg 2317w, https://nerd-corner.com/wp-content/uploads/2024/12/4-1-2-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/4-1-2-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/4-1-2-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/4-1-2-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/4-1-2-2048x1178.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h2 data-start="75" data-end="118">Assembling the keypad lock</h2>
<p data-start="75" data-end="118">1&#x20e3; Installing the LED cover</p>
<ul>
<li data-start="75" data-end="118">First click the LED cover (2.2.1) into the housing.</li>
<li data-start="75" data-end="118">Glue the LED cover in the intended places as shown in pictures 5.0.1 and 5.0.2.</li>
</ul>
<p>2&#x20e3; Plug in the Nano R3</p>
<ul>
<li data-start="75" data-end="118">Insert the Nano R3 (1.0.2) into the Nano adapter (5.0.3) of your choice.</li>
</ul>
<p>3&#x20e3; Installing the Nano adapter</p>
<ul>
<li data-start="75" data-end="118">Screw the Nano adapter (1.0.3) with the inserted Nano R3 (1.0.2) to the back of the carrier plate (4.0.3).</li>
<li data-start="75" data-end="118">Use the M3 threads on the carrier plate and the screws (1.2.2), as shown in pictures 5.0.4 and 5.0.5.</li>
</ul>
<p>4&#x20e3; Attaching the power supply</p>
<ul>
<li data-start="75" data-end="118">Attach the power supply (4.1.2) to the back of the carrier plate (4.0.3) using the screws (1.2.4).</li>
<li data-start="75" data-end="118">See figure 5.0.6.</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1662 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/5-0-1.jpg" alt="" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/5-0-1.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/5-0-1-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/5-0-1-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/5-0-1-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/5-0-1-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/5-0-1-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h3 data-start="75" data-end="127">Mounting the keypad on the support plate</h3>
<p>1&#x20e3; Selecting the screw length</p>
<ul>
<li data-start="75" data-end="127">Make sure to select the correct screw length as shown in Figure 5.1.1.</li>
<li data-start="75" data-end="127">Screws must not be too long, otherwise they will protrude from the adhesive surface when the keypad is attached and the keypad cannot be glued on cleanly.</li>
</ul>
<p>2&#x20e3; Preparing the keypad</p>
<ul>
<li data-start="75" data-end="127">Remove the protective film from the keypad (1.0.1).</li>
<li data-start="75" data-end="127">To remove the film, use a carpet knife to carefully get between the adhesive layer and the protective film at one corner (see 5.1.2).</li>
<li data-start="75" data-end="127">Once you have reached the corner, peel off the entire protective film (see 5.1.3).</li>
</ul>
<p>3&#x20e3; Stick on the keypad</p>
<ul>
<li data-start="75" data-end="127">Insert the keypad (1.0.1) into the recess on the front of the carrier plate (2.1.1) and press it firmly into place.</li>
<li data-start="75" data-end="127">The keypad must be completely recessed and must not protrude over the edge (see 5.1.4).</li>
<li data-start="75" data-end="127">Make sure that the cables are also in the recess (see 5.1.5).</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1661 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/5-1-1.jpg" alt="" width="2340" height="1327" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/5-1-1.jpg 2350w, https://nerd-corner.com/wp-content/uploads/2024/12/5-1-1-300x170.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/5-1-1-1024x581.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/5-1-1-768x436.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/5-1-1-1536x871.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/5-1-1-2048x1162.jpg 2048w" sizes="auto, (max-width: 2340px) 100vw, 2340px" /></p>
<h3 data-start="64" data-end="123">Wiring the keypad to the Arduino Nano R3</h3>
<p>1&#x20e3; Using jumper cables</p>
<ul>
<li data-start="64" data-end="123">Jumper cables (10 cm long, male-male) are used to connect the keypad to the Arduino Nano R3 (see 5.2.1).</li>
</ul>
<p>2&#x20e3; Connecting the cables</p>
<ul>
<li data-start="64" data-end="123">Make sure that you do not twist the cables, but only bend them.</li>
<li data-start="64" data-end="123">The left cable is connected to D2 of the Arduino and the right cable to D8.</li>
<li data-start="64" data-end="123">There are seven cables in total, which occupy the connections D2 to D8 (see 5.2.3).</li>
</ul>
<p>3&#x20e3; Use pin headers</p>
<ul>
<li data-start="64" data-end="123">As the pitch of the Arduino adapter and the keypad do not match, you can use pin strips to make the connection.</li>
</ul>
<p>4&#x20e3; Fastening the LED terminals</p>
<ul>
<li data-start="64" data-end="123">The clips (3.0.4) for the WS2812B LEDs are clicked onto the LEDs.</li>
<li data-start="64" data-end="123">It is best to do this on a flat surface (see 5.2.4).</li>
</ul>
<p>5&#x20e3; Attaching the LED strip</p>
<ul>
<li data-start="64" data-end="123">The WS2812B strip is now pushed onto the center of the top of the carrier plate (see 5.2.5 Front and 5.2.6 Rear).</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1660 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/5-2.jpg" alt="" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/5-2.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/5-2-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/5-2-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/5-2-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/5-2-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/5-2-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h3>Assembling the carrier plate and housing</h3>
<p>1&#x20e3; Screwing the support plate to the housing (5.3.1)</p>
<ul>
<li>Make sure that you use M3 screws that are not too long. Otherwise, they could push a bump into the front of the housing when tightened.</li>
<li>The alignment of the carrier plate in the housing is important: the LED strip should be on the same side as the LED cover.</li>
<li>After screwing, the keypad should be lightly pressed against the inner frame of the housing (see 5.3.2 and 5.3.3).</li>
</ul>
<p>2&#x20e3; Pre-assembly of the hollow socket for the emergency power supply</p>
<ul>
<li>For the emergency power supply, you must pre-assemble the hollow socket and screw it to the housing.</li>
<li>The hollow socket with bridge and nut is shown in Figure 5.3.4.</li>
<li>Insert the hollow bush into the round recess of the bridge.</li>
<li>Lock the hollow bushing with the nut on the other side of the bridge.</li>
</ul>
<p>3&#x20e3; Fastening the hollow bush in the housing</p>
<ul>
<li>The hollow bush with the bridge is then screwed to the retaining pillars provided in the housing using M2 screws (see 5.3.5 and 5.3.6).</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1659 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/5-3.jpg" alt="" width="2310" height="1329" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/5-3.jpg 2317w, https://nerd-corner.com/wp-content/uploads/2024/12/5-3-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/5-3-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/5-3-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/5-3-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/5-3-2048x1178.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h3>Connecting the cables and completing the power supply</h3>
<p>1&#x20e3; Connecting the control cable for the servo motor</p>
<ul>
<li>The control cable for the servo motor is connected to pin D9 of the Nano R3 (5.4.1).</li>
</ul>
<p>2&#x20e3; Connecting the power supply for the Nano R3</p>
<ul>
<li>The power supply for the Nano R3 is connected to the GND pin and the VIN pin of the Nano R3 (5.4.2).</li>
</ul>
<p>3&#x20e3; Connecting the control cable for the WS2812B</p>
<ul>
<li>The control cable for the WS2812B LED strip is connected to pin D10 of the Nano R3 (5.4.3).</li>
</ul>
<p>4&#x20e3; Wiring of the power distributor</p>
<ul>
<li>All remaining cables must be connected to the power distributor:
<ul>
<li>Servo motor connection</li>
<li>Arduino Nano R3</li>
<li>WS2812B LED strip</li>
<li>Hollow socket All connections are made with plus and minus (see 5.4.4 and 5.4.5).</li>
</ul>
</li>
</ul>
<p>5&#x20e3; Using different colors and connection types for the wiring</p>
<ul>
<li>It helps to use different cable colors:
<ul>
<li>Red for plus</li>
<li>Black for minus</li>
</ul>
</li>
<li>The power distributor has different connection types:
<ul>
<li>Male for plus</li>
<li>Female for minus</li>
</ul>
</li>
</ul>
<p>6&#x20e3; Note on the hollow socket</p>
<ul>
<li><a href="https://nerd-corner.com/using-a-barrel-jack-as-a-switch/">There is a separate article on wiring and connecting the hollow socket, which you should definitely read</a></li>
</ul>
<p>7&#x20e3; Attaching the connector housings for the servo motor and power supply</p>
<ul>
<li>A three-pin plug is required for the servo motor connection.</li>
<li>A two-pin plug is required for the external power supply.</li>
</ul>
<p><a href="https://nerd-corner.com/3d-printed-dupont-connector-for-jumper-cable/">Further details on the construction process and the download links for connector housings can be found here.</a></p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1658 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/5-4.jpg" alt="" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/5-4.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/5-4-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/5-4-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/5-4-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/5-4-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/5-4-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<p>Figure 5.5.1 shows the entire cabling again.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1657 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/5-5.jpg" alt="fritzing keypad lock" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/5-5.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/5-5-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/5-5-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/5-5-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/5-5-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/5-5-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h2>Arduino code</h2>
<p>After the intensive work with the hardware and the 3D printer, we now turn our attention to the strategy and programming of the keypad lock. Why is a strategy important for a keypad lock? A well thought-out sequence of actions &#8211; i.e. the order in which the keypad lock is operated, which events result from certain actions and which goal is being pursued &#8211; forms the basis for functional control. This guideline is therefore also crucial for programming the keypad lock: it determines what should happen when and which hardware is used. The aim is to create a logical and comprehensible sequence of events, which in this case can also be understood visually.</p>
<p>Example 1:<br />
The keypad lock should display how many digits have already been entered. (See Figures 7.0.1 to 7.0.4)</p>
<p>Example 2:<br />
The keypad lock should indicate whether the password entered is correct after pressing a specific key. (See figure 7.0.5)</p>
<p>Example 3:<br />
The keypad lock should indicate if something has been entered incorrectly, such as an incorrect password or too many keystrokes. (See figure 7.0.8)</p>
<p>Example 4:<br />
The keypad lock should display the current status. (See Figures 7.0.5 to 7.0.7)</p>
<p>Now let&#8217;s move on to programming the keypad lock, which differs from conventional programs on the Internet in a few respects. To begin with, the three necessary libraries are included: &lt;Keypad.h&gt; for the keypad, &lt;Adafruit_NeoPixel.h&gt; for the WS2812B LEDs and &lt;Servo.h&gt; for the servo motor (Figure 6.0.1). In the following section, the pin assignment for the LEDs is defined, whereby pin D10 is used and the number of LEDs and the color scheme are determined. The brightness of the LEDs is also defined &#8211; this value can be adjusted depending on the location, with higher values providing more brightness (values from 0 to 255). (See figure 6.0.2) The third section is dedicated to the description of the keypad used, including the number of rows and columns and the assignment of the buttons. (See figure 6.0.3).</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1656 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/6-0-1.jpg" alt="" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/6-0-1.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/6-0-1-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/6-0-1-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/6-0-1-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/6-0-1-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/6-0-1-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<p>In the fourth section, the servomotor is configured by defining the degree range it can cover and the speed at which it should move (see Figure 6.1.1). This is followed by the section for entering the password. Here you have the option of changing the default password 1516 to set a new four-digit password. The program will only work correctly if a four-digit code is entered. In this section, the control pin for the servo motor is also set to D9 (see Figure 6.1.2). The following section is dedicated to defining the colors for the various events.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1655 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/6-1-1.jpg" alt="" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/6-1-1.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/6-1-1-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/6-1-1-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/6-1-1-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/6-1-1-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/6-1-1-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<p>The last two sections explain the behavior of the keypad lock during certain actions. This description is of course only a rough overview of the program. In a future article for keypad lock version 2, we will explain the program in more detail and more comprehensively.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="c">//==========================================Librarys==============================================================
#include &lt;Keypad.h&gt;
#include &lt;Adafruit_NeoPixel.h&gt;
#include &lt;Servo.h&gt;
//========================================Neo-Pixel==============================================================
#define LED_PIN 10
#define LED_COUNT 3
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);
int led_strength = 75; //controlls Brighttness (0 - 255)
//========================================Keypad=================================================================
const byte rows = 4;
const byte cols = 3;
char keys[rows][cols] = {
 {'1', '2', '3'},
 {'4', '5', '6'},
 {'7', '8', '9'},
 {'*', '0', '#'}
};
byte rowPins[rows] = {8, 7, 6, 5};
byte colPins[cols] = {4, 3, 2};
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, rows, cols );
//=========================================Servo============================================================
Servo lock;
int pos = 0;
int servo_angle = 180;
int servo_speed = 15;
//======================================Password===============================================================
String input;
const String password = "1516"; //Set Password
int n = 1;

 

void setup() {
 input.reserve(password.length() +2);
 strip.begin();
 strip.show();
 lock.attach(9); //motor pin
}

void loop() {
//-------------------colours------------------------------------------------------------------- 
 uint32_t blue = strip.Color(0, 0, led_strength);
 uint32_t green = strip.Color(0, led_strength, 0);
 uint32_t red = strip.Color(led_strength, 0, 0);
 uint32_t orange = strip.Color(led_strength, led_strength/2, 0);

 char key = keypad.getKey();

if (key != NO_KEY) {
//-------------------------End conditions------------------------------------------------------
 if (key == '#') {
 if (input == password) {
 //unlock
 strip.clear();
 strip.fill(green, 0, LED_COUNT);
 strip.show();
 for (pos = 0; pos &lt;= servo_angle; pos += 1) {
 lock.write(pos);
 delay(servo_speed );
 }
 while (1 == 1)
 { char key = keypad.getKey();
 strip.clear();
 strip.fill(orange, 0, LED_COUNT);
 strip.show();
 if (key == '*')
 {
 strip.clear();
 strip.fill(green, 0, LED_COUNT);
 strip.show();
 break;
 }
 }

 for (pos = servo_angle; pos &gt;= 0; pos -= 1) {
 lock.write(pos);
 delay(servo_speed );
 }
 n = 1;
 input = "";
 delay (1000);
 strip.clear();
 strip.show();
 } else {
 //wrong password
 strip.clear();
 strip.fill(red, 0, LED_COUNT);
 strip.show();
 n = 1;
 input = "";
 delay (1000);
 strip.clear();
 strip.show();
 }
 }
 else if (n == password.length() + 1) {
 //Input too long
 strip.clear();
 strip.fill(red, 0, LED_COUNT);
 strip.show();
 n = 1;
 input = "";
 delay (1000);
 strip.clear();
 strip.show();
 }
//----------------------------------Buttons------------------------------------------
 else {
 input += key;
 if (n == password.length() ) {
 strip.clear();
 strip.fill(blue, 0, LED_COUNT); 
 strip.show();
 n++;
 }
 else {

 strip.clear();
 strip.setPixelColor(n-1, blue);
 strip.show();
 n++;
 }
 }
 }

}</pre>
<h2>Function</h2>
<p>Operating the keypad lock is very intuitive. As soon as the first button is pressed, the right-hand LED lights up blue (7.0.1). When the second button is pressed, the middle LED turns blue (7.0.2). After the third button is pressed, the left-hand LED lights up blue (7.0.3). Finally, with the fourth button, all three LEDs light up blue (7.0.4). When these three LEDs light up blue, the user knows that the # button must be pressed.</p>
<p>If the # button is pressed, the password is checked. If the password is correct, all three LEDs light up green at the same time and the servomotor is activated (7.0.5). The green light remains on as long as the servomotor has not yet reached its end position (open). As soon as the servomotor reaches the end position (open), the LEDs change from green to orange (7.0.6). The orange color remains until the user presses the * button.</p>
<p>After pressing the * button, the LEDs change back to green (7.0.7) and remain in this color until the servomotor has reached the end position (closed). If this is the case, the LEDs go out and the keypad lock is ready for new entries.</p>
<p>However, if the password is incorrect after pressing the # button in step 7.0.4, all three LEDs light up red (7.0.8). The red light is also displayed if more than four buttons, apart from the # button, are pressed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1654 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/7-0-1.jpg" alt="keypad lock step by step guide" width="2310" height="1329" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/7-0-1.jpg 2317w, https://nerd-corner.com/wp-content/uploads/2024/12/7-0-1-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/7-0-1-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/7-0-1-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/7-0-1-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/7-0-1-2048x1178.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h2>Door mounting</h2>
<p>Of course, this variant is not intended for use on an ordinary door, where you simply walk through and the door closes by itself. The reason for this is that the lock remains open until the * button is pressed. But how can you press the * button when you are on the other side of the keypad lock, behind the wall? A delay in the program could help, but who knows how long it takes to pass through the door and close it behind you? A much more sensible solution would be to implement an additional switch that is placed on the other side of the door. When pressed, this switch would lead directly to point 7.0.6 and open the lock so that the door can be opened from the inside without having to enter a password.</p>
<p>But that&#8217;s for the future. Now we come to mounting the keypad lock on a door. I have provided four holes on the back of the housing for this purpose. These holes have a recess on the inside for conventional hexagon nuts M4 DIN 934. The corresponding holes can be seen in Figure 8.0.1 (rear view) and Figure 8.0.2 (front view), whereby the housing is shown slightly transparent for better visualization. Installing the nuts is very simple: After ensuring that all support material has been removed, the nut is pressed into the recess provided from behind. Press-in nuts should not be used as they are unnecessarily expensive.</p>
<p>I have developed a drilling template for fixing to the wall or door (Fig. 8.0.3). This template contains a hole with a diameter of 4 mm at each of the four corners. The distance between the holes corresponds to the distance between the holes on the housing. The template can be easily fixed to the surface of the door, for example with adhesive tape (Fig. 8.0.4). This saves you the tedious task of marking out the drill holes and avoids errors.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1653 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/8-0-1.jpg" alt="" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/8-0-1.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/8-0-1-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/8-0-1-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/8-0-1-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/8-0-1-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/8-0-1-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<p>Figure 8.1.1 shows the drilled mounting holes from the front, marked by magenta-colored circles. Thanks to the drilling template, these holes are the correct distance apart. If the position slips slightly during drilling or is not exactly correct, this is not a problem. In this case, you can simply drill the mounting holes slightly larger to align the keypad lock precisely when screwing it on. In addition, two holes can be seen in yellow circles in this picture, which are unfortunately slightly broken out at the edge. These holes are intended for the servo cable and the power supply. Once the holes had been drilled, I fitted the keypad lock and fed the cables through the holes provided on the back of the door (Fig. 8.1.2).</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1652 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/8-1.jpg" alt="" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/8-1.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/8-1-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/8-1-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/8-1-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/8-1-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/8-1-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<p>The entire assembly of the keypad lock is shown on the front side of the door in Image 8.2.1. If you are not satisfied with this mounting solution, don&#8217;t worry: As a final step, I have designed a back cover that allows the keypad lock to be mounted on a wall or frame (Image 8.2.2). To do this, simply place the housing of the keypad lock onto the back cover and secure it from behind using M4 countersunk screws (marked by magenta circles in Image 8.2.2). After that, the entire construction is mounted on the wall, for which two tabs with two holes each are available (yellow circles in Image 8.2.2).</p>
<p>It is also important to remember to add one or more openings in the housing for the servo and power supply cables. Additionally, the security risk should be considered, as an unauthorized person could potentially unscrew the keypad lock using the accessible screws.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1651 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/12/8-2.jpg" alt="" width="2310" height="1330" srcset="https://nerd-corner.com/wp-content/uploads/2024/12/8-2.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/12/8-2-300x173.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/12/8-2-1024x589.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/12/8-2-768x442.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/12/8-2-1536x884.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/12/8-2-2048x1179.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h3>Locking Mechanism</h3>
<p>If you&#8217;re still missing a real locking mechanism that goes beyond just a servo connection, you can look forward to the &#8220;Locking Unit,&#8221; which is already in development and will be featured in future versions of the keypad lock.</p>
<p>The development of the keypad lock was an exciting yet challenging task. Some key features of <strong>VERSION 1</strong> of the keypad lock are particularly noteworthy:</p>
<ul>
<li><strong>Compatibility with various Arduino Nano models and adapters</strong> – Ensures flexibility in hardware selection.</li>
<li><strong>Visual feedback</strong> – Users are directly informed about number input and the status of the keypad lock.</li>
<li><strong>Emergency power supply via barrel jack</strong> – Guarantees reliable operation in case of power failures.</li>
<li><strong>Stable software</strong> – Developed to ensure reliable functionality.</li>
<li><strong>Optimized ergonomics for both left- and right-handed users</strong> – Designed for comfortable use by all users.</li>
</ul>
<h2>Files for Download</h2>
<ul>
<li><a href="https://www.thingiverse.com/thing:6840254">Keypad lock housing</a></li>
</ul>
<p>The post <a href="https://nerd-corner.com/diy-keypad-lock-3d-printing-and-code/">DIY keypad lock &#8211; 3D printing and code</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nerd-corner.com/diy-keypad-lock-3d-printing-and-code/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Dupont Connector V1.1</title>
		<link>https://nerd-corner.com/dupont-connector-v1-1/</link>
					<comments>https://nerd-corner.com/dupont-connector-v1-1/#respond</comments>
		
		<dc:creator><![CDATA[Nerds]]></dc:creator>
		<pubDate>Wed, 14 Aug 2024 09:10:06 +0000</pubDate>
				<category><![CDATA[Handcrafted]]></category>
		<category><![CDATA[SolidWorks]]></category>
		<category><![CDATA[3D print]]></category>
		<category><![CDATA[CAD]]></category>
		<category><![CDATA[CAD design]]></category>
		<category><![CDATA[case]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[housing]]></category>
		<category><![CDATA[precise]]></category>
		<category><![CDATA[Solid Works]]></category>
		<guid isPermaLink="false">https://nerd-corner.com/de/?p=1619</guid>

					<description><![CDATA[<p>In response to the extremely positive feedback on my quick connectors (Dupont connectors), I realized that their original purpose of only being used in the &#8230; </p>
<p>The post <a href="https://nerd-corner.com/dupont-connector-v1-1/">Dupont Connector V1.1</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In response to the extremely positive feedback on my quick connectors (Dupont connectors), I realized that their original purpose of only being used in the development environment has been extended to permanent use on various devices. Many people also expressed the wish to be able to mount the connectors permanently or screw them on. I have now fulfilled this wish.</p>
<p><em><strong>You may also be interested in:</strong> <a href="https://nerd-corner.com/3d-printed-dupont-connector-for-jumper-cable/">3D printed Dupont connector for jumper cables</a></em></p>
<h2>Implementation of the Dupont connector</h2>
<p>As with any new development or modification of an existing part, a number of decisions had to be made, but in this case not many were necessary.</p>
<ul>
<li><strong>Number of fixing lugs:</strong> two or four</li>
<li><strong>Diameter of the fixing holes:</strong> 2.2 mm</li>
<li><strong>Cover removable after fastening:</strong> yes</li>
</ul>
<p>With the number of fixing lugs, it is clear that a single lug will cause the housing to rotate around the screw if it is not tightened firmly enough. When the connection is inserted or removed, the housing tries to rotate around the screw. With two or more tabs, insertion and removal can be achieved without any problems, even if the screws are not fully tightened.</p>
<p>The diameter of the fixing holes has been set at 2.2 mm for M2 screws. Larger screws would make the lugs larger than the connector housing itself, and two M2 screws already provide sufficient holding force.</p>
<p>The decision as to whether the cover should still be removable after the connector had been attached was inevitable. As the clamping tabs of the cover protrude from the base of the housing, the fastening tabs had to be raised above the base anyway. If the lugs were flush with the base of the housing, the lid could rise by around 0.3 mm when the screws were tightened. Why were the fixing lugs not attached directly to the lid? The lid is not stable enough to support the side tabs. The distance between the surface and the base of the housing is 1.1 mm when screwed on, which is sufficient to remove the lid without any problems.</p>
<p>Regarding the fixing holes with a diameter of 2.2 mm: The hole spacing is always a multiple of 2.54 mm, which makes sense as the DuPont plugs also have a width and height of 2.54 mm. The hole spacing increases in proportion to the number of pins on the housing. A positive side effect: These distances also match the holes of a breadboard. In Figure 1.0.1 I have mounted two 4-pin connectors on a breadboard. For the attachment, I used the matching holes at the distance of the 4-pin connectors and cut threads with an M2 tap. As you can see, the screws hold perfectly without the need for a nut.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1614 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/10/1_1.jpg" alt="Dupont Steckverbindung" width="2310" height="1355" srcset="https://nerd-corner.com/wp-content/uploads/2024/10/1_1.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/10/1_1-300x176.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/10/1_1-1024x601.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/10/1_1-768x451.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/10/1_1-1536x901.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/10/1_1-2048x1202.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<p>Yes, that&#8217;s almost it for this time &#8211; we&#8217;re actually finished now, but two things are still important to me. Firstly, I would like to talk about the versatility of the connectors. I&#8217;ve been using them for four years and am constantly discovering new ways to use them flexibly. Below are some examples with version one, which is identical to version 1.1 except for the screw-on option.</p>
<p>Figure 2.0.1 shows a 10-PIN connector with a 200 mm jumper cable. Figure 2.0.2 shows the difference between a 10-PIN connector with a 100 mm jumper cable and one with a 200 mm jumper cable.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1613 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/10/2.jpg" alt="Dupont connector" width="2310" height="1355" srcset="https://nerd-corner.com/wp-content/uploads/2024/10/2.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/10/2-300x176.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/10/2-1024x601.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/10/2-768x451.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/10/2-1536x901.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/10/2-2048x1202.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<p>Figure 2.1.1 shows a 9-PIN connector on one side and three different connectors on the opposite side. Figure 2.1.2 shows this side enlarged. Here you can see the three connectors: a 4-PIN connector, next to it a 3-PIN connector and on the far left a 2-PIN connector. If you add up the pins of the three connectors, you get the nine pins as on the other side.</p>
<p>You have probably noticed that the DuPont plugs of the three connections are different. On the 4-PIN connector, all pins are male, i.e. pins. In contrast, all pins on the middle 3-PIN connector are female, i.e. sockets. The 2-PIN connector, which combines a male and a female connector, is particularly interesting. What is it all about? Here I would like to demonstrate the flexibility of Nerd-Corner&#8217;s tool-free connector system. As with the 2-PIN plug, these plugs can be used to install reverse polarity protection: The pin is the positive pole, the socket is the negative pole. The reverse is true for the mating connector, which means that the connection cannot be plugged in incorrectly!</p>
<p>The 2-PIN plug is the simplest example, but this principle can be applied to all plugs so that more complex protection systems can also be set up.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1612 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/10/2-1.jpg" alt="dupont steckverbindung" width="2310" height="1355" srcset="https://nerd-corner.com/wp-content/uploads/2024/10/2-1.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/10/2-1-300x176.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/10/2-1-1024x601.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/10/2-1-768x451.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/10/2-1-1536x901.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/10/2-1-2048x1202.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<p>The structure in Figure 2.2.1 shows another way of creating a wiring harness. There is a 10-PIN connector on the left-hand side and a 5-PIN connector on the far right, connected by a 200 mm jumper cable. The orange 3-PIN connector is connected to the 10-PIN connector via a 400 mm jumper cable, as is the 2-PIN connector, but with a 500 mm jumper cable. This solution offers unlimited flexibility across the entire connector family and is completely tool-free.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1611 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/10/2-2.jpg" alt="dupont connector" width="2310" height="1355" srcset="https://nerd-corner.com/wp-content/uploads/2024/10/2-2.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/10/2-2-300x176.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/10/2-2-1024x601.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/10/2-2-768x451.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/10/2-2-1536x901.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/10/2-2-2048x1202.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h2>Assembling the Dupont connector</h2>
<p>I keep getting requests to build connector housings for 15 or 22 pins. Unfortunately, this is not impossible with this system, but it is a major challenge. The effort involved is disproportionate to the benefit &#8211; at least for me. I actually wanted to stop at the 6-PIN version, as the assembly requires a lot of fine motor skills and the holding force of the tabs decreases. I was able to solve the problem of the holding force from the 7-PIN version onwards by using a third tab, but this made assembly very difficult.</p>
<p>However, there is usually a solution, as can be seen in picture series 3.0.</p>
<p>In picture 3.0.1 you can see that a female connector comes into play, as we are using male (pin) cables here. A pin header could be used instead for female cables.</p>
<p>The procedure for assembling with male cables (pins) is as follows:</p>
<ol>
<li>Push the cables into the socket strip.</li>
<li>Press the inserted DuPont housings lightly into the base of the connector and press the cables into the recesses provided (see Fig. 3.0.1).</li>
<li>Press the DuPont housings fully into the base of the housing and push them towards the internal stop strip. Then pull the cables backwards one by one &#8211; the socket strip should not be removed (Fig. 3.0.2).</li>
<li>As soon as the DuPont plugs are fixed in the housing, the cover is fitted and snapped into place (Fig. 3.0.3).</li>
<li>Finally, the socket strip is removed and the assembly is complete (Fig. 3.0.4).</li>
</ol>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1610 zoooom" src="https://nerd-corner.com/wp-content/uploads/2024/10/3.jpg" alt="Dupont Stecker" width="2310" height="1355" srcset="https://nerd-corner.com/wp-content/uploads/2024/10/3.jpg 2316w, https://nerd-corner.com/wp-content/uploads/2024/10/3-300x176.jpg 300w, https://nerd-corner.com/wp-content/uploads/2024/10/3-1024x601.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2024/10/3-768x451.jpg 768w, https://nerd-corner.com/wp-content/uploads/2024/10/3-1536x901.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2024/10/3-2048x1202.jpg 2048w" sizes="auto, (max-width: 2310px) 100vw, 2310px" /></p>
<h2>Files to download</h2>
<ul>
<li><a href="https://www.thingiverse.com/thing:6515743" target="_blank" rel="noopener">Dupont Connector 3PIN</a></li>
</ul>
<p>&nbsp;</p>
<p>The post <a href="https://nerd-corner.com/dupont-connector-v1-1/">Dupont Connector V1.1</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nerd-corner.com/dupont-connector-v1-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>3D printed bit adapter square / hexagon</title>
		<link>https://nerd-corner.com/3d-printed-bit-adapter-square-hexagon/</link>
					<comments>https://nerd-corner.com/3d-printed-bit-adapter-square-hexagon/#respond</comments>
		
		<dc:creator><![CDATA[Nerds]]></dc:creator>
		<pubDate>Thu, 05 Oct 2023 04:40:00 +0000</pubDate>
				<category><![CDATA[Handcrafted]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[SolidWorks]]></category>
		<category><![CDATA[3D Druck]]></category>
		<category><![CDATA[Bit-Adapter]]></category>
		<category><![CDATA[Bits]]></category>
		<category><![CDATA[CAD]]></category>
		<category><![CDATA[CAD design]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Kreutzschlitz]]></category>
		<category><![CDATA[Sechskant]]></category>
		<category><![CDATA[Solid Works]]></category>
		<category><![CDATA[Steckschlüsselkasten]]></category>
		<category><![CDATA[Torx]]></category>
		<category><![CDATA[Vierkant]]></category>
		<category><![CDATA[Werkzeug]]></category>
		<guid isPermaLink="false">https://nerd-corner.com/de/?p=1500</guid>

					<description><![CDATA[<p>I bought a socket spanner box (1.0.1-1.0.3) with 50 or 150 pieces and thought I was set for the rest of my life. But unfortunately, &#8230; </p>
<p>The post <a href="https://nerd-corner.com/3d-printed-bit-adapter-square-hexagon/">3D printed bit adapter square / hexagon</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I bought a socket spanner box (1.0.1-1.0.3) with 50 or 150 pieces and thought I was set for the rest of my life. But unfortunately, something gets lost or broken over time. Most often, the bits are torn out or rounded off at some point and you have to replace them. Replacement tools from the manufacturer are often expensive or no longer in stock. In addition, many tools in the same case set are not compatible with each other. This is due to missing adapters that can form a bridge to other tool holders.<img loading="lazy" decoding="async" class="aligncenter wp-image-1487 zoooom" src="https://nerd-corner.com/wp-content/uploads/2023/09/1_0.jpg" alt="Steckschlüsselkasten" width="2290" height="1373" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/1_0.jpg 2292w, https://nerd-corner.com/wp-content/uploads/2023/09/1_0-300x180.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/1_0-1024x614.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/1_0-768x460.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/1_0-1536x921.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/1_0-2048x1228.jpg 2048w" sizes="auto, (max-width: 2290px) 100vw, 2290px" /></p>
<p>I do a lot of screwing in my workshop and most often I use Torx, hexagon socket and Phillips bits. I always buy these bits in packs of 10 or 25 because they are cheaper and I like to have a small stock. I feel the same way about tools, so I decided to design a few bit adapters and 3D print them.</p>
<p><em><strong>You might also be interested in:</strong> <a href="https://nerd-corner.com/3d-printed-battery-container-for-cr2032/">3D printed battery container</a></em></p>
<h2>Procedure</h2>
<p>The first thing I did was to tidy up my socket cases to find out which adapters are actually needed. The most common square sizes for sockets are:</p>
<ul>
<li>¼&#8221; equals 6,35 mm</li>
<li>3/8&#8243; equals 9,52 mm</li>
<li>½&#8221; equals 12,7 mm</li>
</ul>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1491 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/2_0.jpg" alt="Bit-Adapter Vierkant" width="2290" height="1373" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/2_0.jpg 2292w, https://nerd-corner.com/wp-content/uploads/2023/09/2_0-300x180.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/2_0-1024x614.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/2_0-768x460.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/2_0-1536x921.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/2_0-2048x1228.jpg 2048w" sizes="auto, (max-width: 2290px) 100vw, 2290px" /></p>
<p>In picture 2.0 I have put together some square photographs. Figure 2.0.1 shows a ¼&#8221; hexagonal shaft with three different square sizes. This hexagonal shaft can be easily clamped in a three-jaw chuck which is usually used with a drill or cordless screwdriver. Picture 2.0.2 shows the version with a handle, where the square is at the end of the shaft. In 2.0.3 you can see three joints with different square sizes and picture 2.0.4 shows a so-called &#8220;spring pressure piece&#8221;. The resilient thrust piece has the task of retracting when inserted into the counterpart and engaging in the intended notch or groove in the counterpart in the final position. This ensures a better hold of both parts in the connection. I have marked the position of the springy pressure piece on the square with red circles on some of the squares as an example. It is important for me to explain the function, because in the construction of the adapter a different solution is realised.</p>
<h2>CAD construction of the bit adapter<img loading="lazy" decoding="async" class="aligncenter wp-image-1490 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/3_0.jpg" alt="Bit-Adapter CAD" width="2290" height="1373" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/3_0.jpg 2292w, https://nerd-corner.com/wp-content/uploads/2023/09/3_0-300x180.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/3_0-1024x614.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/3_0-768x460.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/3_0-1536x921.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/3_0-2048x1228.jpg 2048w" sizes="auto, (max-width: 2290px) 100vw, 2290px" /></h2>
<p>The realisation on the CAD is actually quite quick. The dimensions for the depth of the square on one side and the insertion depth of the hexagon on the other side of the adapter are measured on the shafts. Picture 3.0.1 shows the surface (red) on the square that is pushed into the adapter, which is the same as the surface on the hexagon (black) in picture 3.0.2. In picture 3.0.3 I made a cut and marked the cut surface in green. The placement of the two shafts is shown by the colours.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1489 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/4_0.jpg" alt="CAD Bit-Adapter" width="2290" height="1373" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/4_0.jpg 2292w, https://nerd-corner.com/wp-content/uploads/2023/09/4_0-300x180.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/4_0-1024x614.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/4_0-768x460.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/4_0-1536x921.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/4_0-2048x1228.jpg 2048w" sizes="auto, (max-width: 2290px) 100vw, 2290px" /></p>
<p>Only the square dimensions are decisive for the outer dimensions of the adapters. Since the square shafts are getting bigger and bigger, the outer diameter of the adapter must of course also be adapted. I have therefore added a step to the ½&#8221; adapter (4.0.3). After all, there is enough material in the hexagon as it does not change. The recesses or pockets on the lateral surfaces are not for show. On the one hand they serve the stability of the adapter and on the other hand they save material. The two threads are the same on all adapters. The M3 threads are used for optional clamping of the shafts.</p>
<p>I use studs with a hexagon socket, which are flat at the end in order not to damage the surface of the shafts. You can also use normal screws if they don&#8217;t bother you. The position of the threads can be seen in the sectional view in figure 3.0.3.</p>
<p>Excursus on spring-loaded pressure pieces: The spring pressure pieces have already been mentioned in picture 2.0.4. I have been trying to use them in plastic for several years and have always found that they do not work. It is easier to design the clamping with screws and it is guaranteed to work!</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1488 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/5_0.jpg" alt="Bit-Adapter" width="2290" height="1373" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/5_0.jpg 2292w, https://nerd-corner.com/wp-content/uploads/2023/09/5_0-300x180.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/5_0-1024x614.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/5_0-768x460.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/5_0-1536x921.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/5_0-2048x1228.jpg 2048w" sizes="auto, (max-width: 2290px) 100vw, 2290px" /></p>
<p>Finally, the bit adapters are printed and cleaned and the M3 threads are cut. In the pictures under 5.0 you can see some examples for the use of the adapters.</p>
<h4>Note</h4>
<p>The bit adapters are of course only suitable for use under 15Nm. I easily reached this value with carbon fibre reinforced filament. With higher values there is a risk of breakage and therefore also a risk of injury!</p>
<h2>Files for download</h2>
<ul>
<li><a href="https://www.thingiverse.com/thing:5376154" target="_blank" rel="noopener">Adapter 3/8&#8243; to  ¼&#8221;</a></li>
</ul>
<p>The post <a href="https://nerd-corner.com/3d-printed-bit-adapter-square-hexagon/">3D printed bit adapter square / hexagon</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nerd-corner.com/3d-printed-bit-adapter-square-hexagon/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>3D Printed Tealight Holder</title>
		<link>https://nerd-corner.com/3d-printed-tealight-holder/</link>
					<comments>https://nerd-corner.com/3d-printed-tealight-holder/#respond</comments>
		
		<dc:creator><![CDATA[Nerds]]></dc:creator>
		<pubDate>Mon, 25 Sep 2023 11:37:52 +0000</pubDate>
				<category><![CDATA[Handcrafted]]></category>
		<category><![CDATA[SolidWorks]]></category>
		<category><![CDATA[3D print]]></category>
		<category><![CDATA[CAD]]></category>
		<category><![CDATA[CAD design]]></category>
		<category><![CDATA[case]]></category>
		<category><![CDATA[christmas]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[holder]]></category>
		<category><![CDATA[housing]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[LED tealight]]></category>
		<category><![CDATA[Solid Works]]></category>
		<category><![CDATA[tealight holder]]></category>
		<guid isPermaLink="false">https://nerd-corner.com/de/?p=1484</guid>

					<description><![CDATA[<p>Tea lights are practical and create a pleasant Christmas atmosphere. Meanwhile, LED tea lights are also very popular. They usually have a battery as their &#8230; </p>
<p>The post <a href="https://nerd-corner.com/3d-printed-tealight-holder/">3D Printed Tealight Holder</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Tea lights are practical and create a pleasant Christmas atmosphere. Meanwhile, LED tea lights are also very popular. They usually have a battery as their energy supply. They are often operated with the CR2032 button cell. This has a voltage of 3V and the tea lights light up between 3 and 8 hours with one battery charge. After that, you have to change the battery. This bothers me because it is a lot of work and I have a guilty conscience. I would find it better to supply the tea lights with power permanently via a cable.</p>
<p><em><strong>You might also be interested in:</strong> <a href="https://nerd-corner.com/3d-printed-battery-container-for-cr2032/" target="_blank" rel="noopener">3D printed battery container</a></em></p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1469 aligncenter" src="https://nerd-corner.com/wp-content/uploads/2023/09/Teaholder.gif" alt="Teaholder" width="480" height="338" /></p>
<h2>List of components</h2>
<ul>
<li>LED tealightset</li>
<li>Button cell CR2032</li>
<li>Jumper cables</li>
<li>Screws</li>
</ul>
<h2>Procedure</h2>
<p>First, I ordered a set of LED tea lights. I measured it and examined whether it could be connected to a cable. I was quite surprised by the technique of how the LED gets power from the battery. It is simple but well thought out! With the on/off switch, a metal pin is pushed to the edge of the battery. This edge is the positive pole. The other metal pin is fixed in the housing and permanently touches the bottom of the battery. The bottom is the negative pole. The metal pins reminded me of pins on jumper cables. You can see how I connected the cables to the tea lights in the following series of pictures.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1477 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/1neu.jpg" alt="Tealight holder step 1" width="2265" height="1317" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/1neu.jpg 2275w, https://nerd-corner.com/wp-content/uploads/2023/09/1neu-300x174.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/1neu-1024x595.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/1neu-768x447.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/1neu-1536x893.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/1neu-2048x1191.jpg 2048w" sizes="auto, (max-width: 2265px) 100vw, 2265px" /></p>
<p>First, the cover and contact foil must be removed. Then the battery is removed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1476 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/2neu.jpg" alt="Tealight holder step 2" width="2265" height="1317" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/2neu.jpg 2275w, https://nerd-corner.com/wp-content/uploads/2023/09/2neu-300x174.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/2neu-1024x595.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/2neu-768x447.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/2neu-1536x893.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/2neu-2048x1191.jpg 2048w" sizes="auto, (max-width: 2265px) 100vw, 2265px" /></p>
<p>The two current collectors are now visible in the battery compartment. The negative pole is brought into the vertical position using a screwdriver or pliers.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1475 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/3neu.jpg" alt="Tealight holder step 3" width="2265" height="1317" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/3neu.jpg 2275w, https://nerd-corner.com/wp-content/uploads/2023/09/3neu-300x174.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/3neu-1024x595.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/3neu-768x447.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/3neu-1536x893.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/3neu-2048x1191.jpg 2048w" sizes="auto, (max-width: 2265px) 100vw, 2265px" /></p>
<p>Then remove the black plastic cover (female) from both jumper cables with side cutters. But be careful not to damage or crush the metal clamps!</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1474 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/4neu.jpg" alt="Tealight holder step 4" width="2265" height="1317" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/4neu.jpg 2275w, https://nerd-corner.com/wp-content/uploads/2023/09/4neu-300x174.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/4neu-1024x595.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/4neu-768x447.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/4neu-1536x893.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/4neu-2048x1191.jpg 2048w" sizes="auto, (max-width: 2265px) 100vw, 2265px" /></p>
<p>A jumper cable is pushed over the pin at the positive terminal and at the negative terminal and pressed on. Afterwards, the holding capacity of the press connection should be tested. When the metal clamps are firmly seated on the pin, the function of the LED should be checked. For example, by removing the battery.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1473 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/5neu.jpg" alt="Tealight holder step 5" width="2265" height="1317" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/5neu.jpg 2275w, https://nerd-corner.com/wp-content/uploads/2023/09/5neu-300x174.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/5neu-1024x595.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/5neu-768x447.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/5neu-1536x893.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/5neu-2048x1191.jpg 2048w" sizes="auto, (max-width: 2265px) 100vw, 2265px" /></p>
<p>The cables are fixed with hot glue. Finally, after checking the function of the LED again, I attach a connector housing to the cables. You can find out how to construct such a connector housing <a href="https://nerd-corner.com/3d-printed-dupont-connector-for-jumper-cable/">here</a>.</p>
<p>Secondly, I need a holder for my wired tea lights. I want to design the holder myself on the CAD and then print it out on the 3D printer. You can see how to design such a tea light holder in Solidworks in the video below:</p>
<p><iframe loading="lazy" hcb-fetch-image-from="https://youtu.be/mbkJTOPKhoM" title="SolidWorks Design: Tealight holder (with STL file)" width="1200" height="675" src="https://www.youtube.com/embed/mbkJTOPKhoM?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe></p>
<p>After the tealight holder has been designed and printed, it is painted. Then the wired LED tea light can be mounted in the holder. Of course, the holder should be properly deburred beforehand. You can see the procedure in the next picture.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1472 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/6neu.jpg" alt="Tealight holder step 6" width="2265" height="1317" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/6neu.jpg 2275w, https://nerd-corner.com/wp-content/uploads/2023/09/6neu-300x174.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/6neu-1024x595.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/6neu-768x447.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/6neu-1536x893.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/6neu-2048x1191.jpg 2048w" sizes="auto, (max-width: 2265px) 100vw, 2265px" /></p>
<p>When using the tealight holder shown here, make sure that the cables are fed through the hole provided for this purpose. Please also take care to insert the cables one after the other into the hole in step 6.4.</p>
<h2>Power supply</h2>
<p>The third step is the power supply for the tea lights. For this I use a USB power supply with 5V and a step down module like the LM2596s. The voltage converter is supposed to provide me with the 3V that the tea lights need. <a href="https://nerd-corner.com/step-down-modul-dc-dc-lm2596s/">Fortunately, I have constructed some housings for the LM2596 in the past that I can use here.</a></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-904" src="https://nerd-corner.com/wp-content/uploads/2021/06/LM2596Sm.jpg" alt="LM2596S Step-down" width="1010" height="323" srcset="https://nerd-corner.com/wp-content/uploads/2021/06/LM2596Sm.jpg 1010w, https://nerd-corner.com/wp-content/uploads/2021/06/LM2596Sm-300x96.jpg 300w, https://nerd-corner.com/wp-content/uploads/2021/06/LM2596Sm-768x246.jpg 768w" sizes="auto, (max-width: 1010px) 100vw, 1010px" /></p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1471 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/7neu.jpg" alt="Tealight holder step 7" width="2265" height="1317" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/7neu.jpg 2275w, https://nerd-corner.com/wp-content/uploads/2023/09/7neu-300x174.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/7neu-1024x595.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/7neu-768x447.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/7neu-1536x893.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/7neu-2048x1191.jpg 2048w" sizes="auto, (max-width: 2265px) 100vw, 2265px" /></p>
<p>With the LM2596 used here, I reduce the voltage from the USB charger from 5V to 3V for the LED. You can also apply a voltage of less than 3V, in which case only the luminosity of the LEDs is reduced. The arrangement of the holders in the picture is only an example.</p>
<p>If you need an independent power source, e.g. a power bank, you can use <a href="https://nerd-corner.com/diy-powerbank-with-voltage-regulator-and-voltmeter/">my power bank with 3V output</a>.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1033" src="https://nerd-corner.com/wp-content/uploads/2021/07/PowerbankPurKpl.jpg" alt="Review DIY Powerbank" width="2166" height="984" srcset="https://nerd-corner.com/wp-content/uploads/2021/07/PowerbankPurKpl.jpg 2166w, https://nerd-corner.com/wp-content/uploads/2021/07/PowerbankPurKpl-300x136.jpg 300w, https://nerd-corner.com/wp-content/uploads/2021/07/PowerbankPurKpl-1024x465.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2021/07/PowerbankPurKpl-768x349.jpg 768w, https://nerd-corner.com/wp-content/uploads/2021/07/PowerbankPurKpl-1536x698.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2021/07/PowerbankPurKpl-2048x930.jpg 2048w" sizes="auto, (max-width: 2166px) 100vw, 2166px" /></p>
<h2>Assembly</h2>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1470 zoooom" style="font-size: 1.125rem;" src="https://nerd-corner.com/wp-content/uploads/2023/09/8neu.jpg" alt="Tealight holder step 8" width="2265" height="1317" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/8neu.jpg 2275w, https://nerd-corner.com/wp-content/uploads/2023/09/8neu-300x174.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/8neu-1024x595.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/8neu-768x447.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/8neu-1536x893.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/8neu-2048x1191.jpg 2048w" sizes="auto, (max-width: 2265px) 100vw, 2265px" /></p>
<p>Different screws can be used for mounting the tea light holders. Depending on the surface, you can use wood screws or cylinder head screws, for example. Alternatively, you can also screw the holder directly to the wall with the help of dowels. The only thing to note is that the screw head must be larger than 7 mm and smaller than 11 mm in diameter. The hole for the screws has a diameter of 5 mm. The hole for the cables lies vertically on the centre line of the screw hole and the centre distance to this is exactly 7 mm. The diameter of the cable hole is 4.5 mm.</p>
<h2>Files for download</h2>
<ul>
<li><a href="https://www.thingiverse.com/thing:5241031" target="_blank" rel="noopener">Tealight holder</a></li>
</ul>
<p>The post <a href="https://nerd-corner.com/3d-printed-tealight-holder/">3D Printed Tealight Holder</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nerd-corner.com/3d-printed-tealight-holder/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>3D printed battery container for CR2032</title>
		<link>https://nerd-corner.com/3d-printed-battery-container-for-cr2032/</link>
					<comments>https://nerd-corner.com/3d-printed-battery-container-for-cr2032/#respond</comments>
		
		<dc:creator><![CDATA[Nerds]]></dc:creator>
		<pubDate>Fri, 25 Aug 2023 11:16:24 +0000</pubDate>
				<category><![CDATA[Handcrafted]]></category>
		<category><![CDATA[SolidWorks]]></category>
		<category><![CDATA[3D print]]></category>
		<category><![CDATA[Akku]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[battery container]]></category>
		<category><![CDATA[button cell]]></category>
		<category><![CDATA[CAD]]></category>
		<category><![CDATA[CAD design]]></category>
		<category><![CDATA[case]]></category>
		<category><![CDATA[CR2032]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[PLA]]></category>
		<category><![CDATA[Powerbank]]></category>
		<category><![CDATA[Solid Works]]></category>
		<guid isPermaLink="false">https://nerd-corner.com/de/?p=1495</guid>

					<description><![CDATA[<p>The so-called button cells are being used more and more and are contained in remote controls, LED tea lights, key rings, kitchen scales etc. If &#8230; </p>
<p>The post <a href="https://nerd-corner.com/3d-printed-battery-container-for-cr2032/">3D printed battery container for CR2032</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The so-called button cells are being used more and more and are contained in remote controls, LED tea lights, key rings, kitchen scales etc. If a battery runs out, you usually don&#8217;t buy just one battery, but a set.</p>
<p>To organise the workshop, I have developed a storage box for CR2032 and similar batteries of this type. There are already a few, but they all had the same shortcoming. The battery containers for CR2032 must always be opened with the proper side facing upwards, otherwise everything falls onto the floor. My battery cases for the CR2032 offer safe and clean storage without the cells falling out. In addition, you always have an overview of the number of batteries present.</p>
<p>The container is available in 2 versions, one for 10 and one for 22 button cells. The container consists of a drawer and a cover (container) and is safe against shocks and falls. The batteries are simply clicked into place and hold firmly in their drawer.</p>
<p><em><strong>You might also be interested in:</strong> <a href="https://nerd-corner.com/3d-printed-dupont-connector-for-jumper-cable/" target="_blank" rel="noopener">3D printed Dupont connector</a></em></p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1455 aligncenter" src="https://nerd-corner.com/wp-content/uploads/2023/09/Battery-container-CR2032.gif" alt="Battery container CR2032" width="640" height="480" /></p>
<h2>Construction of battery container CR2032</h2>
<p>The container must be stable and durable, but still have handy dimensions. In addition, each individual battery must sit firmly in its compartment and yet be easy to remove. I also asked myself how many batteries the battery container for the 2032 should actually contain. Most sets consist of 5, 6, 8 or 10, sometimes even 20. In any case, the container had to fit in my desk drawer. As I was not sure about the number of batteries to be stored, I decided on two variants, one with 10 pieces and one with 22 pieces.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1464 zoooom" src="https://nerd-corner.com/wp-content/uploads/2023/09/alle-Batteriehulsen-CR2032-oben-scaled.jpg" alt="all battery variants button cells" width="2550" height="1436" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/alle-Batteriehulsen-CR2032-oben-scaled.jpg 2560w, https://nerd-corner.com/wp-content/uploads/2023/09/alle-Batteriehulsen-CR2032-oben-300x169.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/alle-Batteriehulsen-CR2032-oben-1024x577.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/alle-Batteriehulsen-CR2032-oben-768x432.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/alle-Batteriehulsen-CR2032-oben-1536x865.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/alle-Batteriehulsen-CR2032-oben-2048x1153.jpg 2048w" sizes="auto, (max-width: 2550px) 100vw, 2550px" /></p>
<p>The construction on the CAD starts with the drawer, i.e. the slide-in part, the long part for 22 pieces. The width of the drawer depends of course on the width of the battery, the battery is 3mm thick, 2.95mm to be exact, and needs enough air between the individual walls. A gap of 0.15-0.2mm for each side is enough to avoid friction. So if we add it all up, we get a shaft width of 3.3-3.4mm. We create the holding force that prevents the battery from falling out of the shaft with the edge trick. We create a circular pocket in the centre of the slot with a larger diameter than the battery. Then we cut off about 1 to 3 mm of the material above the centre point, thus creating an edge. This edge must be slightly smaller in absolute length than the diameter of the battery (in this case smaller than 20mm). If you now push the battery into the shaft, it must overcome the edge, which is also possible due to the elasticity of the material.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1461 zoooom" src="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-skizziert-scaled.jpg" alt="battery container CAD" width="2550" height="1249" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-skizziert-scaled.jpg 2560w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-skizziert-300x147.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-skizziert-1024x501.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-skizziert-768x376.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-skizziert-1536x752.jpg 1536w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-skizziert-2048x1003.jpg 2048w" sizes="auto, (max-width: 2550px) 100vw, 2550px" /></p>
<p>Now the battery sits in the shaft and cannot overcome the edge in the other direction with its own weight. This principle is actually quite simple, with the necessary knowledge about material, manufacturing tolerances, forces and holding torques. In the end, it was a mixture of experience and a few test prints until the optimum result was achieved. Now the battery fits neatly into the shaft and holds perfectly. And with gentle pressure, the battery can also be removed from the shaft again.</p>
<p>The next goal was to design the slot so that it holds securely in the case. This is also an interaction of material elasticity and the right diameter at the collar that holds the construction together. After a few test pressings, I was satisfied.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1456 zoooom" src="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-Nahaufname.jpg" alt="battery container close up" width="1590" height="894" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-Nahaufname.jpg 1600w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-Nahaufname-300x169.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-Nahaufname-1024x576.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-Nahaufname-768x432.jpg 768w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulsen-Nahaufname-1536x864.jpg 1536w" sizes="auto, (max-width: 1590px) 100vw, 1590px" /></p>
<p>The shell of the CR2032 battery container is quickly constructed. Basically, it is a cylinder with a base. The inner diameter was adapted to the insertion size to ensure locking and the hole in the bottom of the sleeve is for air release, because when the insertion is pushed into the sleeve, the air must be able to escape.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1460 zoooom" src="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-seitlich.jpg" alt="battery container construction round cell" width="1160" height="628" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-seitlich.jpg 1167w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-seitlich-300x162.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-seitlich-1024x555.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-seitlich-768x416.jpg 768w" sizes="auto, (max-width: 1160px) 100vw, 1160px" /> <img loading="lazy" decoding="async" class="aligncenter wp-image-1459 zoooom" src="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-quer.jpg" alt="battery container construction button cell" width="1170" height="706" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-quer.jpg 1178w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-quer-300x181.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-quer-1024x618.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-quer-768x464.jpg 768w" sizes="auto, (max-width: 1170px) 100vw, 1170px" /> <img loading="lazy" decoding="async" class="aligncenter wp-image-1458 zoooom" src="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-seitlich-klein.jpg" alt="battery container construction coin cell" width="1180" height="799" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-seitlich-klein.jpg 1190w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-seitlich-klein-300x203.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-seitlich-klein-1024x694.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-seitlich-klein-768x520.jpg 768w" sizes="auto, (max-width: 1180px) 100vw, 1180px" /> <img loading="lazy" decoding="async" class="aligncenter wp-image-1457 zoooom" src="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-quer-klein.jpg" alt="battery container construction round cell" width="1180" height="657" srcset="https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-quer-klein.jpg 1185w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-quer-klein-300x167.jpg 300w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-quer-klein-1024x570.jpg 1024w, https://nerd-corner.com/wp-content/uploads/2023/09/Batteriehulse-konstruktion-quer-klein-768x428.jpg 768w" sizes="auto, (max-width: 1180px) 100vw, 1180px" /></p>
<h2>Files for download</h2>
<ul>
<li><a href="https://www.thingiverse.com/thing:5240533" target="_blank" rel="noopener">Battery container CR2032</a></li>
</ul>
<p>The post <a href="https://nerd-corner.com/3d-printed-battery-container-for-cr2032/">3D printed battery container for CR2032</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nerd-corner.com/3d-printed-battery-container-for-cr2032/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
