<?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>IoT - TheCodeBuzz</title>
	<atom:link href="https://thecodebuzz.com/category/iot/feed/" rel="self" type="application/rss+xml" />
	<link>https://thecodebuzz.com</link>
	<description>Best Practices for Software Development</description>
	<lastBuildDate>Sun, 21 Jan 2024 14:15:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://thecodebuzz.com/wp-content/uploads/2022/11/cropped-android-chrome-512x512-1-1-51x51.jpg</url>
	<title>IoT - TheCodeBuzz</title>
	<link>https://thecodebuzz.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Set up Raspberry Pi &#8211; Step by step</title>
		<link>https://thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/</link>
					<comments>https://thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 01 Mar 2022 00:00:00 +0000</pubDate>
				<category><![CDATA[IoT]]></category>
		<category><![CDATA[.NET Core 2.2 IoT App]]></category>
		<category><![CDATA[.NET Core on Raspberry Pi]]></category>
		<category><![CDATA[ASP.NET Runtime on Raspberry Pi]]></category>
		<category><![CDATA[Configure Raspberry Pi]]></category>
		<category><![CDATA[GPIO on Raspberry Pi]]></category>
		<category><![CDATA[Linux ARM 32-bit SDK]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Raspberry Pi - 2B or 3B Plus]]></category>
		<category><![CDATA[Raspberry Pi IoT]]></category>
		<category><![CDATA[Raspbian Linux image]]></category>
		<category><![CDATA[set up Raspberry Pi]]></category>
		<category><![CDATA[working with Raspberry Pi running Raspbian]]></category>
		<guid isPermaLink="false">https://thecodebuzz.com/?p=3954</guid>

					<description><![CDATA[<p>Set Raspberry Pi &#8211; Step by step Today in this article, we will cover step-by-step details on how to Set up Raspberry Pi, In this article, we will cover below aspects, Prerequisites You need the below set of hardware to get started. All other required software can be downloaded directly from the internet. AMR32v7 processor [&#8230;]</p>
<p>The post <a href="https://thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/">Set up Raspberry Pi – Step by step</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1 class="wp-block-heading"><strong>Set Raspberry Pi &#8211; Step by step</strong></h1>



<figure class="wp-block-image is-resized"><img fetchpriority="high" decoding="async" src="https://i0.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-step-by-step.jpg?fit=785%2C467&amp;ssl=1" alt="Setting up Raspberry Pi " class="wp-image-4065" width="509" height="302" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-step-by-step.jpg 1555w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-step-by-step-300x178.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-step-by-step-1024x608.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-step-by-step-768x456.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-step-by-step-1536x913.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-step-by-step-785x466.jpg 785w" sizes="(max-width: 509px) 100vw, 509px" /></figure>



<p>Today in this article, we will cover step-by-step details on how to Set up Raspberry Pi,</p>



<p></p>



<p>In this article, we will cover below aspects,</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="#aioseo-prerequisites">Prerequisites</a></li><li><a href="#aioseo-set-up-raspbian-linux-sd-card">Set up Raspbian Linux SD card</a></li><li><a href="#aioseo-step-1-download-linux-image">Step 1: Download the Linux image</a></li><li><a href="#aioseo-step-2-flash-raspbian-image-to-the-sd-card">Step 2: Flash the Raspbian image to the SD card</a></li><li><a href="#aioseo-enable-ssh">Enable SSH</a></li><li><a href="#aioseo-step-3-boot-up-raspberry-pi">Step 3. Boot up Raspberry Pi</a></li><li><a href="#aioseo-step-4-get-ip-of-raspberry-pi">Step 4. Get IP of Raspberry Pi</a></li><li><a href="#step-9-get-the-updates">Step 5. Update the software</a></li><li><a href="#aioseo-summary">Summary</a></li></ul></div>



<p></p>



<h2 class="wp-block-heading" id="aioseo-prerequisites"><strong>Prerequisites </strong></h2>



<p></p>



<p>You need the below set of hardware to get started. All other required software can be downloaded directly from the internet.</p>



<p></p>



<figure class="wp-block-image is-resized"><img decoding="async" src="https://i2.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-linux-arm32-hardware-required.jpg?fit=785%2C576&amp;ssl=1" alt="Setting up Raspberry Pi " class="wp-image-4079" width="311" height="227" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-linux-arm32-hardware-required.jpg 1176w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-linux-arm32-hardware-required-300x220.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-linux-arm32-hardware-required-1024x751.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-linux-arm32-hardware-required-768x564.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-linux-arm32-hardware-required-709x520.jpg 709w" sizes="(max-width: 311px) 100vw, 311px" /></figure>



<p></p>



<ul class="wp-block-list"><li> <strong>AMR32v7 processor and above </strong><ul><li>Raspberry Pi &#8211; 2B or 3B Plus (preferred)</li></ul></li><li><strong>MicroSDHC card </strong>(16 GB and above preferred) and <strong>SD Adapter </strong>(to burn the OS Image to SD card using the laptop)</li><li><strong>USB Keyboard </strong></li><li><strong>Monitor</strong></li><li><strong>Power Supply</strong> </li></ul>



<p></p>



<h2 class="wp-block-heading" id="aioseo-set-up-raspbian-linux-sd-card"><strong>Set up Raspbian Linux SD card</strong></h2>



<p></p>



<h2 class="wp-block-heading" id="aioseo-step-1-download-linux-image">Step 1: Download the Linux image </h2>



<p></p>



<p>Download the latest c to your local machine. The Latest Linux image can be downloaded below,</p>



<p><a href="https://www.raspberrypi.org/downloads/raspbian/">https://www.raspberrypi.org/downloads/raspbian/</a></p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-step-2-flash-raspbian-image-to-the-sd-card">Step 2: Flash the Raspbian image to the SD card</h2>



<p></p>



<p>Download the Etcher image flashing utility. </p>



<figure class="wp-block-image is-resized"><img decoding="async" src="https://i1.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/Etcher-image-flash-utility.jpg?fit=785%2C466&amp;ssl=1" alt="" class="wp-image-3959" width="495" height="294" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/Etcher-image-flash-utility.jpg 1557w, https://thecodebuzz.com/wp-content/uploads/2019/06/Etcher-image-flash-utility-300x178.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/Etcher-image-flash-utility-1024x608.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/Etcher-image-flash-utility-768x456.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/Etcher-image-flash-utility-1536x912.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2019/06/Etcher-image-flash-utility-785x466.jpg 785w" sizes="(max-width: 495px) 100vw, 495px" /></figure>



<p></p>



<ul class="wp-block-list"><li>Open Etcher and select the image(.zip) downloaded in step 1.</li><li>Select the <strong>SDHC </strong>card. </li><li>Click &#8216;Flash!&#8217; Please make sure to have a space of a minimum of 4 GB on Micros SDHC.</li></ul>



<p> You shall see files in the SD card drive (Ex. D drive) post success in a flash.</p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-enable-ssh"><strong>Enable SSH</strong></h2>



<p></p>



<p>Create a file with the name &#8216;<strong>ssh</strong>&#8216;. This file needs to be created without any extension. This file will enable SSH when you boot your device next time.</p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-step-3-boot-up-raspberry-pi">Step 3. Boot up Raspberry Pi</h2>



<p></p>



<p>Insert imaged SD card into Raspberry Pi. Connect Raspberry Pi to HDMI and power up the setup.</p>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="https://i0.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-how-to-connect-to-monitor-and-HDMI.jpg?fit=768%2C1024&amp;ssl=1" alt="" class="wp-image-4088" width="313" height="417" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-how-to-connect-to-monitor-and-HDMI.jpg 924w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-how-to-connect-to-monitor-and-HDMI-225x300.jpg 225w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-how-to-connect-to-monitor-and-HDMI-768x1024.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/Configure-Raspberry-Pi-how-to-connect-to-monitor-and-HDMI-390x520.jpg 390w" sizes="auto, (max-width: 313px) 100vw, 313px" /></figure>



<p></p>



<p>Boot up Raspberry Pi. A welcome message will be displayed on your monitor.</p>



<p></p>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="https://i1.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-welcome-1.jpg?fit=785%2C576&amp;ssl=1" alt="" class="wp-image-4037" width="429" height="314" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-welcome-1.jpg 1259w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-welcome-1-300x220.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-welcome-1-1024x752.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-welcome-1-768x564.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-welcome-1-709x520.jpg 709w" sizes="auto, (max-width: 429px) 100vw, 429px" /></figure>



<p></p>



<p><strong>SSH</strong> will be Enabled as performed in Step 2 will be displayed. Click<strong> &#8220;OK&#8221;</strong> to proceed.</p>



<p> </p>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="https://i1.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-ssh-enabled-1.jpg?fit=785%2C517&amp;ssl=1" alt="" class="wp-image-4038" width="420" height="275"/></figure>



<p></p>



<h2 class="wp-block-heading" id="aioseo-step-4-get-ip-of-raspberry-pi">Step 4. Get IP of Raspberry Pi </h2>



<p></p>



<p>Get the IP of your Pi. </p>



<pre class="wp-block-preformatted has-medium-font-size">sudo ip addr show</pre>



<p>or</p>



<pre class="wp-block-preformatted has-medium-font-size">sudo hostname --ip-address</pre>



<p>or</p>



<pre class="wp-block-preformatted has-medium-font-size">sudo ipconfig</pre>



<p></p>



<h2 class="wp-block-heading" id="step-9-get-the-updates">Step 5. Update the software</h2>



<p></p>



<p>Please connect Pi to WiFi. Run the below commands before use.</p>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p><em>sudo apt-get update</em> </p><p><em>sudo apt-get upgrade</em></p></blockquote>



<p></p>



<p>This is what minimum you would be needing for further usage. Once you have all these configured, you will be all set for an adventure (as you have thought of  !! )</p>



<p></p>



<p><strong>References</strong>:</p>



<p></p>



<ul class="wp-block-list"><li><a href="https://www.thecodebuzz.com/create-first-net-core-application-in-raspberry-pi/" target="_blank" rel="noreferrer noopener"><strong><em>Create First .NET Core application in Raspberry Pi</em></strong></a></li></ul>



<p></p>



<h2 class="wp-block-heading" id="aioseo-summary">Summary</h2>



<p></p>



<p>Today we learned the basics of setting up Raspberry Pi running Raspbian and learned how to get started easily on exploring the world of IoT. </p>



<p></p>



<hr>



<p class=""></p>



<p class="has-background" style="background-color:#b6d9ac;font-size:18px"><br>Please <strong><em>bookmark </em></strong>this page and <em><strong>share </strong></em>it with your friends.                                                    Please <a href="https://www.thecodebuzz.com/subscription/" target="_blank" rel="noreferrer noopener"><em><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-luminous-vivid-orange-color"><strong>Subscribe</strong> </mark></em></a>to the blog to receive notifications on freshly published (2025) best practices and guidelines for software design and development.</p>




<br>



<hr>



<p class=""></p>



<p> </p>



<p></p><p>The post <a href="https://thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/">Set up Raspberry Pi – Step by step</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Build a .NET Core IoT App on Raspberry Pi</title>
		<link>https://thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/</link>
					<comments>https://thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 01 Mar 2022 00:00:00 +0000</pubDate>
				<category><![CDATA[.NET Core]]></category>
		<category><![CDATA[IoT]]></category>
		<category><![CDATA[.NET Core 2.2 IoT App]]></category>
		<category><![CDATA[.NET Core on Raspberry Pi]]></category>
		<category><![CDATA[.net core raspberry pi gpio]]></category>
		<category><![CDATA[.net core raspberry pi projects]]></category>
		<category><![CDATA[.net core web api on raspberry pi]]></category>
		<category><![CDATA[ASP.NET Runtime on Raspberry Pi]]></category>
		<category><![CDATA[Configure Raspberry Pi]]></category>
		<category><![CDATA[GPIO on Raspberry Pi]]></category>
		<category><![CDATA[install dotnet core raspberry pi]]></category>
		<category><![CDATA[install dotnet-core 3.1 raspberry pi]]></category>
		<category><![CDATA[Linux ARM 32-bit SDK]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Raspberry Pi - 2B or 3B Plus]]></category>
		<category><![CDATA[raspberry pi .net 6]]></category>
		<category><![CDATA[Raspberry Pi IoT]]></category>
		<category><![CDATA[raspberry pi net core web server]]></category>
		<category><![CDATA[Raspbian Linux image]]></category>
		<category><![CDATA[run .net core console app on raspberry pi]]></category>
		<category><![CDATA[set up Raspberry Pi]]></category>
		<category><![CDATA[working with Raspberry Pi running Raspbian]]></category>
		<guid isPermaLink="false">https://thecodebuzz.com/?p=3988</guid>

					<description><![CDATA[<p>Build a .NET Core IoT App on Raspberry Pi Today in this article, we will cover below aspects, IoT devices for .NET developers! .NET Core is an open-source, cross-platform framework that has introduced all kinds of new opportunities including potential usage of IoT for .NET developers. I am sure you must be as excited as [&#8230;]</p>
<p>The post <a href="https://thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/">Build a .NET Core IoT App on Raspberry Pi</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1 class="wp-block-heading"><strong>Build a .NET Core IoT App on Raspberry Pi</strong></h1>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" width="2403" height="924" src="https://i0.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/NET-Core-IoT-apps-for-Raspberry-Pi-linux-arm32-1.jpg?fit=785%2C302&amp;ssl=1" alt="" class="wp-image-4101" style="width:555px;height:213px" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/NET-Core-IoT-apps-for-Raspberry-Pi-linux-arm32-1.jpg 2403w, https://thecodebuzz.com/wp-content/uploads/2019/06/NET-Core-IoT-apps-for-Raspberry-Pi-linux-arm32-1-300x115.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/NET-Core-IoT-apps-for-Raspberry-Pi-linux-arm32-1-1024x394.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/NET-Core-IoT-apps-for-Raspberry-Pi-linux-arm32-1-768x295.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/NET-Core-IoT-apps-for-Raspberry-Pi-linux-arm32-1-1536x591.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2019/06/NET-Core-IoT-apps-for-Raspberry-Pi-linux-arm32-1-2048x787.jpg 2048w, https://thecodebuzz.com/wp-content/uploads/2019/06/NET-Core-IoT-apps-for-Raspberry-Pi-linux-arm32-1-785x302.jpg 785w" sizes="auto, (max-width: 2403px) 100vw, 2403px" /></figure>



<p>Today in this article, we will cover below aspects,</p>



<p></p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="#aioseo-iot-devices-for-net-developers">IoT devices for .NET developers!</a></li><li><a href="#aioseo-prerequisites">Prerequisites :</a></li><li><a href="#aioseo-getting-started">Getting started:</a><ul><li><a href="#user-content-.net-core-runtime-2.2.0">Download .NET Core Runtime 2.2.0</a></li><li><a href="#aioseo-download-asp-net-core-runtime-2-2-0">Download ASP.NET Core runtime 2.2.0</a></li><li><a href="#user-content-sdk-2.2.101">Download .NET SDK 2.2.0</a></li></ul></li><li><a href="#aioseo-upload-net-core-runtime-and-sdk-to-raspberry-pi">Upload .NET Core Runtime and SDK to Raspberry Pi</a><ul><li><a href="#aioseo-dotnet-runtime">Dotnet runtime</a></li><li><a href="#aioseo-aspcore-runtime">Aspcore runtime</a></li><li><a href="#aioseo-net-core-sdk">.NET Core SDK</a></li></ul></li><li><a href="#aioseo-install-net-core">Install .NET Core</a></li><li><a href="#aioseo-net-core-version">.NET Core version</a></li><li><a href="#aioseo-iot-examples-application">IoT examples application</a></li><li><a href="#aioseo-summary">Summary</a></li></ul></div>



<p></p>



<h2 class="wp-block-heading" id="aioseo-iot-devices-for-net-developers"><strong>IoT devices for .NET developers!</strong></h2>



<p></p>



<p>.NET Core is an open-source, cross-platform framework that has introduced all kinds of new opportunities including potential usage of IoT for .NET developers.  </p>



<p></p>



<p>I am sure you must be as excited as I am !!</p>



<p></p>



<p>In this post, we will see how to configure and build the <strong>.NET Core 2.2 </strong>app on the <strong>IoT Raspberry Pi</strong> platform.</p>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>Above are similar techniques, you could use for <strong>.NET Core 3.1</strong> or latest <strong>.NET 6</strong> program also</p>
</blockquote>



<p></p>



<h2 class="wp-block-heading" id="aioseo-prerequisites"><strong>Prerequisites </strong>:</h2>



<p></p>



<p>All you need is 35$ Raspberry Pi and a set of hardware before get started.</p>



<p></p>



<p>You need <a href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener">Raspberry Pi configured with </a>the Raspbian Linux system hence if you need more details please visit <a aria-label="this (opens in a new tab)" href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener">this</a> post on the required set of software and hardware requirements.</p>



<p></p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-getting-started">Getting started:</h2>



<p></p>



<p>I am using the same Pi version 3B Plus ( Which my kid asked me to buy a few months before for his school project :). )</p>



<p></p>



<p>Please make sure to set up your Pi as explained in the article <a href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener">Raspberry Pi configured with </a><strong><a aria-label=" (opens in a new tab)" href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener">Raspbian Linux</a></strong><a aria-label=" (opens in a new tab)" href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener"> system</a>. </p>



<p></p>



<p>Update Linux software on your Pi</p>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>Command: sudo apt-get update</p>
</blockquote>



<figure class="wp-block-image is-resized"><img decoding="async" src="https://i1.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/raspberry-pi-sudo-apt-get-update.jpg?fit=785%2C162&amp;ssl=1" alt="" class="wp-image-3997" style="width:522px;height:107px"/></figure>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p> Command:  sudo apt-get install libunwind8 gettex apt-transport-https</p>



<p></p>
</blockquote>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" width="1452" height="924" src="https://i1.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/raseberry-pi-sudo-apt-get-install-libunwind8-gettex-apt-transport-https.jpg?fit=785%2C500&amp;ssl=1" alt="" class="wp-image-3998" style="width:518px;height:330px" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/raseberry-pi-sudo-apt-get-install-libunwind8-gettex-apt-transport-https.jpg 1452w, https://thecodebuzz.com/wp-content/uploads/2019/06/raseberry-pi-sudo-apt-get-install-libunwind8-gettex-apt-transport-https-300x191.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/raseberry-pi-sudo-apt-get-install-libunwind8-gettex-apt-transport-https-1024x652.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/raseberry-pi-sudo-apt-get-install-libunwind8-gettex-apt-transport-https-768x489.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/raseberry-pi-sudo-apt-get-install-libunwind8-gettex-apt-transport-https-785x500.jpg 785w" sizes="auto, (max-width: 1452px) 100vw, 1452px" /></figure>



<p></p>



<h3 class="wp-block-heading" id="user-content-.net-core-runtime-2.2.0">Download .NET Core Runtime 2.2.0</h3>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>.NET Core runtime for Linux ARM32: <a rel="noreferrer noopener" href="https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-2.2.0-linux-arm32-binaries" target="_blank">https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-2.2.0-linux-arm32-binaries</a></p>
</blockquote>



<p></p>



<h3 class="wp-block-heading" id="aioseo-download-asp-net-core-runtime-2-2-0">Download ASP.NET Core runtime 2.2.0</h3>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>ASP.NET Core runtime for Linux ARM32<br><a rel="noreferrer noopener" href="https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-2.2.0-linux-arm32-asp.net-core-runtime-binaries" target="_blank">https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-2.2.0-linux-arm32-asp.net-core-runtime-binaries</a></p>
</blockquote>



<p></p>



<h3 class="wp-block-heading" id="user-content-sdk-2.2.101"> Download .NET SDK 2.2.0</h3>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>.NET Core SDK  for Linux ARM32: <a rel="noreferrer noopener" href="https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-2.2.101-linux-arm32-binaries" target="_blank">https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-2.2.101-linux-arm32-binaries</a></p>
</blockquote>



<p></p>



<h2 class="wp-block-heading" id="aioseo-upload-net-core-runtime-and-sdk-to-raspberry-pi">Upload .NET Core Runtime and SDK to Raspberry Pi</h2>



<p></p>



<p>You can use scp.exe (secure copy) command easily to copy the content to Raspberry PI. This Secure Copy utility is available in <strong>Windows 10 </strong>by default.</p>



<h3 class="wp-block-heading" id="aioseo-dotnet-runtime"><strong> Dotnet runtime</strong></h3>



<p>Please copy .NET Core runtime using below command </p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>scp dotnet-runtime-2.2.0-linux-arm.tar.gz pi@192.168.254.66:/home/pi/Downloads   </p>
</blockquote>



<h3 class="wp-block-heading" id="aioseo-aspcore-runtime"><strong>Aspcore runtime</strong></h3>



<p> Please copy ASP.NET Core runtime using below command  </p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>scp aspnetcore-runtime-2.2.0-linux-arm.tar.gz  pi@192.168.254.66:/home/pi/Downloads   </p>



<p></p>
</blockquote>



<h3 class="wp-block-heading" id="aioseo-net-core-sdk"><strong>.NET Core SDK</strong></h3>



<p></p>



<p> Please copy .NET Core SDK using below command,  </p>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>scp dotnet-sdk-2.2.101-linux-arm.tar.gz    pi@192.168.254.66:/home/pi/Downloads  </p>
</blockquote>



<p></p>



<p>After successful upload, you shall see the downloaded file in Raspberry Pi as below</p>



<p></p>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" width="1283" height="924" src="https://i2.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry-Pi.jpg?fit=785%2C565&amp;ssl=1" alt="" class="wp-image-4001" style="width:448px;height:322px" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry-Pi.jpg 1283w, https://thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry-Pi-300x216.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry-Pi-1024x737.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry-Pi-768x553.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry-Pi-722x520.jpg 722w" sizes="auto, (max-width: 1283px) 100vw, 1283px" /></figure>



<p></p>



<h2 class="wp-block-heading" id="aioseo-install-net-core">Install .NET Core </h2>



<p></p>



<p>Let&#8217;s install now uploaded .NET Core packages to Pi</p>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>sudo mkdir /opt/dotnet<br>sudo tar -xvf ./Downloads/dotnet-runtime-2.2.0-linux-arm.tar.gz -C /opt/dotnet/</p>
</blockquote>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" width="1499" height="924" src="https://i1.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry.jpg?fit=785%2C484&amp;ssl=1" alt="" class="wp-image-4002" style="width:528px;height:325px" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry.jpg 1499w, https://thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry-300x185.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry-1024x631.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry-768x473.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/download-.NET-Core-Run-time-and-SDK-to-Raspberry-785x484.jpg 785w" sizes="auto, (max-width: 1499px) 100vw, 1499px" /></figure>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><br> sudo tar -xvf ./Downloads/aspnetcore-runtime-2.2.0-linux-arm.tar.gz -C /opt/dotnet/</p>
</blockquote>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" width="1434" height="914" src="https://i2.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/raspberry-pi-sudo-dotnet-core-runtime.jpg?fit=785%2C501&amp;ssl=1" alt="" class="wp-image-4003" style="width:530px;height:338px" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/raspberry-pi-sudo-dotnet-core-runtime.jpg 1434w, https://thecodebuzz.com/wp-content/uploads/2019/06/raspberry-pi-sudo-dotnet-core-runtime-300x191.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/raspberry-pi-sudo-dotnet-core-runtime-1024x653.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/raspberry-pi-sudo-dotnet-core-runtime-768x490.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/raspberry-pi-sudo-dotnet-core-runtime-785x500.jpg 785w" sizes="auto, (max-width: 1434px) 100vw, 1434px" /></figure>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><br> sudo tar -xvf ./Downloads/dotnet-sdk-2.2.101-linux-arm.tar.gz -C /opt/dotnet/</p>
</blockquote>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><br> sudo ln -s /opt/dotnet/dotnet /usr/local/bin</p>
</blockquote>



<p>So we are all set, so far we have .NET runtime installed. We also have SDK installed, which will help us create and build .NET Core projects right within Tiny Pi.</p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-net-core-version">.NET Core version </h2>



<p></p>



<p>After the successful installation of .NET Core, please check the version.</p>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>Command : dotnet &#8211;info</p>
</blockquote>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" width="1260" height="924" src="https://i1.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1.jpg?fit=785%2C576&amp;ssl=1" alt="" class="wp-image-4005" style="width:520px;height:382px" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1.jpg 1260w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-300x220.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-1024x751.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-768x563.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-709x520.jpg 709w" sizes="auto, (max-width: 1260px) 100vw, 1260px" /></figure>



<p></p>



<h2 class="wp-block-heading" id="aioseo-iot-examples-application">IoT examples application</h2>



<p></p>



<p>We shall be exploring more on IoT packages like <strong>GPIO</strong> packages (General Purpose Input/Output) <a rel="noreferrer noopener" href="https://dotnet.myget.org/feed/dotnet-corefxlab/package/nuget/System.Devices.Gpio" target="_blank">Install-Package System.Devices.Gpio</a> and Device Binding <a rel="noreferrer noopener" href="https://www.nuget.org/packages/Iot.Device.Bindings" target="_blank">Install-Package IoT.Device.Bindings</a> in the next future articles. </p>



<p></p>



<p>Please see below examples/references to get started,</p>



<p></p>



<ul class="wp-block-list">
<li><a href="https://www.thecodebuzz.com/create-first-net-core-application-in-raspberry-pi/" target="_blank" rel="noreferrer noopener">Create First .NET Core application in Raspberry Pi</a> </li>



<li><a href="https://www.thecodebuzz.com/iot-temperature-monitor-in-raspberry-pi-using-net-core/" target="_blank" rel="noreferrer noopener">Temperature Monitor in Raspberry Pi using .NET Core</a></li>



<li><a href="https://www.thecodebuzz.com/iot-smart-light-bulbs-controller-in-raspberry-pi-using-net-core/" target="_blank" rel="noreferrer noopener">Smart Light Bulbs Controllerin Raspberry Pi using .NET Core</a> </li>
</ul>



<p></p>



<p>That&#8217;s all, you are set to enjoy a world of IoT. </p>



<p></p>



<p>Keep learning and Keep sharing !!</p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-summary">Summary </h2>



<p></p>



<p>In this article, we learned how to configure .NET Core on the Raspberry Pi Linux system. .NET Core is open-source, a cross-platform framework that has enabled us to explore new possibilities including potential usage of IoT. </p>



<p></p>



<hr>



<p class=""></p>



<p class="has-background" style="background-color:#b6d9ac;font-size:18px"><br>Please <strong><em>bookmark </em></strong>this page and <em><strong>share </strong></em>it with your friends.                                                    Please <a href="https://www.thecodebuzz.com/subscription/" target="_blank" rel="noreferrer noopener"><em><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-luminous-vivid-orange-color"><strong>Subscribe</strong> </mark></em></a>to the blog to receive notifications on freshly published (2025) best practices and guidelines for software design and development.</p>




<br>



<hr>



<p class=""></p>



<p></p>



<p> </p><p>The post <a href="https://thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/">Build a .NET Core IoT App on Raspberry Pi</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Raspberry Pi in .NET Core with examples</title>
		<link>https://thecodebuzz.com/create-first-net-core-application-in-raspberry-pi/</link>
					<comments>https://thecodebuzz.com/create-first-net-core-application-in-raspberry-pi/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 01 Mar 2022 00:00:00 +0000</pubDate>
				<category><![CDATA[.NET Core]]></category>
		<category><![CDATA[IoT]]></category>
		<category><![CDATA[.NET Core 2.2 IoT App]]></category>
		<category><![CDATA[.NET Core on Raspberry Pi]]></category>
		<category><![CDATA[.net core raspberry pi gpio]]></category>
		<category><![CDATA[.net core raspberry pi projects]]></category>
		<category><![CDATA[.net core web api on raspberry pi]]></category>
		<category><![CDATA[asp.net core raspberry pi]]></category>
		<category><![CDATA[ASP.NET Runtime on Raspberry Pi]]></category>
		<category><![CDATA[Configure Raspberry Pi]]></category>
		<category><![CDATA[GPIO on Raspberry Pi]]></category>
		<category><![CDATA[install dotnet-core 3.1 raspberry pi]]></category>
		<category><![CDATA[Linux ARM 32-bit SDK]]></category>
		<category><![CDATA[net core raspberry pi performance]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Raspberry Pi - 2B or 3B Plus]]></category>
		<category><![CDATA[raspberry pi .net 6]]></category>
		<category><![CDATA[Raspberry Pi IoT]]></category>
		<category><![CDATA[raspberry pi net core web server]]></category>
		<category><![CDATA[Raspbian Linux image]]></category>
		<category><![CDATA[set up Raspberry Pi]]></category>
		<category><![CDATA[working with Raspberry Pi running Raspbian]]></category>
		<guid isPermaLink="false">https://thecodebuzz.com/?p=5004</guid>

					<description><![CDATA[<p>Create First .NET Core application in Raspberry Pi with examples In our previous articles Setting up Raspberry Pi – Step by step and Build .NET Core IoT App on Raspberry Pi we learned how to get started with Raspberry Pi and install the setup for .NET Core. In today&#8217;s article, we shall continue our journey [&#8230;]</p>
<p>The post <a href="https://thecodebuzz.com/create-first-net-core-application-in-raspberry-pi/">Raspberry Pi in .NET Core with examples</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1 class="wp-block-heading"><strong>Create First .NET Core application in Raspberry Pi with examples</strong></h1>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="https://i0.wp.com/thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32.jpg?fit=785%2C302&amp;ssl=1" alt="Raspberry Pi in .NET Core with examples" class="wp-image-5007" width="542" height="208" srcset="https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32.jpg 2403w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-300x115.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1024x394.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-768x295.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1536x591.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-2048x787.jpg 2048w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-785x302.jpg 785w" sizes="auto, (max-width: 542px) 100vw, 542px" /></figure>



<p></p>



<p>In our previous articles <em><strong><a href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener">Setting up Raspberry Pi – Step by step</a></strong></em> and <a href="https://www.thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/"><strong><em>Build .NET Core IoT App on Raspberry P</em></strong></a><a href="https://www.thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/" target="_blank" rel="noreferrer noopener"><em><strong>i </strong></em></a>we learned how to get started with Raspberry Pi and install the setup for .NET Core. In today&#8217;s article, we shall continue our journey and will learn how to use Raspberry Pi in .NET Core and create a simple &#8220;Hello World&#8221; application.</p>



<p>Today in this article, we will cover below aspects,</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="#aioseo-prerequisites">Prerequisites:</a></li><li><a href="#aioseo-create-hello-world-application">Create &#8220;Hello World&#8221; application</a></li></ul></div>



<h2 class="wp-block-heading" id="aioseo-prerequisites">Prerequisites:</h2>



<p></p>



<ul class="has-medium-font-size wp-block-list"><li><a aria-label=" (opens in a new tab)" rel="noreferrer noopener" href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank">Set up Raspberry Pi</a></li></ul>



<ul class="has-medium-font-size wp-block-list"><li><a aria-label=" (opens in a new tab)" rel="noreferrer noopener" href="https://www.thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/" target="_blank">Install  .NET Core SDK on Raspberry Pi</a>  </li></ul>



<p></p>



<h2 class="wp-block-heading" id="aioseo-create-hello-world-application"><strong>Create &#8220;Hello World&#8221; application </strong></h2>



<p></p>



<p>Remember since we have .NET Core SDK installed, we can now create a .NET Core app right within Raspberry Pi. </p>



<p>Let quickly <a href="https://www.thecodebuzz.com/how-to-check-the-version-of-csharp-windows-mac-linux/">check the .NET Core version</a> on Pi,</p>



<pre class="wp-block-preformatted has-medium-font-size"> dotnet --info<br></pre>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="https://i1.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1.jpg?fit=785%2C576&amp;ssl=1" alt="" class="wp-image-4005" width="520" height="382" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1.jpg 1260w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-300x220.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-1024x751.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-768x563.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-709x520.jpg 709w" sizes="auto, (max-width: 520px) 100vw, 520px" /></figure>



<p></p>



<p>Please note that you might go out of space soon using Raspberry Pi. The easy approach would be to create, build, and compile the project on your <strong>LaptopDesktop</strong> and then copy it over to Pi. Once copied binaries can be executed on Raspberry Pi.</p>



<p></p>



<p>Let&#8217;s create a console application using the below command in a Raspberry Pi terminal window.</p>



<pre class="wp-block-preformatted has-medium-font-size">dontet new console</pre>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="https://i0.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app.jpg?fit=785%2C343&amp;ssl=1" alt="" class="wp-image-4009" width="540" height="235" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app.jpg 1849w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-300x131.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-1024x447.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-768x335.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-1536x670.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-785x343.jpg 785w" sizes="auto, (max-width: 540px) 100vw, 540px" /></figure>



<p></p>



<p>Above command shall add .csproj file and Program.cs file.</p>



<p></p>



<p>Add &#8220;Hello World&#8221; to the Main() method. and That&#8217;s all. </p>



<p></p>



<p>Let&#8217;s run our first .NET Core app using the below command,</p>



<p></p>



<pre class="wp-block-preformatted has-medium-font-size"><strong>dotnet run </strong>[app-path]</pre>



<p></p>



<p>You shall see below on the terminal window.</p>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="https://www.thecodebuzz.com/wp-content/uploads/2019/06/image-8.png" alt="" class="wp-image-4013" width="135" height="31"/></figure>



<p></p>



<p>That&#8217;s all! Enjoy coding!</p>



<p></p>



<p><strong><em>Useful references </em></strong>:</p>



<p></p>



<ul class="has-medium-font-size wp-block-list"><li><em><strong><a href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener">Setting up Raspberry Pi – Step by step</a></strong></em> </li></ul>



<ul class="has-medium-font-size wp-block-list"><li><a href="https://www.thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/" target="_blank" rel="noreferrer noopener"><strong><em>Build .NET Core IoT App on Raspberry P</em></strong><em><strong>i </strong></em></a> </li></ul>



<ul class="has-medium-font-size wp-block-list"><li><a href="https://www.thecodebuzz.com/iot-smart-light-bulbs-controller-in-raspberry-pi-using-net-core/" target="_blank" rel="noreferrer noopener" title="IoT-Smart Light Bulbs  Controller in Raspberry Pi using .NET Core"><strong><em>IoT-Smart Light Bulbs  Controller in Raspberry Pi using .NET Core</em></strong></a></li></ul>



<p></p>



<p></p>



<p style="font-size:18px">Do you have any <strong>comments or ideas or any better </strong>suggestions to share?</p>



<p class="has-small-font-size"></p>



<p style="font-size:18px">Please sound off your comments below.</p>



<p class="has-medium-font-size"></p>



<p class="has-medium-font-size"><strong>Happy Coding </strong>!!</p>



<p></p>



<hr>



<p class=""></p>



<p class="has-background" style="background-color:#b6d9ac;font-size:18px"><br>Please <strong><em>bookmark </em></strong>this page and <em><strong>share </strong></em>it with your friends.                                                    Please <a href="https://www.thecodebuzz.com/subscription/" target="_blank" rel="noreferrer noopener"><em><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-luminous-vivid-orange-color"><strong>Subscribe</strong> </mark></em></a>to the blog to receive notifications on freshly published (2025) best practices and guidelines for software design and development.</p>




<br>



<hr>



<p class=""></p>



<p></p><p>The post <a href="https://thecodebuzz.com/create-first-net-core-application-in-raspberry-pi/">Raspberry Pi in .NET Core with examples</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://thecodebuzz.com/create-first-net-core-application-in-raspberry-pi/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>IoT- Light Bulbs Controller Raspberry Pi using .NET Core</title>
		<link>https://thecodebuzz.com/iot-smart-light-bulbs-controller-in-raspberry-pi-using-net-core/</link>
					<comments>https://thecodebuzz.com/iot-smart-light-bulbs-controller-in-raspberry-pi-using-net-core/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 01 Mar 2022 00:00:00 +0000</pubDate>
				<category><![CDATA[.NET Core]]></category>
		<category><![CDATA[IoT]]></category>
		<category><![CDATA[.NET Core 2.2 IoT App]]></category>
		<category><![CDATA[.NET Core on Raspberry Pi]]></category>
		<category><![CDATA[ASP.NET Runtime on Raspberry Pi]]></category>
		<category><![CDATA[Configure Raspberry Pi]]></category>
		<category><![CDATA[displaying different led patterns with raspberry pi code]]></category>
		<category><![CDATA[explain about raspberry pi interface for blinking led]]></category>
		<category><![CDATA[GPIO on Raspberry Pi]]></category>
		<category><![CDATA[install dotnet-core 3.1 raspberry pi]]></category>
		<category><![CDATA[led display control using raspberry pi]]></category>
		<category><![CDATA[Linux ARM 32-bit SDK]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Raspberry Pi - 2B or 3B Plus]]></category>
		<category><![CDATA[raspberry pi blink onboard led python]]></category>
		<category><![CDATA[Raspberry Pi IoT]]></category>
		<category><![CDATA[raspberry pi led blink pattern]]></category>
		<category><![CDATA[Raspbian Linux image]]></category>
		<category><![CDATA[set up Raspberry Pi]]></category>
		<category><![CDATA[working with Raspberry Pi running Raspbian.net core web api on raspberry pi]]></category>
		<category><![CDATA[write python program to control led on raspberry pi]]></category>
		<guid isPermaLink="false">https://thecodebuzz.com/?p=5084</guid>

					<description><![CDATA[<p>IoT-Smart Light Bulbs Controller in Raspberry Pi using .NET Core In today’s article, we will learn to create a simple application for controlling smart light Bulbs in Raspberry Pi using .NET Core application. In our previous articles&#160;Create First .NET Core application in Raspberry Pi&#160;we learned the basics of how to create a ‘Hello World’ application. [&#8230;]</p>
<p>The post <a href="https://thecodebuzz.com/iot-smart-light-bulbs-controller-in-raspberry-pi-using-net-core/">IoT- Light Bulbs Controller Raspberry Pi using .NET Core</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1 class="wp-block-heading">IoT-Smart Light Bulbs Controller in Raspberry Pi using .NET Core</h1>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="https://www.thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-300x115.jpg" alt="IoT- Light Bulbs Controller Raspberry Pi using .NET Core,Raspberry Pi using .NET Core" class="wp-image-5068" width="679" height="260" srcset="https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-300x115.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-1024x394.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-768x295.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-1536x591.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-2048x787.jpg 2048w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-785x302.jpg 785w" sizes="auto, (max-width: 679px) 100vw, 679px" /></figure>



<p>In today’s article, we will learn to create a simple application for controlling smart light Bulbs in Raspberry Pi using .NET Core application.</p>



<p></p>



<p>In our previous articles<strong><em>&nbsp;<a href="https://www.thecodebuzz.com/create-first-net-core-application-in-raspberry-pi/" target="_blank" rel="noreferrer noopener">Create First .NET Core application in Raspberry Pi</a></em></strong><a href="https://www.thecodebuzz.com/create-first-net-core-application-in-raspberry-pi/" target="_blank" rel="noreferrer noopener">&nbsp;</a>we learned the basics of how to create a ‘Hello World’ application. We also learned how to &nbsp;<a href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener"><em><strong>Set up Raspberry Pi – Step by step</strong></em></a>&nbsp;and&nbsp;also&nbsp;<em><strong><a href="https://www.thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/" target="_blank" rel="noreferrer noopener">Configure .NET Core IoT App on Raspberry Pi</a>.</strong></em></p>



<p></p>



<p>Today in this article, we will cover below aspects,</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="#aioseo-prerequisites">Prerequisites:</a></li><li><a href="#aioseo-the-smart-light-bulb-controller-application">The smart light Bulb controller application</a></li><li><a href="#aioseo-dotnet-new-console">dotnet new console</a></li></ul></div>



<p></p>



<h2 class="wp-block-heading" id="aioseo-prerequisites">Prerequisites:</h2>



<ul class="wp-block-list"><li><a href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener">Set up Raspberry Pi</a></li></ul>



<ul class="wp-block-list"><li><a href="https://www.thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/" target="_blank" rel="noreferrer noopener">Install .NET Core SDK on Raspberry Pi</a></li></ul>



<p></p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-the-smart-light-bulb-controller-application">The smart light Bulb controller application</h2>



<p></p>



<ul class="wp-block-list"><li> LED, BreadBoard with 3 male to female jumper wires and 220 Ohm resistor</li></ul>



<ul class="wp-block-list"><li>We need an LED, BreadBoard, 3 male to female jumper wires and 220 Ohm resistor for this exercise.</li></ul>



<ul class="wp-block-list"><li>GpioController class from “<em><strong>System.Device.Gpio”</strong></em> provides control on accessing the General Purpose Input/Output(GPIO) ports.</li></ul>



<ul class="wp-block-list"><li>We have used Pin 7 from the breadboard GPIO port for controlling LED bulbs.</li></ul>



<p></p>



<p>Let’s create a console application using the below command in a Raspberry Pi Terminal window.</p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-dotnet-new-console"><strong>dotnet new console</strong></h2>



<p></p>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="https://i0.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app.jpg?fit=785%2C343&amp;ssl=1" alt="" class="wp-image-4009" width="553" height="241" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app.jpg 1849w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-300x131.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-1024x447.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-768x335.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-1536x670.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-785x343.jpg 785w" sizes="auto, (max-width: 553px) 100vw, 553px" /></figure>



<p></p>



<p>Above command shall add .csproj file and Program.cs file.&nbsp;</p>



<p>Add the below code to the <em><strong>Main() </strong></em>method in Program.cs as below</p>



<p></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: csharp; title: ; notranslate">
using System;
using System.Device.Gpio;
using System.Threading;

namespace led_blink
{
    class Program
    {
        static void Main(string&#x5B;] args)
        {
            var pin = 7;
            var lightTimeInMilliseconds = 500;
            var dimTimeInMilliseconds = 500;
            
            Console.WriteLine($&quot;Let&#039;s blink an LED!&quot;);
            using (GpioController controller = new 
            GpioController(PinNumberingScheme.Board))
            {
                controller.OpenPin(pin, PinMode.Output);
                Console.WriteLine($&quot;GPIO pin enabled for use: {pin}&quot;);

                Console.CancelKeyPress += (object sender, 
                ConsoleCancelEventArgs eventArgs) =&gt;
                {
                    controller.Dispose();
                };

                while (true)
                {
                    Console.WriteLine($&quot;Light for 
                    {lightTimeInMilliseconds}ms&quot;);
                    controller.Write(pin, PinValue.High);
                    Thread.Sleep(lightTimeInMilliseconds);
                    Console.WriteLine($&quot;Dim for {dimTimeInMilliseconds}ms&quot;);
                    controller.Write(pin, PinValue.Low);
                    Thread.Sleep(dimTimeInMilliseconds);
                }
            }
        }
    }
}

</pre></div>


<p>The project file should use the below package( you can try using the latest available version of &#8220;<strong>System.Device.Gpio</strong>&#8220;).</p>



<p></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: csharp; title: ; notranslate">
 &lt;ItemGroup&gt;
    
    &lt;PackageReference Include=&quot;System.Device.Gpio&quot; Version=&quot;0.1.0- prerelease.19376.1&quot; /&gt;

  &lt;/ItemGroup&gt;
</pre></div>


<p><strong>Note</strong>: Please use the latest available version of GPIO</p>



<p></p>



<p>Before running the app please make sure to connect LED with the right polarity to avoid any issue.</p>



<p></p>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="https://i0.wp.com/thecodebuzz.com/wp-content/uploads/2019/08/Light-blinking-GPIO-net-core-raspberry-pi-breadboard.jpg?fit=768%2C1024&amp;ssl=1" alt="" class="wp-image-5149" width="298" height="397" srcset="https://thecodebuzz.com/wp-content/uploads/2019/08/Light-blinking-GPIO-net-core-raspberry-pi-breadboard.jpg 924w, https://thecodebuzz.com/wp-content/uploads/2019/08/Light-blinking-GPIO-net-core-raspberry-pi-breadboard-225x300.jpg 225w, https://thecodebuzz.com/wp-content/uploads/2019/08/Light-blinking-GPIO-net-core-raspberry-pi-breadboard-768x1024.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/08/Light-blinking-GPIO-net-core-raspberry-pi-breadboard-390x520.jpg 390w" sizes="auto, (max-width: 298px) 100vw, 298px" /></figure>



<p>After a successful setup, the LED light bulb will start blinking as shown below,</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="544" height="306" src="https://www.thecodebuzz.com/wp-content/uploads/2020/10/System.Device.Gpio-light-bulb-.NET-Core.gif" alt="" class="wp-image-12548"/></figure>



<p>Happy Coding !!</p>



<p>Please sound off your comments below if any.</p>



<p></p>



<p><strong><em>Useful references </em></strong>:</p>



<p></p>



<ul class="has-medium-font-size wp-block-list"><li><em><strong><a href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener">Setting up Raspberry Pi – Step by step</a></strong></em> </li></ul>



<ul class="has-medium-font-size wp-block-list"><li><a href="https://www.thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/" target="_blank" rel="noreferrer noopener"><strong><em>Build .NET Core IoT App on Raspberry P</em></strong><em><strong>i </strong></em></a> </li></ul>



<p></p>



<hr>



<p class=""></p>



<p class="has-background" style="background-color:#b6d9ac;font-size:18px"><br>Please <strong><em>bookmark </em></strong>this page and <em><strong>share </strong></em>it with your friends.                                                    Please <a href="https://www.thecodebuzz.com/subscription/" target="_blank" rel="noreferrer noopener"><em><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-luminous-vivid-orange-color"><strong>Subscribe</strong> </mark></em></a>to the blog to receive notifications on freshly published (2025) best practices and guidelines for software design and development.</p>




<br>



<hr>



<p class=""></p><p>The post <a href="https://thecodebuzz.com/iot-smart-light-bulbs-controller-in-raspberry-pi-using-net-core/">IoT- Light Bulbs Controller Raspberry Pi using .NET Core</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://thecodebuzz.com/iot-smart-light-bulbs-controller-in-raspberry-pi-using-net-core/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>IOT Device CPU Temperature Monitor</title>
		<link>https://thecodebuzz.com/iot-temperature-monitor-in-raspberry-pi-using-net-core/</link>
					<comments>https://thecodebuzz.com/iot-temperature-monitor-in-raspberry-pi-using-net-core/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 16 Jan 2020 04:15:00 +0000</pubDate>
				<category><![CDATA[.NET Core]]></category>
		<category><![CDATA[IoT]]></category>
		<category><![CDATA[.NET Core 2.2 IoT App]]></category>
		<category><![CDATA[.NET Core on Raspberry Pi]]></category>
		<category><![CDATA[.net core raspberry pi projects]]></category>
		<category><![CDATA[ASP.NET Runtime on Raspberry Pi]]></category>
		<category><![CDATA[Configure Raspberry Pi]]></category>
		<category><![CDATA[GPIO on Raspberry Pi]]></category>
		<category><![CDATA[Linux ARM 32-bit SDK]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Raspberry Pi - 2B or 3B Plus]]></category>
		<category><![CDATA[Raspberry Pi IoT]]></category>
		<category><![CDATA[raspberry pi temperature and humidity logger/web server]]></category>
		<category><![CDATA[raspberry pi temperature monitor]]></category>
		<category><![CDATA[raspberry pi temperature monitor command]]></category>
		<category><![CDATA[raspberry pi temperature sensor dht11 python code]]></category>
		<category><![CDATA[raspberry pi temperature sensor python code]]></category>
		<category><![CDATA[Raspbian Linux image]]></category>
		<category><![CDATA[set up Raspberry Pi]]></category>
		<category><![CDATA[wireless temperature monitoring system using raspberry pi]]></category>
		<category><![CDATA[working with Raspberry Pi running Raspbian]]></category>
		<category><![CDATA[write a program to record the current room temperature using raspberry pi]]></category>
		<guid isPermaLink="false">https://thecodebuzz.com/?p=5064</guid>

					<description><![CDATA[<p>IoT -Temperature Monitor in Raspberry Pi using .NET Core In our previous articles Create First .NET Core application in Raspberry Pi we learned the basics on how to create a &#8216;Hello World&#8217; application. We learned how to  Set up Raspberry Pi – Step by step and also Configure .NET Core IoT App on Raspberry Pi. Today’s article [&#8230;]</p>
<p>The post <a href="https://thecodebuzz.com/iot-temperature-monitor-in-raspberry-pi-using-net-core/">IOT Device CPU Temperature Monitor</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1 class="wp-block-heading">IoT -Temperature Monitor in Raspberry Pi using .NET Core </h1>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" width="2403" height="924" src="https://i0.wp.com/thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1.jpg?fit=785%2C302&amp;ssl=1" alt="IoT - Temperature Monitor in Raspberry Pi using .NET Core" class="wp-image-5068" style="width:554px;height:213px" srcset="https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1.jpg 2403w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-300x115.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-1024x394.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-768x295.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-1536x591.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-2048x787.jpg 2048w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-3.0-IoT-apps-for-Raspberry-Pi-linux-arm32-1-785x302.jpg 785w" sizes="auto, (max-width: 2403px) 100vw, 2403px" /></figure>



<p>In our previous articles Create First .NET Core application in Raspberry Pi we learned the basics on how to create a &#8216;Hello World&#8217; application. </p>



<p></p>



<p>We learned how to  <a aria-label=" (opens in a new tab)" href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank" rel="noreferrer noopener">Set up Raspberry Pi – Step by step</a> and also <a aria-label=" (opens in a new tab)" href="https://www.thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/" target="_blank" rel="noreferrer noopener">Configure .NET Core IoT App on Raspberry Pi</a>.</p>



<p></p>



<p>Today’s article we will learn to create a simple application for CPU Temperature monitoring in Raspberry Pi using .NET Core application.</p>



<p></p>



<h2 class="wp-block-heading">Prerequisites:</h2>



<p></p>



<ul class="wp-block-list">
<li><a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="https://www.thecodebuzz.com/setting-up-net-raspberry-pi-step-by-step/" target="_blank">Set up Raspberry Pi</a></li>



<li><a href="https://www.thecodebuzz.com/build-net-core-iot-app-on-raspberry-pi/" target="_blank" rel="noreferrer noopener" aria-label=" (opens in a new tab)">Install .NET Core SDK on Raspberry Pi</a></li>
</ul>



<p></p>



<h2 class="wp-block-heading">Monitor CPU Temperature application</h2>



<p></p>



<p>Remember since we have .NET Core SDK installed, we can now create .NET Core app right within Raspberry Pi.</p>



<p></p>



<p>Let quickly check the .NET Core version on Pi,</p>



<p></p>



<pre class="wp-block-preformatted">dotnet --info<br></pre>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" width="1260" height="924" src="https://i1.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1.jpg?fit=785%2C576&amp;ssl=1" alt="IoT .NET Core" class="wp-image-4005" style="width:529px;height:388px" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1.jpg 1260w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-300x220.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-1024x751.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-768x563.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-check-dotnet-core-version-1-709x520.jpg 709w" sizes="auto, (max-width: 1260px) 100vw, 1260px" /></figure>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>Due to space limitation on Pi, You can create, build, and compile the project on your Laptop\Desktop. Then copy it to Pi and execute it on Pi.</p>
</blockquote>



<p></p>



<p>Let’s create a console application using the below command in a Raspberry Pi terminal window.</p>



<p></p>



<pre class="wp-block-preformatted">dontet new console
</pre>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" width="1849" height="807" src="https://i0.wp.com/thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app.jpg?fit=785%2C343&amp;ssl=1" alt="IoT - Temperature Monitor .NET Core" class="wp-image-4009" style="width:558px;height:243px" srcset="https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app.jpg 1849w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-300x131.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-1024x447.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-768x335.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-1536x670.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2019/06/respberry-pi-create-console-app-785x343.jpg 785w" sizes="auto, (max-width: 1849px) 100vw, 1849px" /></figure>



<p></p>



<p>Above command shall add .csproj file and Program.cs file. </p>



<p>Add below code to the Main() method in Program.cs as below, </p>



<p></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: csharp; title: ; notranslate">
using System;
using Iot.Device.CpuTemperature;
using System.Threading;

namespace IOT
{
    class Program
    {
        static CpuTemperature temperature = new CpuTemperature();
        static void Main(string&#x5B;] args)
        {
            while (true)
            {
                if (temperature.IsAvailable)
                {
                    Console.WriteLine($&quot;The CPU temperature in Celsius is 
                           {temperature.Temperature.Celsius}&quot; +&quot;C&quot;);
                    Console.WriteLine($&quot;The CPU temperature in Fahrenheit is 
                           {temperature.Temperature.Fahrenheit}&quot; + &quot;F&quot;);
                }

                Thread.Sleep(2000); // sleep for 2000 milliseconds, 2 seconds
            }
        }
    }
}

</pre></div>


<p>Please make sure to add below namespace to your file,</p>



<p></p>



<pre class="wp-block-verse">using Iot.Device.CpuTemperature;</pre>



<p></p>



<p>Project file or .csproj file will look like as below,</p>



<p></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: csharp; title: ; notranslate">
&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;

  &lt;PropertyGroup&gt;
    &lt;OutputType&gt;Exe&lt;/OutputType&gt;
    &lt;TargetFramework&gt;netcoreapp2.2&lt;/TargetFramework&gt;
  &lt;/PropertyGroup&gt;

  &lt;ItemGroup&gt;
    &lt;PackageReference Include=&quot;Iot.Device.Bindings&quot; Version=&quot;0.1.0-prerelease*&quot; /&gt;
  &lt;/ItemGroup&gt;

&lt;/Project&gt;

</pre></div>


<p></p>



<p>Sample Nuget.config will look like as below,</p>



<p></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: csharp; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;configuration&gt;
  &lt;packageSources&gt;
    &lt;clear /&gt;
    &lt;add key=&quot;myget.org&quot; value=&quot;https://dotnet.myget.org/F/dotnet-core/api/v3/index.json&quot; /&gt;
    &lt;add key=&quot;nuget.org&quot; value=&quot;https://api.nuget.org/v3/index.json&quot; /&gt;
  &lt;/packageSources&gt;
&lt;/configuration&gt;

</pre></div>


<p></p>



<p>Let’s run our .NET Core app using below command,</p>



<pre class="wp-block-preformatted"><strong>dotnet run&nbsp;</strong>[app-path]
</pre>



<p>The app will show the current CPU temperature in Celsius and Fahrenheit successfully. </p>



<p> </p>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" width="1307" height="831" src="https://i0.wp.com/thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-Temprature-Monitor-Raspberry-Pi-1.jpg?fit=785%2C499&amp;ssl=1" alt="IOT Device CPU Temperature Monitor " class="wp-image-5073" style="width:526px;height:334px" srcset="https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-Temprature-Monitor-Raspberry-Pi-1.jpg 1307w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-Temprature-Monitor-Raspberry-Pi-1-300x191.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-Temprature-Monitor-Raspberry-Pi-1-1024x651.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-Temprature-Monitor-Raspberry-Pi-1-768x488.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2019/08/NET-Core-Temprature-Monitor-Raspberry-Pi-1-785x499.jpg 785w" sizes="auto, (max-width: 1307px) 100vw, 1307px" /></figure>



<p></p>



<h2 class="wp-block-heading">Summary</h2>



<p></p>



<p>Today in this article, we dive into further ( beyond our &#8216;Hello World&#8217; application) and learned to create an application for Temperature monitoring in Raspberry Pi using .NET Core application. </p>



<p></p>



<hr>



<p class=""></p>



<p class="has-background" style="background-color:#b6d9ac;font-size:18px"><br>Please <strong><em>bookmark </em></strong>this page and <em><strong>share </strong></em>it with your friends.                                                    Please <a href="https://www.thecodebuzz.com/subscription/" target="_blank" rel="noreferrer noopener"><em><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-luminous-vivid-orange-color"><strong>Subscribe</strong> </mark></em></a>to the blog to receive notifications on freshly published (2025) best practices and guidelines for software design and development.</p>




<br>



<hr>



<p class=""></p>



<p></p><p>The post <a href="https://thecodebuzz.com/iot-temperature-monitor-in-raspberry-pi-using-net-core/">IOT Device CPU Temperature Monitor</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://thecodebuzz.com/iot-temperature-monitor-in-raspberry-pi-using-net-core/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
