<?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>Electronics &#8211; Andromedabay Store</title>
	<atom:link href="https://andromedabay.ddns.net/category/my-topics/electronics/feed/" rel="self" type="application/rss+xml" />
	<link>https://andromedabay.ddns.net</link>
	<description>Your source of Technical Insight and Interesting Stuff</description>
	<lastBuildDate>Mon, 27 Jun 2022 01:43:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://andromedabay.ddns.net/wp-content/uploads/2015/08/cropped-myicon-32x32.png</url>
	<title>Electronics &#8211; Andromedabay Store</title>
	<link>https://andromedabay.ddns.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Controlling 1.54 inch E-Paper via Pico</title>
		<link>https://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/</link>
					<comments>https://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/#respond</comments>
		
		<dc:creator><![CDATA[Hammad Rauf]]></dc:creator>
		<pubDate>Sun, 26 Jun 2022 18:12:41 +0000</pubDate>
				<category><![CDATA[E-Paper Display]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Pico]]></category>
		<category><![CDATA[c/c++]]></category>
		<category><![CDATA[epd]]></category>
		<category><![CDATA[pico]]></category>
		<category><![CDATA[raspberry-pi-pico]]></category>
		<category><![CDATA[waveshare]]></category>
		<category><![CDATA[wsl2]]></category>
		<guid isPermaLink="false">https://andromedabay.ddns.net/?p=1147</guid>

					<description><![CDATA[The original Kindle made popular Electronic Paper Displays  (EPD). Today you may be surprised to find out that some grocery stores use small network enabled]]></description>
										<content:encoded><![CDATA[<div class='booster-block booster-read-block'>
                <div class="twp-read-time">
                	<i class="booster-icon twp-clock"></i> <span>Read Time:</span>2 Minute, 50 Second                </div>

            </div><p>The original Kindle made popular Electronic Paper Displays  (EPD). Today you may be surprised to find out that some grocery stores use small network enabled EPD price tags, that appear just like a paper tag. But these can be programmed to show different price remotely. Perhaps the biggest advantage to EPD is that once a display is setup they do not need any electrical power to keep showing it. Yes, you can switch off or disconnect them.</p>
<p>EPD have disadvantages also. These include that they are slow to refresh the display, cannot be used out doors for a long time, and have limited color options in the market.</p>
<p>I wanted to make a small micro controller based device that would need a display and also consume less electrical power. I ordered a 1.54 inch EPD from Waveshare. My original plan was to use Arduino Nano (ATMega32P) based solution, but I found out that I could not connect the e-paper display and a couple of other peripherals to Arduino, all at the same time. I did not need Wifi or Network connectivity for the application in my mind. So I opted for Raspberry Pi Pico (Based on RP2040). Pico is low cost, you should be able to get it for CAD$5.25 but the cost of shipping and tax added I ended up ordering it from AliExpress as it was more economical.</p>
<p>Waveshare website have very good documentation and code examples for most of their products. Unfortunately for me, the 1.54 inch EPD did not have any ready made examples to go with Pico. Luckily I found Waveshare Pico code for their other EPD, with this along with 1.54 inch EPD code for RaspberryPi_JetsonNano, I was able to get Pico to control it. I have uploaded the result on Github for others using Pico with 1.54inch EPD. It is using C/C++ and can be cross compiled for Pico on Windows, Linux, or a Raspberry Pi computer.</p>
<p>What is the fun part? You can do embedded C/C++ programming in Windows 10 or 11. On my Github page and in the reference links below you will find interesting information on how to use Windows Sub System for Linux (WSL2) for programming the Micro controller in C/C++.</p>
<h2>Video</h2>
<p><iframe title="YouTube video player" src="https://www.youtube.com/embed/lqd6cS6Fkh8" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<h2>Further Reading</h2>
<ol>
<li>My edited source code for controlling 1.54 inch EPD via Pico, <a href="https://github.com/hammadrauf/pico_epd_1in54" target="_blank" rel="noopener">hammadrauf/pico_epd_1in54: Raspberry Pi Pico example interface code with E-Paper Display 1.54 inch from Waveshare.com. (github.com)</a>, Date Accessed: June 26, 2022.</li>
<li>Raspberry Pi Pico, <a href="https://www.raspberrypi.com/products/raspberry-pi-pico/" target="_blank" rel="noopener">Raspberry Pi Pico Page – Raspberry Pi</a>, Date Accessed: June 26, 2022.</li>
<li>Comparision of Pico with other boards (Youtube Video), <a href="https://www.youtube.com/watch?v=E2wmN9fRvkg" target="_blank" rel="noopener">(101) RaspberryPi PICO vs Arduino NANO vs STM32 Blue Pill vs ESP32 vs STM32 Black Pill | Comparison &#8211; YouTube</a>, Date Accessed: June 26, 2022.</li>
<li>Waveshare 1.54 inch EPD, <a href="https://www.waveshare.com/product/displays/e-paper/1.54inch-e-paper-module.htm" target="_blank" rel="noopener">200&#215;200, 1.54inch E-Ink display module, SPI interface | HINK-E0154A05 WFC0000CZ07 (waveshare.com)</a>, Date Accessed: June 26, 2022.</li>
<li>Paul Bupe&#8217;s article on setting up Windows WSL2 Environment for C/C++ Development for Pico, <a href="https://paulbupejr.com/raspberry-pi-pico-windows-development/" target="_blank" rel="noopener">Easy Raspberry Pi Pico Microcontroller C / C++ Programming on Windows (paulbupejr.com)</a>, Date Accessed: June 26, 2022</li>
<li>Digi-Key &#8211; Shawn Hymel&#8217;s page and video about Pico SPI interfacing, <a href="https://www.digikey.ca/en/maker/projects/raspberry-pi-pico-rp2040-spi-example-with-micropython-and-cc/9706ea0cf3784ee98e35ff49188ee045" target="_blank" rel="noopener">Raspberry Pi Pico SPI Tutorial (digikey.ca)</a>, Date Accessed: June 26, 2022</li>
<li>Introduction to what is WSL, <a href="https://docs.microsoft.com/en-us/windows/wsl/about" target="_blank" rel="noopener">What is Windows Subsystem for Linux | Microsoft Docs</a>, Date Accessed: June 26, 2022</li>
</ol>


		<div class=" twp-social-share  booster-clear">

						    <header class="twp-plugin-title twp-share-title">
			        <h2>Share</h2>
			    </header>
			
		    <div class="twp-share-container">
				<div class="twp-social-icons twp-social-facebook">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'https://www.facebook.com/sharer/sharer.php?u=http://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/'); "  href="https://www.facebook.com/sharer/sharer.php?u=http://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/" >
			                                <span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>												<span class="twp-share-media">

													<span class="twp-share-label">
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z" /></svg></span>
				                                        <span class="twp-label-title">
				                                            Facebook				                                        </span>
				                                    </span>
												</span>
																					</a>
									</div><div class="twp-social-icons twp-social-twitter">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'https://twitter.com/intent/tweet?text=Controlling%201.54%20inch%20E-Paper%20via%20Pico&#038;url=http://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/'); "  href="https://twitter.com/intent/tweet?text=Controlling%201.54%20inch%20E-Paper%20via%20Pico&#038;url=http://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/" >
			                                <span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>												<span class="twp-share-media">
													<span class="twp-share-label">
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path></svg></span>
				                                        <span class="twp-label-title">
				                                            Twitter				                                        </span>
												    </span>
												</span>
																					</a>
									</div><div class="twp-social-icons twp-social-pinterest">										<a class="twp-icon-holder" rel="nofollow" href="javascript:twp_be_pinterest()">
											<span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>				                                <span class="twp-share-media">
													<span class="twp-share-label">
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"></path></svg></span>
				                                        <span class="twp-label-title">
				                                            Pinterest				                                        </span>
				                                    </span>
												</span>
																					</a>
									</div><div class="twp-social-icons twp-social-linkedin">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'http://www.linkedin.com/shareArticle?mini=true&#038;title=Controlling%201.54%20inch%20E-Paper%20via%20Pico&#038;url=http://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/'); "  href="http://www.linkedin.com/shareArticle?mini=true&#038;title=Controlling%201.54%20inch%20E-Paper%20via%20Pico&#038;url=http://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/" >
																							<span class="twp-share-media">
				                                    <span class="share-media-nocount">
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path></svg>				                                    </span>
													<span class="twp-share-label twp-label-title">
				                                        LinkedIn				                                    </span>
												</span>
																					</a>
										</div><div class="twp-social-icons twp-social-email">										<a class="twp-icon-holder" rel="nofollow"  href="mailto:?subject=:&amp;body= Controlling 1.54 inch E-Paper via Pico http://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/">
																							<span class="twp-share-media">
				                                    <span class="share-media-nocount">
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" /></svg>				                                    </span>
				                                    <span class="twp-share-label twp-label-title">
				                                        Email				                                    </span>
												</span>
																					</a>
										</div><div class="twp-social-icons twp-social-vk">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'http://vk.com/share.php?url=http://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/&#038;caption=Controlling%201.54%20inch%20E-Paper%20via%20Pico'); "  href="http://vk.com/share.php?url=http://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/&#038;caption=Controlling%201.54%20inch%20E-Paper%20via%20Pico" >
																							<span class="twp-share-media">
				                                    <span class="share-media-nocount">
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-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,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"></path></svg>				                                    </span>
													<span class="twp-share-label twp-label-title">
				                                        VK				                                    </span>
												</span>
																					</a>
										</div>			</div>
		</div>

	]]></content:encoded>
					
					<wfw:commentRss>https://andromedabay.ddns.net/controlling-1-54-inch-e-paper-via-pico/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Setup a Cost Effective Web Site</title>
		<link>https://andromedabay.ddns.net/setup-a-cost-effective-web-site/</link>
					<comments>https://andromedabay.ddns.net/setup-a-cost-effective-web-site/#respond</comments>
		
		<dc:creator><![CDATA[Hammad Rauf]]></dc:creator>
		<pubDate>Sat, 21 Aug 2021 21:54:13 +0000</pubDate>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Apps]]></category>
		<category><![CDATA[Cost Effective Website]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[MariaDB/MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RaspberryPi2]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Web Site]]></category>
		<guid isPermaLink="false">https://andromedabay.ddns.net/?p=954</guid>

					<description><![CDATA[Many people pay hefty monthly subscription fees to have a Website for their Business or Personal use. It is possible to setup up a functional]]></description>
										<content:encoded><![CDATA[<div class='booster-block booster-read-block'>
                <div class="twp-read-time">
                	<i class="booster-icon twp-clock"></i> <span>Read Time:</span>3 Minute, 3 Second                </div>

            </div>
<p class="wp-block-paragraph">Many people pay hefty monthly subscription fees to have a Website for their Business or Personal use. It is possible to setup up a functional website in your home or small business office in a cost effective way. It will save you money in the long run, and you have total control over the site. The only catch is that you (or someone in your home/team) will have to be a little tech savvy.</p>



<p class="wp-block-paragraph"><a href="https://www.raspberrypi.org/products/" target="_blank" rel="noreferrer noopener">Raspberry P</a><a href="https://www.raspberrypi.org/products/">i</a> is a small Single Board Computer (SBC), which is available in different forms for low prices, some as low as US$ 10. These articles will particularly be referring to Raspberry Pi 2B that sells for US$ 35. Your circumstance may lead you to more expensive setup. I would also be using an USB Thumb Drive (16GB), that costs about US$ 8 on Amazon. Almost all homes and small offices already have an Broad-Band Internet connection, so I will not factor in that cost. Plus there will be a cost for the Wall Adapter, Case, SD Card and Heat Sink. </p>



<ul class="wp-block-list"><li>One of Raspberry Pi 2B, Raspberry Pi 3B or Raspberry Pi 4B</li><li>Heat Sink (Optional for 2B)</li><li>A Plastic or Aluminum Case for your Model of Raspberry Pi</li><li>Wall Power Adapter</li><li>SD Card (8 GB or higher)</li><li>USB Thumb Drive (16 GB)</li><li>Internet Connection: Connected 24 Hours 7 days a Week &#8211; Minimum Download speed of 50 Mbps, Minimum Upload speed of 50 Mbps.</li></ul>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"></div>
</div>


<p>[CP_CALCULATED_FIELDS id=&#8221;6&#8243;]</p>



<p class="wp-block-paragraph">So your total lifetime expense for the Web-Site will be at the least US$ 80, using free versions of most software items. For a faster site you may opt for Raspberry Pi 4B 8 GB Model but that is a bit more expensive then the other models. You may also opt for paid domain names, non-free SSL Certificates, and paid versions of WordPress-plugins, those will be extra costs if you go that path. In this series of articles we will be using free versions of what ever is possible, if you want you can replace those items with paid versions later on.</p>



<p class="wp-block-paragraph">The beautiful thing about Raspberry Pi is that it is very quite (usually no fan coolers), consumes very little electrical power (Pi 2B needs 2 Amperes at 5 Volts = 10 Watts). In this Web-Server use-case it does not need a Monitor screen to run, it can run headless. You can use you MacBook, Laptop or Desktop to configure or monitor it via network connection using SSH Protocol.</p>



<p class="wp-block-paragraph">This series of articles will guide you through to set up a <a href="https://wordpress.org/download/#download-install" target="_blank" rel="noreferrer noopener">WordPress</a> Site on your Raspberry Pi. WordPress is a very popular Open-Source, Blogging Application written in PHP Programming Language, designed to run on a Web Site Server. Over the years it has seen many Plugins developed for it and a huge community of developers, vendors and users . WordPress is also used to sell products, services, and many Shopping-cart plugins are available for it. Many web sites around the world are executing in WordPress Application in the background. </p>



<p class="wp-block-paragraph">This series of articles will be made up of the following parts:</p>



<p class="wp-block-paragraph"><a href="https://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/">Part 1 &#8211; Setup the Pi</a> (Coming Soon)</p>



<p class="wp-block-paragraph">Part 2 &#8211; Install Apache2 &#8211; (Coming Soon)</p>



<p class="wp-block-paragraph">Part 3 &#8211; Install PHP &#8211; (Coming Soon)</p>



<p class="wp-block-paragraph">Part 4 &#8211; Install MariaDB/MySQL &#8211; (Coming Soon)</p>



<p class="wp-block-paragraph">Part 5 &#8211; Setup Domain Name &#8211; (Coming Soon)</p>



<p class="wp-block-paragraph">Part 6 &#8211; Obtain and Install SSL Certificate &#8211; (Coming Soon)</p>



<p class="wp-block-paragraph">Part 7 &#8211; Install WordPress &#8211; (Coming Soon)</p>



<p class="wp-block-paragraph">Part 8 &#8211; Basic Configuration and Security in WordPress &#8211; (Coming Soon)</p>



<p class="wp-block-paragraph">Part 9 &#8211; Secure Raspberry Pi with fail2Ban &#8211; (Coming Soon)</p>



<p class="wp-block-paragraph">Part 10 (Bonus) &#8211; Setup Private DNS Server &#8211; Having multiple sites in Apache &#8211; (Coming Soon)</p>



<p class="wp-block-paragraph">Part 11 (Bonus) &#8211; Backup and Remote Private Cloud Sync &#8211; (Coming Soon)</p>


		<div class=" twp-social-share  booster-clear">

						    <header class="twp-plugin-title twp-share-title">
			        <h2>Share</h2>
			    </header>
			
		    <div class="twp-share-container">
				<div class="twp-social-icons twp-social-facebook">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'https://www.facebook.com/sharer/sharer.php?u=http://andromedabay.ddns.net/setup-a-cost-effective-web-site/'); "  href="https://www.facebook.com/sharer/sharer.php?u=http://andromedabay.ddns.net/setup-a-cost-effective-web-site/" >
			                                <span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>												<span class="twp-share-media">

													<span class="twp-share-label">
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z" /></svg></span>
				                                        <span class="twp-label-title">
				                                            Facebook				                                        </span>
				                                    </span>
												</span>
																					</a>
									</div><div class="twp-social-icons twp-social-twitter">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'https://twitter.com/intent/tweet?text=Setup%20a%20Cost%20Effective%20Web%20Site&#038;url=http://andromedabay.ddns.net/setup-a-cost-effective-web-site/'); "  href="https://twitter.com/intent/tweet?text=Setup%20a%20Cost%20Effective%20Web%20Site&#038;url=http://andromedabay.ddns.net/setup-a-cost-effective-web-site/" >
			                                <span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>												<span class="twp-share-media">
													<span class="twp-share-label">
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path></svg></span>
				                                        <span class="twp-label-title">
				                                            Twitter				                                        </span>
												    </span>
												</span>
																					</a>
									</div><div class="twp-social-icons twp-social-pinterest">										<a class="twp-icon-holder" rel="nofollow" href="javascript:twp_be_pinterest()">
											<span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>				                                <span class="twp-share-media">
													<span class="twp-share-label">
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"></path></svg></span>
				                                        <span class="twp-label-title">
				                                            Pinterest				                                        </span>
				                                    </span>
												</span>
																					</a>
									</div><div class="twp-social-icons twp-social-linkedin">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'http://www.linkedin.com/shareArticle?mini=true&#038;title=Setup%20a%20Cost%20Effective%20Web%20Site&#038;url=http://andromedabay.ddns.net/setup-a-cost-effective-web-site/'); "  href="http://www.linkedin.com/shareArticle?mini=true&#038;title=Setup%20a%20Cost%20Effective%20Web%20Site&#038;url=http://andromedabay.ddns.net/setup-a-cost-effective-web-site/" >
																							<span class="twp-share-media">
				                                    <span class="share-media-nocount">
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path></svg>				                                    </span>
													<span class="twp-share-label twp-label-title">
				                                        LinkedIn				                                    </span>
												</span>
																					</a>
										</div><div class="twp-social-icons twp-social-email">										<a class="twp-icon-holder" rel="nofollow"  href="mailto:?subject=:&amp;body= Setup a Cost Effective Web Site http://andromedabay.ddns.net/setup-a-cost-effective-web-site/">
																							<span class="twp-share-media">
				                                    <span class="share-media-nocount">
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" /></svg>				                                    </span>
				                                    <span class="twp-share-label twp-label-title">
				                                        Email				                                    </span>
												</span>
																					</a>
										</div><div class="twp-social-icons twp-social-vk">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'http://vk.com/share.php?url=http://andromedabay.ddns.net/setup-a-cost-effective-web-site/&#038;caption=Setup%20a%20Cost%20Effective%20Web%20Site'); "  href="http://vk.com/share.php?url=http://andromedabay.ddns.net/setup-a-cost-effective-web-site/&#038;caption=Setup%20a%20Cost%20Effective%20Web%20Site" >
																							<span class="twp-share-media">
				                                    <span class="share-media-nocount">
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0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0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"></path></svg>				                                    </span>
													<span class="twp-share-label twp-label-title">
				                                        VK				                                    </span>
												</span>
																					</a>
										</div>			</div>
		</div>

	]]></content:encoded>
					
					<wfw:commentRss>https://andromedabay.ddns.net/setup-a-cost-effective-web-site/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Part 1 &#8211; Setup the Pi &#8211; Cost Effective Web Site Series</title>
		<link>https://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/</link>
					<comments>https://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/#respond</comments>
		
		<dc:creator><![CDATA[Hammad Rauf]]></dc:creator>
		<pubDate>Sat, 21 Aug 2021 21:51:48 +0000</pubDate>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[IT Infrastructure Systems]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[RaspberryPi OS]]></category>
		<category><![CDATA[RaspberryPi2]]></category>
		<category><![CDATA[Fixed IP]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[Mount USB]]></category>
		<category><![CDATA[SD-Card Setup]]></category>
		<category><![CDATA[ssh]]></category>
		<guid isPermaLink="false">https://andromedabay.ddns.net/?p=968</guid>

					<description><![CDATA[(This article is a work in progress &#8211; Please do re-visit later when it has been completed). This is the first part of the article]]></description>
										<content:encoded><![CDATA[<div class='booster-block booster-read-block'>
                <div class="twp-read-time">
                	<i class="booster-icon twp-clock"></i> <span>Read Time:</span>2 Minute, 16 Second                </div>

            </div>
<p class="wp-block-paragraph">(This article is a work in progress &#8211; Please do re-visit later when it has been completed).</p>



<p class="wp-block-paragraph">This is the first part of the article <a href="https://andromedabay.ddns.net/setup-a-cost-effective-web-site/" target="_blank" rel="noreferrer noopener">series</a> about setting up a cost effective web site in your home or small business office.</p>



<p class="wp-block-paragraph">To start with you need to have the following items:</p>



<ul class="wp-block-list"><li>One of Raspberry Pi 2B, Raspberry Pi 3B or Raspberry Pi 4B</li><li>Heat Sink (Optional for 2B)</li><li>A Plastic or Aluminum Case for your Model of Raspberry Pi</li><li>Wall Power Adapter</li><li>SD Card (8 GB or higher)</li><li>USB Thumb Drive (16 GB)</li></ul>



<p class="wp-block-paragraph">In this article we will look at how to prepare the SD-Card for initial boot. Then we will connect to raspberry pi using SSH protocol. Then we will assign fixed IP address to Wired and Wifi network settings. Then we will prepare the USB thumb drive for use with raspberry pi. After that we will mount the USB thumb Drive to a fixed location so even if we unplug and re-plug the USB drive or if the Pi is rebooted, it automatically re-mounts to the same location every time, as long as the USB drive is not re-formatted.</p>



<h2 class="wp-block-heading">Download the Operating System (OS)</h2>



<p class="wp-block-paragraph">The Raspberry Pi can run different operating systems some of which may not be listed on the official <a href="https://www.raspberrypi.org/software/operating-systems/" target="_blank" rel="noreferrer noopener">Pi Operating Systems page</a>. This series of articles will be giving instructions for the official OS for Raspberry Pi only, the &#8220;Raspberry Pi OS&#8221; also known as &#8220;Raspbian&#8221;. You can download the OS from the <a href="https://www.raspberrypi.org/software/operating-systems/" target="_blank" rel="noreferrer noopener">Official Page</a>. You can download any of the following:</p>



<ul class="wp-block-list"><li>Raspberry Pi OS with Desktop and software</li><li>Raspberry Pi OS with Desktop</li><li>Raspberry Pi OS Lite</li></ul>



<p class="wp-block-paragraph">The first 2 options use more SD Card space and include a Graphical User Interface (GUI). But since we plan to use our Pi as a &#8220;headless&#8221; server without a directly connected monitor &#8211; it may improve response time of your Pi, if you do not use one of the first two. The 3rd option (Raspberry Pi OS Lite), if you do not plan to use the GUI, will take less space on the SD Card, and may give better response times.  I will try to provide all the commands that we will need in these articles. On my Raspberry Pi I have installed the 2nd option &#8220;<span style="font-size: revert; color: initial;">Raspberry Pi OS with Desktop</span>&#8221; as I do sometimes connect a monitor or use VNC Viewer for a remote GUI Desktop session.</p>



<h2 class="wp-block-heading">Copy the OS to SD Card</h2>



<p class="wp-block-paragraph">Prepare SD Card for first boot</p>



<p class="wp-block-paragraph">a. Enable SSH</p>



<p class="wp-block-paragraph">b. Setup Wired (Ethernet) Connection IP Address</p>



<p class="wp-block-paragraph">c. Setup Wifi Connection (if needed)</p>



<p class="wp-block-paragraph">Initial Login</p>



<p class="wp-block-paragraph">Prepare USB Thumb Drive</p>



<p class="wp-block-paragraph">a. Format as ext4 format (recommended)</p>



<p class="wp-block-paragraph">b. Format as FAT32 (if desired)</p>



<p class="wp-block-paragraph">Setup USB Mount in Pi &#8220;fstab&#8221; file</p>



<p class="wp-block-paragraph"></p>


		<div class=" twp-social-share  booster-clear">

						    <header class="twp-plugin-title twp-share-title">
			        <h2>Share</h2>
			    </header>
			
		    <div class="twp-share-container">
				<div class="twp-social-icons twp-social-facebook">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'https://www.facebook.com/sharer/sharer.php?u=http://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/'); "  href="https://www.facebook.com/sharer/sharer.php?u=http://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/" >
			                                <span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>												<span class="twp-share-media">

													<span class="twp-share-label">
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z" /></svg></span>
				                                        <span class="twp-label-title">
				                                            Facebook				                                        </span>
				                                    </span>
												</span>
																					</a>
									</div><div class="twp-social-icons twp-social-twitter">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'https://twitter.com/intent/tweet?text=Part%201%20&#8211;%20Setup%20the%20Pi%20&#8211;%20Cost%20Effective%20Web%20Site%20Series&#038;url=http://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/'); "  href="https://twitter.com/intent/tweet?text=Part%201%20&#8211;%20Setup%20the%20Pi%20&#8211;%20Cost%20Effective%20Web%20Site%20Series&#038;url=http://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/" >
			                                <span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>												<span class="twp-share-media">
													<span class="twp-share-label">
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path></svg></span>
				                                        <span class="twp-label-title">
				                                            Twitter				                                        </span>
												    </span>
												</span>
																					</a>
									</div><div class="twp-social-icons twp-social-pinterest">										<a class="twp-icon-holder" rel="nofollow" href="javascript:twp_be_pinterest()">
											<span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>				                                <span class="twp-share-media">
													<span class="twp-share-label">
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"></path></svg></span>
				                                        <span class="twp-label-title">
				                                            Pinterest				                                        </span>
				                                    </span>
												</span>
																					</a>
									</div><div class="twp-social-icons twp-social-linkedin">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'http://www.linkedin.com/shareArticle?mini=true&#038;title=Part%201%20&#8211;%20Setup%20the%20Pi%20&#8211;%20Cost%20Effective%20Web%20Site%20Series&#038;url=http://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/'); "  href="http://www.linkedin.com/shareArticle?mini=true&#038;title=Part%201%20&#8211;%20Setup%20the%20Pi%20&#8211;%20Cost%20Effective%20Web%20Site%20Series&#038;url=http://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/" >
																							<span class="twp-share-media">
				                                    <span class="share-media-nocount">
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path></svg>				                                    </span>
													<span class="twp-share-label twp-label-title">
				                                        LinkedIn				                                    </span>
												</span>
																					</a>
										</div><div class="twp-social-icons twp-social-email">										<a class="twp-icon-holder" rel="nofollow"  href="mailto:?subject=:&amp;body= Part 1 &#8211; Setup the Pi &#8211; Cost Effective Web Site Series http://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/">
																							<span class="twp-share-media">
				                                    <span class="share-media-nocount">
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" /></svg>				                                    </span>
				                                    <span class="twp-share-label twp-label-title">
				                                        Email				                                    </span>
												</span>
																					</a>
										</div><div class="twp-social-icons twp-social-vk">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'http://vk.com/share.php?url=http://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/&#038;caption=Part%201%20&#8211;%20Setup%20the%20Pi%20&#8211;%20Cost%20Effective%20Web%20Site%20Series'); "  href="http://vk.com/share.php?url=http://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/&#038;caption=Part%201%20&#8211;%20Setup%20the%20Pi%20&#8211;%20Cost%20Effective%20Web%20Site%20Series" >
																							<span class="twp-share-media">
				                                    <span class="share-media-nocount">
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-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2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"></path></svg>				                                    </span>
													<span class="twp-share-label twp-label-title">
				                                        VK				                                    </span>
												</span>
																					</a>
										</div>			</div>
		</div>

	]]></content:encoded>
					
					<wfw:commentRss>https://andromedabay.ddns.net/part-1-setup-the-pi-cost-effective-web-site-series/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Controlling Servo Motor with a Knob and a Limit</title>
		<link>https://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/</link>
					<comments>https://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/#respond</comments>
		
		<dc:creator><![CDATA[Hammad Rauf]]></dc:creator>
		<pubDate>Sun, 01 Oct 2017 15:42:26 +0000</pubDate>
				<category><![CDATA[C Programming]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Nano]]></category>
		<category><![CDATA[Pot]]></category>
		<category><![CDATA[Potentiometer]]></category>
		<category><![CDATA[Servo]]></category>
		<category><![CDATA[Uno]]></category>
		<guid isPermaLink="false">https://hammadr.wordpress.com/?p=570</guid>

					<description><![CDATA[Arduino Uno and Arduino Nano are two of most extensively used hobby micro-controller boards. I found a web article about controlling a servo motor with]]></description>
										<content:encoded><![CDATA[<div class='booster-block booster-read-block'>
<div class="twp-read-time">
                	<i class="booster-icon twp-clock"></i> <span>Read Time:</span>3 Minute, 45 Second                </div>
</p></div>
<p>Arduino Uno and Arduino Nano are two of most extensively used hobby micro-controller boards. I found a web article about controlling a servo motor with a knob (Potentiometer, or Pot) , given <a href="https://www.arduino.cc/en/Tutorial/Knob" target="_blank" rel="noopener">here</a>.  Since I had a Pot lying around and had ordered cheap clone of Uno and Nano from <a href="https://www.aliexpress.com/wholesale?catId=0&amp;initiative_id=SB_20171001071127&amp;SearchText=arduino" target="_blank" rel="noopener">Aliexpress.com</a>, I thought it would be a great learning opportunity for my son (Grade 8) to see it built.</p>
<p>The original article describes exactly what is needed. It uses Uno, that I replaced with Nano. I could use the same pin numbers on Nano as in the original article. The original code allows one to control the servo motor which can move in both directions clockwise and anti-clockwise in unlimited rotation.</p>
<p>
<a href='https://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/knob_bb/'><img decoding="async" width="150" height="150" src="https://andromedabay.ddns.net/wp-content/uploads/2017/10/knob_bb-150x150.png" class="attachment-thumbnail size-thumbnail" alt="arduino knob servo schematic" srcset="https://andromedabay.ddns.net/wp-content/uploads/2017/10/knob_bb-150x150.png 150w, https://andromedabay.ddns.net/wp-content/uploads/2017/10/knob_bb-300x300.png 300w, https://andromedabay.ddns.net/wp-content/uploads/2017/10/knob_bb-100x100.png 100w" sizes="(max-width: 150px) 100vw, 150px" /></a>
<a href='https://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/knob_schem/'><img decoding="async" width="150" height="150" src="https://andromedabay.ddns.net/wp-content/uploads/2017/10/knob_schem-150x150.png" class="attachment-thumbnail size-thumbnail" alt="Arduino knob schematic" srcset="https://andromedabay.ddns.net/wp-content/uploads/2017/10/knob_schem-150x150.png 150w, https://andromedabay.ddns.net/wp-content/uploads/2017/10/knob_schem-300x300.png 300w, https://andromedabay.ddns.net/wp-content/uploads/2017/10/knob_schem-100x100.png 100w" sizes="(max-width: 150px) 100vw, 150px" /></a>
</p>
<p>Arduino IDE is an easy to use editor and compiler for Arduino and compatible products. For download link please see the Further Reading section below. Here is a <a href="https://learn.sparkfun.com/tutorials/installing-arduino-ide" target="_blank" rel="noopener">link</a> for a good article on how to get started with Arduino IDE.</p>
<h2>Hardware Required</h2>
<ul>
<li>Arduino Uno or Nano Board</li>
<li>Servo Motor (Continuous rotation type used here)</li>
<li>10k ohm potentiometer</li>
<li>hook-up wires</li>
<li>A Computer with USB Port (For running Arduino IDE)</li>
<li>Bread Board (Optional)</li>
<li>A 5 Volt Power Bank (Optional &#8211; For running the circuit independent of the computer)</li>
</ul>
<h2>Adding A Limit To Servo Rotation</h2>
<p>The program given in the original article is very good. My modification to the C program introduces a limit on the rotation of the Servo. The idea is where ever this code is used, it will be physically limited. For example, there will be limit on servo movement because of length of the screw a servo is turning.</p>
<p>I have also added some Print statements to allow us to debug and calibrate your particular servo motor. The output of these print statements can be seen on the Serial Port Listener window in Arduino IDE.</p>
<h2>Code Listing</h2>
<pre>/*
Controlling a servo position using a potentiometer (variable resistor)
by Michal Rinott &lt;http://people.interaction-ivrea.it/m.rinott&gt;

modified on 8 Nov 2013
by Scott Fitzgerald
http://www.arduino.cc/en/Tutorial/Knob

modified on Sept 29, 2017
by Hammad Rauf
*/

#include 

Servo myservo; // create servo object to control a servo

int potpin = 0; // analog pin used to connect the potentiometer
int val; // variable to read the value from the analog pin
const int P_LIMIT = 2000; // One directional rotation Maximum Limit
const int N_LIMIT = -2000; // One directional rotation Maximum Limit
int cur_location = 0; // Current location of Maximum Limit
int midp = 0; // Value from mid point of 0 to 180 ie 90, as mid point.
const int my_motor_mid = 5; // Servo variance actual mid point is at 95.

void setup() {
	myservo.attach(9); // attaches the servo on pin 9 to the servo object
	Serial.begin(9600);
	Serial.println("Arduino Knob with Limit - Debug");
	delay(2000);
}

void loop() {
	val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023)
	val = map(val, 0, 1023, 0, 180); // scale it to use it with the servo (value between 0 and 180)
	midp = val - 90;
	if ((midp) &gt;= 0) {
		if (cur_location &lt;= P_LIMIT) {
			cur_location += midp;
		}
	}
	else {
		if (cur_location &gt;= N_LIMIT) {
			cur_location += midp;
		}
	}
	Serial.print("midp=");
	Serial.print(midp);
	Serial.print(", cur_location=");
	Serial.println(cur_location);
	if ((cur_location &gt;= N_LIMIT) &amp;&amp; (cur_location &lt;= P_LIMIT)) {
		//Serial.println("Inside-1");
		myservo.write(val); // sets the servo position according to the scaled value
		delay(15); // waits for the servo to get there
	}
	else {
		//Serial.println("Inside-2");
		myservo.write(my_motor_mid + 90); // sets the servo position to mid point
		delay(15); // waits for the servo to get there
	}
}
</pre>
<p>
<a href='https://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/img_20170930_170201848/'><img loading="lazy" decoding="async" width="150" height="150" src="https://andromedabay.ddns.net/wp-content/uploads/2017/09/img_20170930_170201848-150x150.png" class="attachment-thumbnail size-thumbnail" alt="Photograph 1 of assembled circuit on breadboard" srcset="https://andromedabay.ddns.net/wp-content/uploads/2017/09/img_20170930_170201848-150x150.png 150w, https://andromedabay.ddns.net/wp-content/uploads/2017/09/img_20170930_170201848-300x300.png 300w, https://andromedabay.ddns.net/wp-content/uploads/2017/09/img_20170930_170201848-100x100.png 100w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a>
<a href='https://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/img_20170930_170143786/'><img loading="lazy" decoding="async" width="150" height="150" src="https://andromedabay.ddns.net/wp-content/uploads/2017/09/img_20170930_170143786-150x150.png" class="attachment-thumbnail size-thumbnail" alt="Photograph 2 of assembled circuit on breadboard with power bank" srcset="https://andromedabay.ddns.net/wp-content/uploads/2017/09/img_20170930_170143786-150x150.png 150w, https://andromedabay.ddns.net/wp-content/uploads/2017/09/img_20170930_170143786-300x300.png 300w, https://andromedabay.ddns.net/wp-content/uploads/2017/09/img_20170930_170143786-100x100.png 100w" sizes="auto, (max-width: 150px) 100vw, 150px" /></a>
</p>
<h2>Further Reading</h2>
<ol>
<li>Original Arduino article, <a href="https://www.arduino.cc/en/Tutorial/Knob" target="_blank" rel="noopener">https://www.arduino.cc/en/Tutorial/Knob</a> , Date accessed: September 30, 2017.</li>
<li>Arduino Uno, <a href="https://store.arduino.cc/usa/arduino-uno-rev3" target="_blank" rel="noopener">https://store.arduino.cc/usa/arduino-uno-rev3</a>, Date accessed: September 30, 2017</li>
<li>Arduino Nano (clone), <a href="http://robotdyn.com/catalog/boards/nano_v3_ch340g_usb_cable/" target="_blank" rel="noopener">http://robotdyn.com/catalog/boards/nano_v3_ch340g_usb_cable/</a> , Date accessed: September 30, 2017</li>
<li>Arduino IDE (C Editor), <a href="https://www.arduino.cc/en/Main/Software" target="_blank" rel="noopener">https://www.arduino.cc/en/Main/Software</a> , Date accessed: September 30, 2017</li>
<li>Getting started with Arduino IDE, <a href="https://learn.sparkfun.com/tutorials/installing-arduino-ide" target="_blank" rel="noopener">https://learn.sparkfun.com/tutorials/installing-arduino-ide</a> , Date accessed: September 30, 2017</li>
<li>What is a Continuous Rotation Servo? <a href="http://education.rec.ri.cmu.edu/content/electronics/boe/robot_motion/1.html" target="_blank" rel="noopener">http://education.rec.ri.cmu.edu/content/electronics/boe/robot_motion/1.html</a> Date accessed: September 30, 2017</li>
<li>Servo library Write() function, <a href="https://www.arduino.cc/en/Reference/ServoWrite" target="_blank" rel="noopener">https://www.arduino.cc/en/Reference/ServoWrite</a> , Date accessed: September 30, 2017</li>
</ol>
<div class=" twp-social-share  booster-clear">
<header class="twp-plugin-title twp-share-title">
<h2>Share</h2>
</header>
<div class="twp-share-container">
<div class="twp-social-icons twp-social-facebook">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'https://www.facebook.com/sharer/sharer.php?u=http://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/'); "  href="https://www.facebook.com/sharer/sharer.php?u=http://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/" ><br />
			                                <span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>												<span class="twp-share-media"></p>
<p>													<span class="twp-share-label"><br />
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z" /></svg></span><br />
				                                        <span class="twp-label-title"><br />
				                                            Facebook				                                        </span><br />
				                                    </span><br />
												</span><br />
																					</a>
									</div>
<div class="twp-social-icons twp-social-twitter">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'https://twitter.com/intent/tweet?text=Controlling%20Servo%20Motor%20with%20a%20Knob%20and%20a%20Limit&#038;url=http://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/'); "  href="https://twitter.com/intent/tweet?text=Controlling%20Servo%20Motor%20with%20a%20Knob%20and%20a%20Limit&#038;url=http://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/" ><br />
			                                <span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>												<span class="twp-share-media"><br />
													<span class="twp-share-label"><br />
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path></svg></span><br />
				                                        <span class="twp-label-title"><br />
				                                            Twitter				                                        </span><br />
												    </span><br />
												</span><br />
																					</a>
									</div>
<div class="twp-social-icons twp-social-pinterest">										<a class="twp-icon-holder" rel="nofollow" href="javascript:twp_be_pinterest()"><br />
											<span class="twp-social-count"><span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M 23.25 9 L 15 9 L 15 0.75 C 15 0.335938 14.664062 0 14.25 0 L 9.75 0 C 9.335938 0 9 0.335938 9 0.75 L 9 9 L 0.75 9 C 0.335938 9 0 9.335938 0 9.75 L 0 14.25 C 0 14.664062 0.335938 15 0.75 15 L 9 15 L 9 23.25 C 9 23.664062 9.335938 24 9.75 24 L 14.25 24 C 14.664062 24 15 23.664062 15 23.25 L 15 15 L 23.25 15 C 23.664062 15 24 14.664062 24 14.25 L 24 9.75 C 24 9.335938 23.664062 9 23.25 9 Z M 23.25 9" /></svg></span></span>				                                <span class="twp-share-media"><br />
													<span class="twp-share-label"><br />
                                                        <span class="booster-svg-icon"><svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"></path></svg></span><br />
				                                        <span class="twp-label-title"><br />
				                                            Pinterest				                                        </span><br />
				                                    </span><br />
												</span><br />
																					</a>
									</div>
<div class="twp-social-icons twp-social-linkedin">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'http://www.linkedin.com/shareArticle?mini=true&#038;title=Controlling%20Servo%20Motor%20with%20a%20Knob%20and%20a%20Limit&#038;url=http://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/'); "  href="http://www.linkedin.com/shareArticle?mini=true&#038;title=Controlling%20Servo%20Motor%20with%20a%20Knob%20and%20a%20Limit&#038;url=http://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/" ><br />
																							<span class="twp-share-media"><br />
				                                    <span class="share-media-nocount"><br />
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path></svg>				                                    </span><br />
													<span class="twp-share-label twp-label-title"><br />
				                                        LinkedIn				                                    </span><br />
												</span><br />
																					</a>
										</div>
<div class="twp-social-icons twp-social-email">										<a class="twp-icon-holder" rel="nofollow"  href="mailto:?subject=:&amp;body= Controlling Servo Motor with a Knob and a Limit http://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/"><br />
																							<span class="twp-share-media"><br />
				                                    <span class="share-media-nocount"><br />
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" /></svg>				                                    </span><br />
				                                    <span class="twp-share-label twp-label-title"><br />
				                                        Email				                                    </span><br />
												</span><br />
																					</a>
										</div>
<div class="twp-social-icons twp-social-vk">										<a class="twp-icon-holder" rel="nofollow"  onclick="twp_be_popup_new_window( event,'http://vk.com/share.php?url=http://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/&#038;caption=Controlling%20Servo%20Motor%20with%20a%20Knob%20and%20a%20Limit'); "  href="http://vk.com/share.php?url=http://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/&#038;caption=Controlling%20Servo%20Motor%20with%20a%20Knob%20and%20a%20Limit" ><br />
																							<span class="twp-share-media"><br />
				                                    <span class="share-media-nocount"><br />
													    <svg class="booster-svg" aria-hidden="true" role="img" focusable="false" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="currentColor" d="M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-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1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"></path></svg>				                                    </span><br />
													<span class="twp-share-label twp-label-title"><br />
				                                        VK				                                    </span><br />
												</span><br />
																					</a>
										</div>
</p></div>
</p></div>
]]></content:encoded>
					
					<wfw:commentRss>https://andromedabay.ddns.net/controlling-servo-motor-with-a-knob-and-a-limit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)

Served from: andromedabay.ddns.net @ 2026-06-08 15:54:06 by W3 Total Cache
-->