<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: RajivCodeLab</title>
    <description>The latest articles on DEV Community by RajivCodeLab (@rajivcodelab).</description>
    <link>https://dev.to/rajivcodelab</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1409034%2F25215fca-db67-43cd-8396-ba883f26f75c.png</url>
      <title>DEV Community: RajivCodeLab</title>
      <link>https://dev.to/rajivcodelab</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rajivcodelab"/>
    <language>en</language>
    <item>
      <title>How to Control an LED from the Internet using Raspberry Pi Pico W</title>
      <dc:creator>RajivCodeLab</dc:creator>
      <pubDate>Sun, 07 Apr 2024 02:39:36 +0000</pubDate>
      <link>https://dev.to/rajivcodelab/how-to-control-an-led-from-the-internet-using-raspberry-pi-pico-w-474</link>
      <guid>https://dev.to/rajivcodelab/how-to-control-an-led-from-the-internet-using-raspberry-pi-pico-w-474</guid>
      <description>&lt;p&gt;The Raspberry Pi Pico W brings the power of Wi0Fi connectivity to the popular Raspberry Pi Pico microcontroller board. In this tutorial, we'll explore how to leverage this capability to control an LED remotely over the internet. &lt;/p&gt;

&lt;p&gt;By the end of this guide, you'll have a Wi-Fi-connected LED system that can be controlled from anywhere with an internet connection.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/oacTs7XLvwc"&gt;
&lt;/iframe&gt;
.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites:
&lt;/h2&gt;

&lt;p&gt;Before we begin, ensure you have the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Raspberry Pi Pico W board&lt;/li&gt;
&lt;li&gt;1x LED&lt;/li&gt;
&lt;li&gt;1x Micro USB cable&lt;/li&gt;
&lt;li&gt;2x male to male jumper cable&lt;/li&gt;
&lt;li&gt;1x 1000k Ohm Resister&lt;/li&gt;
&lt;li&gt;Basic knowledge of Python programming&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Hardware Setup:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb1gzwki6ys3tf4eo934h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb1gzwki6ys3tf4eo934h.png" alt="Image description" width="717" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Raspberry Pi Pico to Resistor: Connect one end of the resistor to the GPIO 0 (GP0) pin on the Raspberry Pi Pico.&lt;/li&gt;
&lt;li&gt;Resistor to LED (Anode): Connect the other end of the resistor to the long leg (anode, +) of the LED.&lt;/li&gt;
&lt;li&gt;LED (Cathode) to Raspberry Pi Pico (GND): Connect the short leg (cathode, -) of the LED to one of the GND (ground) pins on the Raspberry Pi Pico.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Software Setup:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Download the the provided Python code from &lt;a href="https://gist.github.com/RajivCodeLab/4972b82cb96fa7c27b1e24d6a22ce079" rel="noopener noreferrer"&gt;GitHub Gist&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open the Thonny IDE and paste the below code.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Dweet.io Setup:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Go to &lt;a href="https://dweet.io" rel="noopener noreferrer"&gt;dweet.io&lt;/a&gt; website and click on Play&lt;/li&gt;
&lt;li&gt;Click on create things&lt;/li&gt;
&lt;li&gt;give the thing name as "led_control"&lt;/li&gt;
&lt;li&gt;in the body write
&lt;code&gt;{
"value" : 1
}&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Click on try it out&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Running the Code:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Replace "YOUR_WIFI_SSID" and "YOUR_WIFI_PASSWORD" with your WiFi network credentials.&lt;/li&gt;
&lt;li&gt;Save the Python script into Raspberry Pi Pico and Run.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion:
&lt;/h2&gt;

&lt;p&gt;With the code uploaded to your Raspberry Pi Pico WiFi, your LED is now ready to be controlled over the internet. This opens up a wide range of possibilities for remote monitoring and control applications. Experiment with different APIs and functionalities to tailor the system to your needs. Happy tinkering!&lt;/p&gt;

</description>
      <category>raspberrypi</category>
      <category>pico</category>
      <category>micropython</category>
      <category>iot</category>
    </item>
    <item>
      <title>How to Get Started With Raspberry Pi Pico W</title>
      <dc:creator>RajivCodeLab</dc:creator>
      <pubDate>Sat, 06 Apr 2024 05:44:19 +0000</pubDate>
      <link>https://dev.to/rajivcodelab/how-to-get-started-with-raspberry-pi-pico-w-2dfj</link>
      <guid>https://dev.to/rajivcodelab/how-to-get-started-with-raspberry-pi-pico-w-2dfj</guid>
      <description>&lt;p&gt;If you are beginner or want to start with Raspberry Pi Pico and MicroPython for Internet of Things projects. Here’s is How to Get Started with Raspberry Pi Pico W in 2024.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check out this detailed video:
&lt;/h2&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/I6P65KlZnJ4"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>raspberrypi</category>
      <category>pico</category>
      <category>micropython</category>
      <category>python</category>
    </item>
  </channel>
</rss>
