<?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>Arduino Archives - CyberBlogSpot</title>
	<atom:link href="https://cyberblogspot.com/tag/arduino/feed/" rel="self" type="application/rss+xml" />
	<link>https://cyberblogspot.com/tag/arduino/</link>
	<description>Not just another blogspot site</description>
	<lastBuildDate>Wed, 01 Feb 2023 19:33:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>

<image>
	<url>https://cyberblogspot.com/wp-content/uploads/2018/08/cropped-iphone-iphone3gs-32x32.jpg</url>
	<title>Arduino Archives - CyberBlogSpot</title>
	<link>https://cyberblogspot.com/tag/arduino/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Test an ESP-01 ESP8266 Module</title>
		<link>https://cyberblogspot.com/how-to-test-an-esp-01-esp8266-module/</link>
					<comments>https://cyberblogspot.com/how-to-test-an-esp-01-esp8266-module/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 01 Feb 2023 19:31:54 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino IDE]]></category>
		<category><![CDATA[AT Command]]></category>
		<category><![CDATA[AT Firmware]]></category>
		<category><![CDATA[ESP-01]]></category>
		<category><![CDATA[ESP-01 ESP8266]]></category>
		<category><![CDATA[ESP-01 Flasher]]></category>
		<category><![CDATA[ESP-01 Programmer]]></category>
		<category><![CDATA[ESP-01S]]></category>
		<category><![CDATA[ESP8266]]></category>
		<category><![CDATA[Schematic Diagram]]></category>
		<category><![CDATA[Serial Monitor]]></category>
		<category><![CDATA[Smartphone]]></category>
		<category><![CDATA[Wi-Fi]]></category>
		<guid isPermaLink="false">https://cyberblogspot.com/?p=4652</guid>

					<description><![CDATA[<p>When you buy a new ESP-01 ESP8266 module, the very first thing to do is to test it. That is, you need to make sure that you have a good and working ESP-01 module. We will take a look at the different methods of testing the ESP-01 ESP8266 Wi-Fi module. Differences Between ESP-01 and ESP-01S&#8230;&#160;<a href="https://cyberblogspot.com/how-to-test-an-esp-01-esp8266-module/" rel="bookmark">Read More &#187;<span class="screen-reader-text">How to Test an ESP-01 ESP8266 Module</span></a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-test-an-esp-01-esp8266-module/">How to Test an ESP-01 ESP8266 Module</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/ESP-01-with-border.jpg"><img fetchpriority="high" decoding="async" width="602" height="602" src="https://cyberblogspot.com/wp-content/uploads/2021/04/ESP-01-with-border.jpg" alt="A picture of an ESP-01 ESP8266 module that is ready for testing" class="wp-image-4647" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/ESP-01-with-border.jpg 602w, https://cyberblogspot.com/wp-content/uploads/2021/04/ESP-01-with-border-300x300.jpg 300w, https://cyberblogspot.com/wp-content/uploads/2021/04/ESP-01-with-border-150x150.jpg 150w" sizes="(max-width: 602px) 100vw, 602px" /></a><figcaption class="wp-element-caption">Figure 1.  ESP-01 ESP8266 Module</figcaption></figure></div>


<p>When you buy a new ESP-01 ESP8266 module, the very first thing to do is to test it.  That is, you need to make sure that you have a good and working ESP-01 module.  We will take a look at the different methods of testing the ESP-01 ESP8266 Wi-Fi module.  </p>



<h2 class="wp-block-heading">Differences Between ESP-01 and ESP-01S ESP8266 Module</h2>



<p>Before we proceed, be aware that there are two (2) versions of ESP-01 modules.  The older ESP-01 module and the newer ESP-01S module.  Both modules are functionally the same.  However, there are two points worth mentioning here.  </p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01-vs-esp-01s-side-by-side-jpg.webp"><img decoding="async" width="802" height="602" src="https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01-vs-esp-01s-side-by-side-jpg.webp" alt="Picture showing the differences between an ESP-01 and ESP-01S ESP8266 modules prior to testing" class="wp-image-6077" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01-vs-esp-01s-side-by-side-jpg.webp 802w, https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01-vs-esp-01s-side-by-side-300x225.webp 300w, https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01-vs-esp-01s-side-by-side-768x576.webp 768w" sizes="(max-width: 802px) 100vw, 802px" /></a><figcaption class="wp-element-caption">Figure 2.  ESP-01 Module and ESP-01S Module Comparison </figcaption></figure></div>


<p>First, the ESP-01 has two (2) LEDs, a red LED power indicator and a blue LED that indicates serial activity.  On the other hand, the newer ESP-01S has only one (1) LED, the blue LED light (see Figure 2 above).  Moreover, the blue LED serial activity indicator light is wired differently on each module.  That is, on an ESP-01 module, it is connected on the TX pin (GPIO1) while on the ESP-01S module, it is connected on the GPIO2 pin.  And as a side note, pins GPIO0 and GPIO1 are both serial TX capable pins (refer to the ESP-01S schematic diagram at the end of this article).   </p>



<p>Second, the ESP-01S module has three (3) additional on-board resistors used as pull-up resistors.  These pull-up resistors are 12K-ohm resistors each connected on the GPIO0, the RESET, and the CH_PD pins.  You may also want to refer again to the ESP-01S schematic diagram included at the end of this article.      </p>



<h2 class="wp-block-heading">Quick and Dirty Test</h2>



<p>The ESP-01 module is shipped with a program called AT firmware.  The firmware will let you send AT commands to configure and program the module.  More important, the module is configured as a Wi-Fi Access Point (AP) when shipped.  Therefore, a quick and dirty test is to power the ESP-01 module and use a smartphone to connect to the Access Point.</p>



<p>Power up the ESP-01 module as shown in Figure 3.  Notice that we need to connect the ESP-01 module to a 3.3V power supply.  Do not connect the ESP-01 module to the 3.3V output of an Arduino board.  Provide a separate 3.3V power supply with sufficient current capacity.  Also, note that a 10K ohms resistor is connected from the CH_PD pin to the VCC or the 3.3V supply.  The CH_PD (Chip Power Down / Enable Pin) pin has to be pulled up to the VCC for the module to function.  If you have the ESP-01S module, you do not need to connect a 10K ohm resistor on the CH_PD pin.  As per discussion above on the differences between the ESP-01 and the ESP-01S modules, the ESP-01S already has a 12K-ohm pull-up resistor on the CH_PD pin.       </p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01-with-power-supply.png"><img decoding="async" width="602" height="377" src="https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01-with-power-supply.png" alt="A picture depicting how to supply power to the ESP-01 ESP8266 Wi-Fi module in order to do a quick test" class="wp-image-6078" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01-with-power-supply.png 602w, https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01-with-power-supply-300x188.png 300w" sizes="(max-width: 602px) 100vw, 602px" /></a><figcaption class="wp-element-caption">Figure 3.  ESP-01 8266 Module with Power Supply</figcaption></figure></div>


<p>After powering up, you should see the ESP-01 access point when you scan for Wi-Fi devices.  The default SSID of the ESP-01 module I am using is ESP_7B0F95.  See Figure 4.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-scan.png"><img loading="lazy" decoding="async" width="352" height="624" src="https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-scan.png" alt="Screenshot of a smartphone Wi-Fi settings showing the SSID of nearby Wi-Fi devices." class="wp-image-6082" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-scan.png 352w, https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-scan-169x300.png 169w" sizes="auto, (max-width: 352px) 100vw, 352px" /></a><figcaption class="wp-element-caption">Figure 4.  Smartphone Wi-Fi Scan</figcaption></figure></div>


<p>Connect to the ESP-01 Access Point.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-connected-350-final.png"><img loading="lazy" decoding="async" width="352" height="624" src="https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-connected-350-final.png" alt="Screenshot of an Android smartphone Wi-Fi settings showing the module as connected to the smartphone." class="wp-image-6084" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-connected-350-final.png 352w, https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-connected-350-final-169x300.png 169w" sizes="auto, (max-width: 352px) 100vw, 352px" /></a><figcaption class="wp-element-caption">Figure 5.  Smartphone Wi-Fi Connected to ESP-01 Access Point</figcaption></figure></div>


<p>Click on the Settings icon (gear icon) and see the network details of the ESP-01 module Access Point.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-esp-01-access-point-properties.png"><img loading="lazy" decoding="async" width="352" height="624" src="https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-esp-01-access-point-properties.png" alt="Screenshot of a smartphone Wi-Fi settings showing the network characteristics of the ESP-01 ESP8266 module acting as an access point." class="wp-image-6085" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-esp-01-access-point-properties.png 352w, https://cyberblogspot.com/wp-content/uploads/2023/01/smartphone-wi-fi-esp-01-access-point-properties-169x300.png 169w" sizes="auto, (max-width: 352px) 100vw, 352px" /></a><figcaption class="wp-element-caption">Figure 6.  The ESP-01 Access Point Network Properties</figcaption></figure></div>


<h2 class="wp-block-heading">AT Command Test</h2>



<p>For the next test, you need an ESP-01 programmer or flasher.  An inexpensive programmer/flasher is shown below in Figures 7.  In Figure 8, the ESP-01 module is shown inserted into the programmer/flasher.  If you do not have a programmer/flasher, it is possible to use an Arduino board as a programmer/flasher.  Also, if you have a USB-to-serial(TTL) converter, you could wire it up as an ESP-01 programmer/flasher.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/New-ESP-01-Flasher.jpg"><img loading="lazy" decoding="async" width="502" height="370" src="https://cyberblogspot.com/wp-content/uploads/2021/04/New-ESP-01-Flasher.jpg" alt="Picture of an inexpensive ESP-01 ESP8266 programmer/flasher for testing the ESP-01 module." class="wp-image-4714" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/New-ESP-01-Flasher.jpg 502w, https://cyberblogspot.com/wp-content/uploads/2021/04/New-ESP-01-Flasher-300x221.jpg 300w" sizes="auto, (max-width: 502px) 100vw, 502px" /></a><figcaption class="wp-element-caption">Figure 7.  An ESP-01 Programmer/Flasher</figcaption></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/new-esp-01-flasher-wth-module-500.jpg"><img loading="lazy" decoding="async" width="500" height="379" src="https://cyberblogspot.com/wp-content/uploads/2021/04/new-esp-01-flasher-wth-module-500.jpg" alt="Picture showing the ESP-01 ESP8266 module inserted on an ESP-01 programmer/flasher." class="wp-image-4715" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/new-esp-01-flasher-wth-module-500.jpg 500w, https://cyberblogspot.com/wp-content/uploads/2021/04/new-esp-01-flasher-wth-module-500-300x227.jpg 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><figcaption class="wp-element-caption">Figure 8.  ESP-01 Module on a Programmer/Flasher</figcaption></figure></div>


<p>Insert the ESP-01 module to the programmer as shown in Figure 8 and plug the programmer to the computer.  If it is your first time to use your programmer/flasher, you may have to install its device driver.  Open the Arduino IDE and set the appropriate COM port for your programmer (Figure 9).  For the meantime, there is no need to set the Board type.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-port-selection.png"><img loading="lazy" decoding="async" width="602" height="420" src="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-port-selection.png" alt="Picture of the Arduino IDE showing how to select the proper COM port." class="wp-image-6087" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-port-selection.png 602w, https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-port-selection-300x209.png 300w" sizes="auto, (max-width: 602px) 100vw, 602px" /></a><figcaption class="wp-element-caption">Figure 9.  The Arduino IDE Showing How to Select COM port</figcaption></figure></div>


<p>Open the Serial Monitor and change the settings as shown in Figure 10.  The line ending setting must be set to both newline and carriage return, &#8220;Both NL &amp; CR&#8221;.  Additionally, the baud rate setting must be set to &#8220;115200 baud&#8221;.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-monitor-settings-1.png"><img loading="lazy" decoding="async" width="603" height="383" src="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-monitor-settings-1.png" alt="Screenshot of Arduino IDE serial monitor annotated with the proper line ending setting and baud rate setting." class="wp-image-6088" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-monitor-settings-1.png 603w, https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-monitor-settings-1-300x191.png 300w" sizes="auto, (max-width: 603px) 100vw, 603px" /></a><figcaption class="wp-element-caption">Figure 10.  The Arduino IDE Serial Monitor Settings</figcaption></figure></div>


<p>Now type &#8220;AT&#8221;, press the return key and the ESP-01 module should reply &#8220;OK&#8221;.</p>



<p>To view the ESP-01 module firmware version, type &#8220;AT+GMR&#8221;.</p>



<p>Type &#8220;AT+CIFSR&#8221; to view the Access Point&#8217;s IP address and network MAC address.  See Figure 11 for the output display.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-monitor-with-at-commands.png"><img loading="lazy" decoding="async" width="601" height="381" src="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-monitor-with-at-commands.png" alt="Screenshot of the Arduino IDE serial monitor showing the results of testing an ESP-01 8266 module with AT commands." class="wp-image-6089" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-monitor-with-at-commands.png 601w, https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-monitor-with-at-commands-300x190.png 300w" sizes="auto, (max-width: 601px) 100vw, 601px" /></a><figcaption class="wp-element-caption">Figure 11.  The Arduino IDE Serial Monitor Showing the Results of AT Commands</figcaption></figure></div>


<p>For a complete guide on the ESP-01 module AT commands, see <a href="https://room-15.github.io/blog/2015/03/26/esp8266-at-command-reference/" target="_blank" rel="noreferrer noopener">ESP8266 &#8211; AT Command Reference</a>.</p>



<h2 class="wp-block-heading">Programming with Arduino IDE</h2>



<p>In the next test, we will upload a modified version of the sample sketch Blink from the Arduino IDE.  The sketch should make the blue LED on the ESP-01 module turn on and off.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="has-text-align-center"><strong>IMPORTANT</strong><br>Uploading an Arduino sketch to the ESP-01 module will erase the AT firmware.  The AT commands will not work anymore after the upload.  If you want to be able to restore the original firmware, please see the article <br><a href="https://cyberblogspot.com/how-to-save-and-restore-esp8266-and-esp32-firmware/" target="_blank" rel="noreferrer noopener">How to Save and Restore ESP8266 and ESP32 Firmware</a>.</p>
</blockquote>



<p>With the ESP-01 module still in the programmer/flasher, open the Arduino IDE and change the Board setting to &#8220;Generic ESP8266 Module&#8221; as shown in Figure 12.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-board-selection-850.png"><img loading="lazy" decoding="async" width="852" height="465" src="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-board-selection-850.png" alt="Screenshot of the Arduino IDE showing how to set the board prior to testing the ESP-01 ESP8266 Wi-Fi module." class="wp-image-6092" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-board-selection-850.png 852w, https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-board-selection-850-300x164.png 300w, https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-board-selection-850-768x419.png 768w" sizes="auto, (max-width: 852px) 100vw, 852px" /></a><figcaption class="wp-element-caption">Figure 12.  The Arduino IDE Showing How to Set the MCU Board</figcaption></figure></div>


<p>Create a new sketch, copy and paste the blink program shown below.  Upload the sketch to the ESP-01 module.  The blue LED should start blinking after successfully uploading the sketch.</p>



<pre class="EnlighterJSRAW">/*
 * cyberblogspot.com 01Feb2023
 */

#define LED_BUILTIN 1                // GPIO1 for ESP-01, GPIO2 for ESP-01S
                                     // Change to 2 for ESP-01S module
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);   
}

void loop() {
  digitalWrite(LED_BUILTIN, LOW);   // Turn the LED on (ESP-01 LED is active low)
  delay(1000);                      
  digitalWrite(LED_BUILTIN, HIGH);  // Turn the LED off 
  delay(1000);                     
}</pre>



<h2 class="wp-block-heading">Schematic Diagram of ESP-01S ESP8266 Wi-Fi Module</h2>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01s-schematic-diagram-jpg.webp"><img loading="lazy" decoding="async" width="1024" height="570" src="https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01s-schematic-diagram-1024x570.webp" alt="Schematic diagram of ESP-01S ESP8266 Wi-Fi module that can be used for reference purposes especially when testing the module" class="wp-image-6079" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01s-schematic-diagram-1024x570.webp 1024w, https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01s-schematic-diagram-300x167.webp 300w, https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01s-schematic-diagram-768x427.webp 768w, https://cyberblogspot.com/wp-content/uploads/2023/01/esp-01s-schematic-diagram-jpg.webp 1082w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Figure 13. ESP-01S Wi-Fi Module Schematic Diagram</figcaption></figure></div>


<h2 class="wp-block-heading">Related Articles on How to Test an ESP-01 ESP8266 Module</h2>



<p><a href="https://cyberblogspot.com/how-to-set-up-arduino-ide-for-esp8266-programming/" target="_blank" rel="noreferrer noopener">How to Set up Arduino IDE for ESP8266 Programming</a><br><a href="https://cyberblogspot.com/how-to-program-esp-01-with-arduino-ide/" target="_blank" rel="noreferrer noopener">How to Program ESP-01 with Arduino IDE</a>                                       <br><a href="https://cyberblogspot.com/how-to-control-esp-01-thru-a-router/" target="_blank" rel="noreferrer noopener">How to Control ESP-01 thru a Router</a><br><a href="https://cyberblogspot.com/how-to-control-esp-01-without-a-router/" target="_blank" rel="noreferrer noopener">How to Control ESP-01 Without a Router</a><br><a href="https://cyberblogspot.com/esp-01-with-rtc-and-lcd-display/" target="_blank" rel="noreferrer noopener">ESP-01 with RTC and LCD Display</a><br><a href="https://cyberblogspot.com/esp-01-esp8266-ntp-clock-with-lcd-display/" target="_blank" rel="noreferrer noopener">ESP-01 ESP8266 NTP Clock with LCD Display</a><br><a href="https://cyberblogspot.com/how-to-test-nodemcu-v3-using-esptool/" target="_blank" rel="noreferrer noopener">How to Test NodeMCU V3 Using Esptool</a><br><a href="https://cyberblogspot.com/nodemcu-v3-esp8266-pinout-and-configuration/" target="_blank" rel="noreferrer noopener">NodeMCU V3 ESP8266 Pinout and Configuration</a><br><a href="https://cyberblogspot.com/how-to-use-at-09-ble-with-arduino-and-smartphone/" target="_blank" rel="noreferrer noopener">How to Use AT-09 BLE with Arduino and Smartphone</a>               </p>



<h2 class="wp-block-heading">References on How to Test an ESP-01 ESP8266 Module</h2>



<p><a href="https://en.wikipedia.org/wiki/ESP8266" target="_blank" rel="noreferrer noopener">ESP8266 on Wikipedia</a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-test-an-esp-01-esp8266-module/">How to Test an ESP-01 ESP8266 Module</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/how-to-test-an-esp-01-esp8266-module/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install ATTinyCore on Arduino IDE</title>
		<link>https://cyberblogspot.com/how-to-install-attinycore-on-arduino-ide/</link>
					<comments>https://cyberblogspot.com/how-to-install-attinycore-on-arduino-ide/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 01 Feb 2022 06:17:37 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino IDE]]></category>
		<category><![CDATA[ATtiny]]></category>
		<category><![CDATA[ATtiny85]]></category>
		<category><![CDATA[ATTinyCore]]></category>
		<category><![CDATA[AVR programmer]]></category>
		<category><![CDATA[Digispark]]></category>
		<category><![CDATA[Micronucleus]]></category>
		<category><![CDATA[Micronucleus bootloader]]></category>
		<category><![CDATA[Optiboot]]></category>
		<category><![CDATA[Optiboot bootloader]]></category>
		<category><![CDATA[Spence Konde]]></category>
		<category><![CDATA[USBasp]]></category>
		<category><![CDATA[USBtinyISP]]></category>
		<guid isPermaLink="false">https://cyberblogspot.com/?p=5031</guid>

					<description><![CDATA[<p>In order to program an ATtiny microcontroller in Arduino IDE, we need to install the ATTinyCore Arduino core. The ATTinycore was written by Spence Konde. It supports almost the whole family of ATtiny AVR microcontrollers. The following ATtiny microcontrollers are supported: ATtiny1634 ATtiny2313/4313 ATtiny24/44/84 ATtiny441/841 ATtiny25/45/85 ATtiny261/461/861 ATtiny87/167 ATtiny48/88 ATTiny43 ATtiny828 Additionally, the ATTinyCore supports&#8230;&#160;<a href="https://cyberblogspot.com/how-to-install-attinycore-on-arduino-ide/" rel="bookmark">Read More &#187;<span class="screen-reader-text">How to Install ATTinyCore on Arduino IDE</span></a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-install-attinycore-on-arduino-ide/">How to Install ATTinyCore on Arduino IDE</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In order to program an ATtiny microcontroller in Arduino IDE, we need to install the ATTinyCore Arduino core.  The ATTinycore was written by Spence Konde.  It supports almost the whole family of ATtiny AVR microcontrollers.  The following ATtiny microcontrollers are supported:</p>



<ul class="wp-block-list"><li>ATtiny1634</li><li>ATtiny2313/4313</li><li>ATtiny24/44/84</li><li>ATtiny441/841</li><li>ATtiny25/45/85</li><li>ATtiny261/461/861</li><li>ATtiny87/167</li><li>ATtiny48/88</li><li>ATTiny43</li><li>ATtiny828</li></ul>



<p>Additionally, the ATTinyCore supports programming via ICSP AVR programmers, Serial (Optiboot), and VUSB (Micronucleus).</p>



<h2 class="wp-block-heading">1.  Install the Arduino IDE</h2>



<p>If you don&#8217;t have the Arduino IDE (Integrated Development Environment) yet, you can download it <a href="https://www.arduino.cc/en/software" target="_blank" rel="noreferrer noopener">here</a>.  As of this writing, the latest stable version is <strong>1.8.19</strong>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide.png"><img loading="lazy" decoding="async" width="1024" height="546" src="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-1024x546.png" alt="Screenshot of the website where Arduino IDE can be downloaded and subsequently installed and loaded with ATTinyCore for programming ATtiny MCUs " class="wp-image-4941" srcset="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-1024x546.png 1024w, https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-300x160.png 300w, https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-768x410.png 768w, https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide.png 1368w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption>Arduino IDE Download Page</figcaption></figure></div>


<h2 class="wp-block-heading">2.  Add the ATTinyCore URL to the Board Manager</h2>



<p>Open the Arduino IDE and on the main menu, select<strong> Files -&gt; Preferences</strong>.  In the <strong>Additional Boards Manager URLs</strong> textbox, type the URL &#8220;<strong>http://drazzy.com/package_drazzy.com_index.json</strong>&#8220;, and then press the <strong>OK</strong> button. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><a href="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-files-preferences.png"><img loading="lazy" decoding="async" src="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-files-preferences.png" alt="Screenshot of Arduino IDE showing the File/Preferences setting for installing the ATtinyCore by Spence Konde" class="wp-image-4957" width="798" height="476" srcset="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-files-preferences.png 799w, https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-files-preferences-300x179.png 300w, https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-files-preferences-768x458.png 768w" sizes="auto, (max-width: 798px) 100vw, 798px" /></a><figcaption>Arduino IDE with the File &#8211;&gt; Preferences Settings</figcaption></figure></div>


<p>If the textbox already contains additional URLs, press the button on the right side of the textbox.  A window will appear where you can type the URL on a new line.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-url-textbox.png"><img loading="lazy" decoding="async" width="560" height="218" src="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-url-textbox.png" alt="Screenshot of Arduino IDE showing the different board URLs installed including the ATtinyCore" class="wp-image-4960" srcset="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-url-textbox.png 560w, https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-url-textbox-300x117.png 300w" sizes="auto, (max-width: 560px) 100vw, 560px" /></a><figcaption>Additional Boards Manager URLs Window</figcaption></figure></div>


<h2 class="wp-block-heading">3.  Install the Board</h2>



<p>On the main menu, select <strong>Tools -&gt; Board -&gt; Board Manager</strong>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-board-manager.png"><img loading="lazy" decoding="async" width="802" height="435" src="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-board-manager.png" alt="Screenshot of Arduino IDE showing the Board Manager for installing the ATtinyCore boards" class="wp-image-4961" srcset="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-board-manager.png 802w, https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-board-manager-300x163.png 300w, https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-board-manager-768x417.png 768w" sizes="auto, (max-width: 802px) 100vw, 802px" /></a><figcaption>Arduino IDE Showing the Board Manager Menu</figcaption></figure></div>


<p>When the <strong>Board Manager</strong> window appears, change the board <strong>Type</strong> from <strong>All</strong> to <strong>Contributed</strong> (1).  Next, find and select the <strong>ATTinyCore</strong> board (2).  Then, click the <strong>Install</strong> button (3).  And finally, close the Board Manager window by clicking the <strong>Close</strong> button (4). </p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-board-selection.png"><img loading="lazy" decoding="async" width="782" height="440" src="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-board-selection.png" alt="Screenshot of an annotated Arduino IDE Board Manager showing the steps for installing ATtiny boards" class="wp-image-4962" srcset="https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-board-selection.png 782w, https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-board-selection-300x169.png 300w, https://cyberblogspot.com/wp-content/uploads/2022/01/arduino-ide-board-selection-768x432.png 768w" sizes="auto, (max-width: 782px) 100vw, 782px" /></a><figcaption>Annotated Arduino IDE Board Manager Window</figcaption></figure></div>


<h2 class="wp-block-heading">Select the Board</h2>



<p>From the main menu, open<strong> Tools &#8211;&gt; Board &#8211;&gt; ATTinyCore</strong> and then select the appropriate ATtiny board for your microcontroller.  </p>



<p>Note that in selecting a board, you will have to choose among <strong>No bootloader</strong>, <strong>Optiboot</strong>, and <strong>Micronucleus</strong>.  First, choose <strong>No bootloader</strong> if you are programming with an AVR programmer.  Second, select <strong>Optiboot</strong> if your ATtiny MCU has been previously burned with an Optiboot bootloader and it is wired as an Optiboot serial device.  Finally, select <strong>Micronucleus</strong> if the MCU has been flushed with a Micronucleus bootloader and connected as a USB device.  For more information about these three (3) programming modes, please see <a href="https://cyberblogspot.com/how-to-program-attiny85-with-arduino-ide/" target="_blank" rel="noreferrer noopener">How to Program ATtiny85 in Arduino IDE</a>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-board-menu-1.png"><img loading="lazy" decoding="async" width="946" height="618" src="https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-board-menu-1.png" alt="Screenshot of Arduino IDE showing the list of boards supported by the installed ATTinyCore Arduino core" class="wp-image-5034" srcset="https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-board-menu-1.png 946w, https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-board-menu-1-300x196.png 300w, https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-board-menu-1-768x502.png 768w" sizes="auto, (max-width: 946px) 100vw, 946px" /></a><figcaption>Arduino IDE Showing the List of ATTinyCore Supported Boards</figcaption></figure></div>


<p>The next and final step depends on your chosen programming mode.  If you select <strong>No bootloader</strong>, then you will need to choose a programmer.  Open <strong>Tools &#8211;&gt; Programmer</strong> and select the AVR programmer you are going to use.  You may also have to specify the <strong>Port</strong> if your AVR programmer uses the serial port.  Although most AVR programmers like the USBasp and USBtinyISP are USB devices and you won&#8217;t have to specify the port.   </p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-programmer-menu-1.png"><img loading="lazy" decoding="async" width="959" height="618" src="https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-programmer-menu-1.png" alt="Screenshot of Arduino IDE showing the list of AVR programmers supported by the ATTinyCore" class="wp-image-5037" srcset="https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-programmer-menu-1.png 959w, https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-programmer-menu-1-300x193.png 300w, https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-programmer-menu-1-768x495.png 768w" sizes="auto, (max-width: 959px) 100vw, 959px" /></a><figcaption>Arduino IDE Showing the List of ATTinyCore Supported AVR Programmers</figcaption></figure></div>


<p>If you choose <strong>Optiboot</strong>, you need to specify the serial port.  Open <strong>Tools &#8211;&gt; Port</strong> and select the port for your ATtiny microcontroller.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-port-select.png"><img loading="lazy" decoding="async" width="802" height="618" src="https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-port-select.png" alt="Screenshot of Arduino IDE showing how to select the serial port" class="wp-image-5035" srcset="https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-port-select.png 802w, https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-port-select-300x231.png 300w, https://cyberblogspot.com/wp-content/uploads/2022/02/arduino-ide-attinycore-port-select-768x592.png 768w" sizes="auto, (max-width: 802px) 100vw, 802px" /></a><figcaption>Arduino IDE Showing Port Selection</figcaption></figure></div>


<p>Finally, if you choose <strong>Micronucleus</strong>, you also don&#8217;t have to specify the port because Micronucleus uses a virtual USB device.</p>



<p>Now, you&#8217;re ready to start programming your ATtiny microcontroller!</p>



<h2 class="wp-block-heading">References on How to Install ATTinyCore on Arduino IDE</h2>



<p><a href="https://cyberblogspot.com/how-to-install-arduino-ide-on-windows-10/" target="_blank" rel="noreferrer noopener">How to Install Arduino IDE on Windows 10</a><br><a href="https://cyberblogspot.com/how-to-program-attiny85-with-arduino-ide/" target="_blank" rel="noreferrer noopener">How to Program ATtiny85 with Arduino IDE</a><br><a href="https://cyberblogspot.com/digispark-usb-device-not-recognized/" target="_blank" rel="noreferrer noopener">Digispark USB Device Not Recognized</a><br><a href="https://github.com/SpenceKonde/ATTinyCore" target="_blank" rel="noreferrer noopener">ATTinyCore</a> &#8211; ATtiny Arduino core by Spence Konde</p>
<p>The post <a href="https://cyberblogspot.com/how-to-install-attinycore-on-arduino-ide/">How to Install ATTinyCore on Arduino IDE</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/how-to-install-attinycore-on-arduino-ide/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
