<?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>USB-to-Serial Converter Archives - CyberBlogSpot</title>
	<atom:link href="https://cyberblogspot.com/tag/usb-to-serial-converter/feed/" rel="self" type="application/rss+xml" />
	<link>https://cyberblogspot.com/tag/usb-to-serial-converter/</link>
	<description>Not just another blogspot site</description>
	<lastBuildDate>Mon, 06 Feb 2023 20:09:14 +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>USB-to-Serial Converter Archives - CyberBlogSpot</title>
	<link>https://cyberblogspot.com/tag/usb-to-serial-converter/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>ESP-01 and ESP-01S Pinout and Configuration</title>
		<link>https://cyberblogspot.com/esp-01-and-esp-01s-pinout-and-configuration/</link>
					<comments>https://cyberblogspot.com/esp-01-and-esp-01s-pinout-and-configuration/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 06 Feb 2023 19:59:12 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino Board ESP-01 Programmer]]></category>
		<category><![CDATA[DIY ESP-01 Programmer]]></category>
		<category><![CDATA[ESP-01]]></category>
		<category><![CDATA[ESP-01 Adapter]]></category>
		<category><![CDATA[ESP-01 ESP8266]]></category>
		<category><![CDATA[ESP-01 Pinout]]></category>
		<category><![CDATA[ESP-01 Programmer]]></category>
		<category><![CDATA[ESP-01 Specification]]></category>
		<category><![CDATA[ESP-01 USB-to-serial converter programmer]]></category>
		<category><![CDATA[ESP-01S]]></category>
		<category><![CDATA[ESP-01S Pinout]]></category>
		<category><![CDATA[ESP8266]]></category>
		<category><![CDATA[Pinout]]></category>
		<category><![CDATA[Specification]]></category>
		<category><![CDATA[USB-to-Serial Converter]]></category>
		<guid isPermaLink="false">https://cyberblogspot.com/?p=4635</guid>

					<description><![CDATA[<p>ESP-01 and its latest version ESP-01S are popular microcontrollers with Wi-Fi networking capabilities. They are part of the ESP8266 family of microcontrollers manufactured by Espressif Systems. In this article, we will learn the ESP-01 and ESP-01S pinout and configuration in actual applications. ESP-01 Wi-Fi Module Specifications Power Supply:Voltage 3.0V ~ 3.6VCurrent &#62;300mA Current Consumption: Continuous&#8230;&#160;<a href="https://cyberblogspot.com/esp-01-and-esp-01s-pinout-and-configuration/" rel="bookmark">Read More &#187;<span class="screen-reader-text">ESP-01 and ESP-01S Pinout and Configuration</span></a></p>
<p>The post <a href="https://cyberblogspot.com/esp-01-and-esp-01s-pinout-and-configuration/">ESP-01 and ESP-01S Pinout and Configuration</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-full"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-1.png"><img fetchpriority="high" decoding="async" width="502" height="302" src="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-1.png" alt="A picture of an ESP-01 module showing the pinout." class="wp-image-4638" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-1.png 502w, https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-1-300x180.png 300w" sizes="(max-width: 502px) 100vw, 502px" /></a><figcaption class="wp-element-caption">Figure 1.  ESP-01 ESP8266 Microcontroller Board Pinout</figcaption></figure></div>


<p>ESP-01 and its latest version ESP-01S are popular microcontrollers with Wi-Fi networking capabilities.  They are part of the ESP8266 family of microcontrollers manufactured by Espressif Systems.  In this article, we will learn the ESP-01 and ESP-01S pinout and configuration in actual applications.</p>



<h2 class="wp-block-heading">ESP-01 Wi-Fi Module Specifications</h2>



<p><strong>Power Supply:</strong><br>Voltage 3.0V ~ 3.6V<br>Current &gt;300mA</p>



<p><strong>Current Consumption: </strong><br>Continuous Transmission: Average: ~ 71mA, Peak: 300mA<br>Modem Sleep: ~20mA<br>Light Sleep: ~2mA<br>Deep Sleep: ~0.02mA</p>



<p><strong>SPI Flash Memory:</strong><br>Default 8Mbit (1MB)</p>



<p><strong>Interface:</strong><br>UART/GPIO</p>



<p><strong>IO Port:</strong><br>2</p>



<p><strong>UART Baud Rate:</strong><br>Support 300 ~ 4608000 bps<br>Default 115200 bps</p>



<p><strong>Frequency Range:</strong><br>2412 ~ 2484MHz</p>



<p><strong>Transmit Power:</strong><br>802.11b: 16±2 dBm (@11Mbps)<br>802.11g: 14±2 dBm (@54Mbps)<br>802.11n: 13±2 dBm (@HT20, MCS7)</p>



<p><strong>Receiving Sensitivity:</strong><br>CCK, 1 Mbps : -90dBm<br>CCK, 11 Mbps: -85dBm<br>6 Mbps (1/2 BPSK): -88dBm<br>54 Mbps (3/4 64-QAM): -70dBm<br>HT20, MCS7 (65 Mbps, 72.2 Mbps): -67dBm</p>



<p>For a complete specifications, you may refer to the <a href="http://esp-01_product_specification_en.pdf" target="_blank" rel="noreferrer noopener">ESP-01 Product Specification PDF</a>.</p>



<h2 class="wp-block-heading">ESP-01 and ESP-01S Pinout  </h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="has-text-align-center">Have you just bought a new ESP-01 Wi-Fi module?  Take a look at<br><a href="https://cyberblogspot.com/how-to-test-an-esp-01-esp8266-module/" target="_blank" rel="noreferrer noopener">How to Test an ESP-01 ESP8266 Module</a></p>



<p class="has-text-align-center"><br>Learn how to differentiate between ESP-01 and ESP-01S Wi-Fi modules, see:<br><a href="https://cyberblogspot.com/difference-between-esp-01-and-esp-01s/" target="_blank" rel="noreferrer noopener">Difference Between ESP-01 and ESP-01S</a></p>
</blockquote>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-1.png"><img decoding="async" width="502" height="302" src="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-1.png" alt="" class="wp-image-4638" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-1.png 502w, https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-1-300x180.png 300w" sizes="(max-width: 502px) 100vw, 502px" /></a><figcaption class="wp-element-caption">Figure 2.  ESP-01 Module Pinout A</figcaption></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-b.png"><img decoding="async" width="502" height="302" src="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-b.png" alt="Pinout of ESP-01 and ESP-01S with the male header pins on the right." class="wp-image-4640" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-b.png 502w, https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-b-300x180.png 300w" sizes="(max-width: 502px) 100vw, 502px" /></a><figcaption class="wp-element-caption">Figure 3.  ESP-01 Module Pinout B</figcaption></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-c.png"><img loading="lazy" decoding="async" width="402" height="526" src="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-c.png" alt="Picture showing the pinout of ESP-01 and ESP-01S with the board oriented so that the header pins are at the bottom." class="wp-image-4644" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-c.png 402w, https://cyberblogspot.com/wp-content/uploads/2021/04/esp-01-pinout-c-229x300.png 229w" sizes="auto, (max-width: 402px) 100vw, 402px" /></a><figcaption class="wp-element-caption">Figure 4.  ESP-01 Module Pinout C</figcaption></figure></div>


<h2 class="wp-block-heading">ESP-01 Pin Descriptions</h2>



<p><strong>TX </strong>&#8211; UART0 data send (transmit) pin, also known as <strong>GPIO1</strong>.<br><strong>RX</strong> &#8211; UART0 data receive pin, also known as <strong>GPIO3</strong>.<br><strong>CH_PD</strong> &#8211; Chip Power Down (also known as <strong>CH_EN</strong> or Chip Enable) &#8211; Chip enable pin, active high <br><strong>RST</strong> &#8211; External reset pin, active low<br><strong>GPIO2</strong> &#8211; General Purpose Input / Output<br><strong>GPIO0</strong> &#8211; General Purpose Input / Output<br><strong>VCC</strong> &#8211; +3.3 Volts Supply Positive <br><strong>GND</strong> &#8211; Ground &#8211; Supply negative</p>



<h2 class="wp-block-heading">ESP-01 Module Breadboarding and Adapters</h2>



<p>When breadboarding, you can not insert the ESP-01 module as it is.  A few years ago, you do all sort of tricks to breadboard an ESP-01 module, from bending the header pins to making your own DIY adapter.  Luckily, now you can buy a cheap breadboard adapter for the ESP-01 module.  See Figure 5.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-breadboard-adapter-jpg.webp"><img loading="lazy" decoding="async" width="402" height="342" src="https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-breadboard-adapter-jpg.webp" alt="A picture of an ESP-01 and ESP-01S adapter module with an ESP-01 board inserted into it." class="wp-image-6140" srcset="https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-breadboard-adapter-jpg.webp 402w, https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-breadboard-adapter-300x255.webp 300w" sizes="auto, (max-width: 402px) 100vw, 402px" /></a><figcaption class="wp-element-caption">Figure 5.  Breadboard Adapter for ESP-01 Module</figcaption></figure></div>


<p>If you will be connecting the ESP-01 board to an Arduino board, you must remember two (2) things:</p>



<ul class="wp-block-list">
<li>Do not supply the ESP-01 module with the 3.3V output from the Arduino board &#8211; the ESP-01 module, as per specification above, may require up to 300mA of current.  The 3.3V regulator on the Arduino board may overheat and may become damaged. </li>



<li>Provide logic level translation between the ESP-01 and the Arduino board &#8211; the Arduino board uses 5V logic while the ESP-01 module uses 3.3V logic. </li>
</ul>



<p>A good ESP-01 adapter that can satisfy the requirements for interfacing with Arduino boards is shown in Figure 6.  It has a built-in 3.3V regulator and two (2) bi-directional logic level converters for the RX and TX pins.  The schematic diagram for the adapter is shown in Figure 7.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-adapter-with-voltage-regulator-and-logic-translator-400-jpg.webp"><img loading="lazy" decoding="async" width="402" height="334" src="https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-adapter-with-voltage-regulator-and-logic-translator-400-jpg.webp" alt="Picture of another ESP-01 and ESP-01S adapter that is complete with a 3.3V voltage regulator and bi-directional logic level converters." class="wp-image-6142" srcset="https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-adapter-with-voltage-regulator-and-logic-translator-400-jpg.webp 402w, https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-adapter-with-voltage-regulator-and-logic-translator-400-300x249.webp 300w" sizes="auto, (max-width: 402px) 100vw, 402px" /></a><figcaption class="wp-element-caption">Figure 6.  ESP-01 Adapter with Voltage Regulator and Logic Translator</figcaption></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-adapter-schematic-diagram-676-jpg.webp"><img loading="lazy" decoding="async" src="https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-adapter-schematic-diagram-676-jpg.webp" alt="Schematic diagram of the ESP-01 and ESP-01S Wi-Fi modules adapter shown in Figure 6. " class="wp-image-6144" width="507" height="346" srcset="https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-adapter-schematic-diagram-676-jpg.webp 676w, https://cyberblogspot.com/wp-content/uploads/2023/02/esp-01-adapter-schematic-diagram-676-300x205.webp 300w" sizes="auto, (max-width: 507px) 100vw, 507px" /></a><figcaption class="wp-element-caption">Figure 7.  Schematic Diagram of ESP-01 Adapter</figcaption></figure></div>


<h2 class="wp-block-heading">ESP-01 Programmers</h2>



<p><strong>ESP-01 USB-to-Serial Converter Programmer Module </strong></p>



<p>Unlike the other ESP8266 boards, ESP-01 boards need a programmer to be uploaded with programs or sketches from the Arduino IDE.  An inexpensive programmer is shown below in Figure 8.  The programmer uses a Silabs 2104 serial to USB converter chip.  With this programmer, you just plug it into your computer&#8217;s USB port, select the proper COM port and start uploading sketches.</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="A USB-to-serial converter programmer for the ESP-01 and ESP-01S modules." 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 8.  ESP-01 Programmer or Flasher</figcaption></figure></div>


<p><strong>DIY USB-to-Serial Converter Programmer</strong></p>



<p>If you do not have a programmer module but you have an available USB-to-serial converter, you can wire it up as an ESP-01 programmer.  The schematic diagram of a DIY programmer is shown in Figure 9.  With this programmer, you need to put the ESP-01 module into programming mode before uploading a sketch.  This is done by holding down the Flash switch, pressing and releasing the Reset switch, and then releasing the Flash switch.   </p>



<figure class="wp-block-image size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/ESP-01-flasher-with-cp2102-1K.png"><img loading="lazy" decoding="async" width="1002" height="402" src="https://cyberblogspot.com/wp-content/uploads/2021/04/ESP-01-flasher-with-cp2102-1K.png" alt="Schematic diagram of a DIY USB-to-serial converter programmer for the ESP-01/ESP-01S." class="wp-image-4694" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/ESP-01-flasher-with-cp2102-1K.png 1002w, https://cyberblogspot.com/wp-content/uploads/2021/04/ESP-01-flasher-with-cp2102-1K-300x120.png 300w, https://cyberblogspot.com/wp-content/uploads/2021/04/ESP-01-flasher-with-cp2102-1K-768x308.png 768w" sizes="auto, (max-width: 1002px) 100vw, 1002px" /></a><figcaption class="wp-element-caption">Figure 9.  DIY USB-to-Serial Converter Programmer</figcaption></figure>



<p>Shown below in Figures 10, 11, and 12 is my DIY ESP-01 programmer.  The USB-to-serial converter connects to the programmer board via the 4-pin male header on the board.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/DIY-esp-01-flasher-500-rotated-e1619233048704.jpg"><img loading="lazy" decoding="async" width="500" height="412" src="https://cyberblogspot.com/wp-content/uploads/2021/04/DIY-esp-01-flasher-500-rotated-e1619233048704.jpg" alt="Picture of an assembled DIY programmer for the ESP-01 ESP8266 Wi-Fi modules." class="wp-image-4711" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/DIY-esp-01-flasher-500-rotated-e1619233048704.jpg 500w, https://cyberblogspot.com/wp-content/uploads/2021/04/DIY-esp-01-flasher-500-rotated-e1619233048704-300x247.jpg 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><figcaption class="wp-element-caption">Figure 10.  My DIY ESP-01 Programmer </figcaption></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/flasher-with-esp01-500-1.jpg"><img loading="lazy" decoding="async" width="500" height="356" src="https://cyberblogspot.com/wp-content/uploads/2021/04/flasher-with-esp01-500-1.jpg" alt="Picture of a DIY USB-to-serial converter programmer with an ESP-01 module inserted on the female header." class="wp-image-4708" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/flasher-with-esp01-500-1.jpg 500w, https://cyberblogspot.com/wp-content/uploads/2021/04/flasher-with-esp01-500-1-300x214.jpg 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /></a><figcaption class="wp-element-caption">Figure 11.  My DIY ESP-01 Programmer with an ESP-01 Module</figcaption></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2021/04/cp2102-usb-serial-converter.jpg"><img loading="lazy" decoding="async" width="502" height="471" src="https://cyberblogspot.com/wp-content/uploads/2021/04/cp2102-usb-serial-converter.jpg" alt="Picture of an USB-to-serial converter for use with ESP-01 DIY programmer." class="wp-image-4657" srcset="https://cyberblogspot.com/wp-content/uploads/2021/04/cp2102-usb-serial-converter.jpg 502w, https://cyberblogspot.com/wp-content/uploads/2021/04/cp2102-usb-serial-converter-300x281.jpg 300w" sizes="auto, (max-width: 502px) 100vw, 502px" /></a><figcaption class="wp-element-caption">Figure 12.  USB-to-serial Converter</figcaption></figure></div>


<p><strong>Arduino Board as ESP-01 Programmer</strong><br>Another option for an ESP-01 programmer is to use an Arduino board.  You may use any available Arduino board such as Arduino Uno, Arduino Nano, etc.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://cyberblogspot.com/wp-content/uploads/2023/02/arduino-uno-as-esp-01-programmer.png"><img loading="lazy" decoding="async" width="1024" height="366" src="https://cyberblogspot.com/wp-content/uploads/2023/02/arduino-uno-as-esp-01-programmer-1024x366.png" alt="Schematic diagram of Arduino Uno used as an ESP-01 programmer that includes the pinout of both the ESP-01 and the Arduino Uno board." class="wp-image-6147" srcset="https://cyberblogspot.com/wp-content/uploads/2023/02/arduino-uno-as-esp-01-programmer-1024x366.png 1024w, https://cyberblogspot.com/wp-content/uploads/2023/02/arduino-uno-as-esp-01-programmer-300x107.png 300w, https://cyberblogspot.com/wp-content/uploads/2023/02/arduino-uno-as-esp-01-programmer-768x275.png 768w, https://cyberblogspot.com/wp-content/uploads/2023/02/arduino-uno-as-esp-01-programmer.png 1202w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Figure 13.  Schematic Diagram of Arduino Uno as ESP-01 Programmer</figcaption></figure></div>


<p>The idea here is to use the Arduino board&#8217;s built-in USB-to-serial converter.  The schematic diagram in Figure 13 is the same as the DIY ESP-01 programmer in Figure 9, but the USB-to-serial converter was replaced with an Arduino Uno.  </p>



<p>As previously discussed above, the 3.3V output from the Arduino board should not be used.  Instead, a 3.3V voltage regulator was provided for the ESP-01 module.  Also, a logic level converter was used consisting of a 2.2K resistor in series with a 3.3K resistor acting as a voltage divider.  This protects the RX pin of the ESP-01 module from being exposed to a 5V signal from the Arduino board.  Note that the TX pin of the ESP-01 module was connected directly to the TX pin of the Arduino board.  We can do away with the logic level converter because the TX pin is acting as an output (outgoing signal).</p>



<p>You may have noticed that the TX and RX pins of the Arduino board are connected to the corresponding TX and RX pins of the ESP-01 module.  But in the DIY programmer in Figure 9, the TX and RX terminals are cross-wired.  That is, the TX pin of the USB-to-serial converter is connected to the RX pin of the ESP-01 module  and ,vice versa, the RX pin of the USB-to-serial converter is connected to the TX pin of the ESP-01 module.</p>



<p>If you want to find out why the Arduino board&#8217;s RX and TX pins are wired straight thru and not crossed over with the ESP-01 board, consult an Arduino board schematic and look at how the MCU chip and the USB-to-serial converter chip are wired.  I am leaving this one as an exercise for the reader.  </p>



<h2 class="wp-block-heading">Related Articles on ESP-01 and ESP-01S Pinout and Configuration</h2>



<p><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-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-test-an-esp-01-esp8266-module/" target="_blank" rel="noreferrer noopener">How to Test an ESP-01 ESP8266 Module</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/how-to-save-and-restore-esp8266-and-esp32-firmware/" target="_blank" rel="noreferrer noopener">How to Save and Restore ESP8266 and ESP32 Firmware</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-test-a-nodemcu-v3-esp8266-dev-board/" target="_blank" rel="noreferrer noopener">How to Test a NodeMCU V3 ESP8266 Dev Board</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 ESP-01 and ESP-01S Pinout and Configuration</h2>



<p><a href="https://docs.ai-thinker.com/_media/esp8266/docs/esp-01_product_specification_en.pdf" target="_blank" rel="noreferrer noopener">ESP-01 Specification</a><br><a href="https://www.microchip.ua/wireless/esp01.pdf" target="_blank" rel="noreferrer noopener">ESP-01 Datasheet</a> </p>
<p>The post <a href="https://cyberblogspot.com/esp-01-and-esp-01s-pinout-and-configuration/">ESP-01 and ESP-01S Pinout and Configuration</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/esp-01-and-esp-01s-pinout-and-configuration/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Enable Serial Monitor on Digispark ATtiny85</title>
		<link>https://cyberblogspot.com/how-to-enable-serial-monitor-on-digispark-attiny85/</link>
					<comments>https://cyberblogspot.com/how-to-enable-serial-monitor-on-digispark-attiny85/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 18 Jan 2023 01:14:31 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino IDE]]></category>
		<category><![CDATA[ATtiny85]]></category>
		<category><![CDATA[CH304]]></category>
		<category><![CDATA[COM Port]]></category>
		<category><![CDATA[CP2104]]></category>
		<category><![CDATA[Digispark]]></category>
		<category><![CDATA[Digispark ATtiny85]]></category>
		<category><![CDATA[Digispark ATtiny85 Development Board]]></category>
		<category><![CDATA[FTDI]]></category>
		<category><![CDATA[PL2303]]></category>
		<category><![CDATA[Serial Monitor]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[USB Interface]]></category>
		<category><![CDATA[USB-to-Serial Converter]]></category>
		<category><![CDATA[USB-to-Serial TTL Converter]]></category>
		<category><![CDATA[USB-to-UART Converter]]></category>
		<guid isPermaLink="false">https://cyberblogspot.com/?p=5739</guid>

					<description><![CDATA[<p>The Serial Monitor in Arduino IDE is an indispensable tool for debugging purposes. However, although a Digispark ATtiny85 development board has a USB interface, the Serial Monitor does not work with it. The main reason is that the USB interface in the Digispark board is not a serial COM port. The second reason is that&#8230;&#160;<a href="https://cyberblogspot.com/how-to-enable-serial-monitor-on-digispark-attiny85/" rel="bookmark">Read More &#187;<span class="screen-reader-text">How to Enable Serial Monitor on Digispark ATtiny85</span></a></p>
<p>The post <a href="https://cyberblogspot.com/how-to-enable-serial-monitor-on-digispark-attiny85/">How to Enable Serial Monitor on Digispark ATtiny85</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>The Serial Monitor in Arduino IDE is an indispensable tool for debugging purposes.  However, although a Digispark ATtiny85 development board has a USB interface, the Serial Monitor does not work with it.  The main reason is that the USB interface in the Digispark board is not a serial COM port.  The second reason is that the ATtiny85 chip does not have a UART port.  And third, the Digispark board lacks a UART to USB bridge circuitry to translate UART signals to USB signals.  In this article, we will take a look at how to enable the Serial Monitor when using a Digispark ATtiny85 development board.</p>



<p>To enable the Arduino IDE Serial Monitor on a Digispark ATtiny85 board, connect a USB-to-Serial converter.  Then use the SoftwareSerial library in the Arduino IDE to create a UART port on the ATtiny85 chip.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/digispark-attiny85-usb-to-serial-converter-fritzing-bb.png"><img loading="lazy" decoding="async" width="802" height="542" src="https://cyberblogspot.com/wp-content/uploads/2023/01/digispark-attiny85-usb-to-serial-converter-fritzing-bb.png" alt="Picture of Fritzing breadboard diagram showing how to connect the Digispark ATtiny85 board to a USB to serial converter to enable the serial monitor when working with Digispark ATtiny85" class="wp-image-5845" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/digispark-attiny85-usb-to-serial-converter-fritzing-bb.png 802w, https://cyberblogspot.com/wp-content/uploads/2023/01/digispark-attiny85-usb-to-serial-converter-fritzing-bb-300x203.png 300w, https://cyberblogspot.com/wp-content/uploads/2023/01/digispark-attiny85-usb-to-serial-converter-fritzing-bb-768x519.png 768w" sizes="auto, (max-width: 802px) 100vw, 802px" /></a><figcaption class="wp-element-caption">Figure 1.  Fritzing Breadboard Diagram of Digispark ATtiny85 with a USB-to-Serial Converter</figcaption></figure></div>


<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="has-text-align-center">For Digispark ATtiny85 pinout guide, kindly see <a href="https://cyberblogspot.com/digispark-attiny85-pinout-and-configuration/" target="_blank" rel="noreferrer noopener">Digispark ATtiny85 Pinout and Configuration</a>.</p>
</blockquote>



<p></p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/digispark-attiny85-usb-to-serial-converter.png"><img loading="lazy" decoding="async" width="1002" height="477" src="https://cyberblogspot.com/wp-content/uploads/2023/01/digispark-attiny85-usb-to-serial-converter.png" alt="Schematic diagram for connecting the Digispark ATtiny85 board to a USB to UART converter to enable the serial monitor of the Arduino IDE." class="wp-image-5754" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/digispark-attiny85-usb-to-serial-converter.png 1002w, https://cyberblogspot.com/wp-content/uploads/2023/01/digispark-attiny85-usb-to-serial-converter-300x143.png 300w, https://cyberblogspot.com/wp-content/uploads/2023/01/digispark-attiny85-usb-to-serial-converter-768x366.png 768w" sizes="auto, (max-width: 1002px) 100vw, 1002px" /></a><figcaption class="wp-element-caption">Figure 2.  Schematic Diagram of Digispark ATtiny85 and USB-to-Serial Converter Connection </figcaption></figure></div>


<p></p>



<h2 class="wp-block-heading">Step by Step Guide For Serial Monitor</h2>



<p><strong>STEP 1 &#8211; Connect a USB-to-Serial Converter</strong></p>



<p>First, connect a USB-to-serial converter to the Digispark ATtiny85 board as shown in Figure 1 and Figure 2.  </p>



<p>There are many inexpensive USB-to-serial converters on the Internet.  Examples of USB-to-serial converters are shown below in Figure 3.  These converters are sometimes referred to as USB-to-serial TTL converters or USB-to-UART converters.  Also, the converters use a variety of chips, hence, they may be referred to by their chip names.  Some of the popular USB-to-serial chip names that you may encounter are FTDI, CP2104, CH304, and PL2303.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/usb-to-serial-converters-jpg.webp"><img loading="lazy" decoding="async" width="502" height="402" src="https://cyberblogspot.com/wp-content/uploads/2023/01/usb-to-serial-converters-jpg.webp" alt="Picture of the different types of USB-to-serial converter used for activating the serial monitor on Digispark ATtiny85 when working with Arduino IDE" class="wp-image-5849" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/usb-to-serial-converters-jpg.webp 502w, https://cyberblogspot.com/wp-content/uploads/2023/01/usb-to-serial-converters-300x240.webp 300w" sizes="auto, (max-width: 502px) 100vw, 502px" /></a><figcaption class="wp-element-caption">Figure 3.  USB-to-Serial Converters</figcaption></figure></div>


<p></p>



<p><strong>STEP 2 &#8211; Install the USB-to-Serial Converter Device Driver</strong></p>



<p>Download and install the device driver for your USB-to-serial converter.  Because USB-to-serial converters use different chips, you need to search the internet for the device driver for your particular USB-to-serial converter.</p>



<p>You can do a quick test if you have the right device driver installed.  Open the Arduino IDE and go to the Tools/Port menu.  You should see an additional port instead on only COM1 on the Serial Ports list when you plug in your USB-to-serial converter.  Please see Figure 4.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-port-list.png"><img loading="lazy" decoding="async" width="802" height="520" src="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-port-list.png" alt="Screenshot of the Arduino IDE showing the serial COM ports list." class="wp-image-5851" srcset="https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-port-list.png 802w, https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-port-list-300x195.png 300w, https://cyberblogspot.com/wp-content/uploads/2023/01/arduino-ide-serial-port-list-768x498.png 768w" sizes="auto, (max-width: 802px) 100vw, 802px" /></a><figcaption class="wp-element-caption">Figure 4.  Arduino IDE Showing Serial Ports List</figcaption></figure></div>


<p></p>



<p><strong>STEP 3 &#8211; Install the Board Core ATTinycore by Spence Konde</strong></p>



<p>Although we may use the original Digistump AVR board core, I prefer to use the ATTinyCore as it supports almost all of the ATtiny line of AVR chips.  Additionally, the ATTinyCore gives us the option to program the ATtiny85 in several ways: no bootloader, Optiboot, and Micronucleus (Digispark) modes.  If you need help in installing the ATTinyCore, please see <a href="https://cyberblogspot.com/how-to-install-attinycore-on-arduino-ide/" target="_blank" rel="noreferrer noopener">How to Install ATTinyCore on Arduino IDE</a>.</p>



<p><strong>STEP 4 &#8211; Use Software Serial to Create UART Ports on ATtiny85</strong></p>



<p>Open the Arduino IDE and upload the sketch shown below.  If you need help in uploading the sketch using the board core ATtinyCore, you may visit <a href="https://cyberblogspot.com/how-to-program-digispark-attiny85-board-with-arduino-ide/" target="_blank" rel="noreferrer noopener">How to Program Digispark ATtiny85 Board with Arduino IDE</a>.</p>



<p><strong>IMPORTANT NOTE</strong><br>Before hitting the Upload button to install the sketch, unplug <strong>both</strong> USB cables for the Digispark board and the USB-to-serial converter.  Plug in the USB cable for the Digispark board when prompted by the Arduino IDE.  When the sketch upload is done, unplug the USB cable from the Digispark board.  Connect the USB cable for the USB-to-serial converter and proceed to STEP 5 for testing the Serial Monitor. </p>



<pre class="EnlighterJSRAW">/* cyberblogspot.com 15Jan2023 */

#include &quot;SoftwareSerial.h&quot;

SoftwareSerial mySerial(1, 0);  //RX, TX  PB1, PB0

void setup() { 
  mySerial.begin(19200);
  
  mySerial.println(&quot;Change baud rate to 19200&quot;);
  mySerial.println(&quot;Type something and press ENTER&quot;);
}

void loop() {
  if (mySerial.available()){
    mySerial.println(mySerial.readString());
  }
}</pre>



<p></p>



<p>The sketch above needs no explanation.  Simply include the library header file for the SoftwareSerial library.  You do not have to download the SofwareSerial library as it should come with the ATtinyCore board core installation.</p>



<p>Regarding the code creating the SoftwareSerial object in line 5, </p>



<p>SoftwareSerial mySerial(1, 0);  //RX, TX  PB1, PB0</p>



<p>you may use any two (2) available ATtiny85 ports available.  In this case, I used PB1 for RX (receiver) and PB0 for TX (transmitter).</p>



<p><strong>STEP 5 &#8211; Test the Serial Monitor</strong></p>



<p>After uploading the sketch to the Digispark ATtiny85 board, unplug the USB cable from the Digispark board.  Plug in the USB cable for the USB-to-serial converter. </p>



<p>Then, select the correct COM port for your USB-to-serial converter in the Arduino IDE &#8220;Tools/Port&#8221; menu.  Test the program and you should now be able to use the Serial Monitor on the Digispark ATtiny85 board.</p>



<h2 class="wp-block-heading">References on How to Enable Serial Monitor on Digispark ATtiny85</h2>



<p><a href="https://en.wikipedia.org/wiki/USB-to-serial_adapter#:~:text=Most%20commonly%20the%20USB%20data,RS423%20adapters%20are%20less%20common." target="_blank" rel="noreferrer noopener">USB-to-serial adapter </a> &#8211; Wikipedia article on USB to Serial Converter<br><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-install-attinycore-on-arduino-ide/" target="_blank" rel="noreferrer noopener">How to Install ATTinyCore on Arduino IDE</a><br><a href="https://cyberblogspot.com/how-to-use-arduino-as-isp-programmer/" target="_blank" rel="noreferrer noopener">How to Use Arduino as ISP Programmer</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-attiny85-pinout-and-configuration/" target="_blank" rel="noreferrer noopener">Digispark ATtiny85 Pinout and Configuration</a><br><a href="https://cyberblogspot.com/how-to-program-digispark-attiny85-board-with-arduino-ide/" target="_blank" rel="noreferrer noopener">How to Program Digispark ATtiny85 Board 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://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>
<p>The post <a href="https://cyberblogspot.com/how-to-enable-serial-monitor-on-digispark-attiny85/">How to Enable Serial Monitor on Digispark ATtiny85</a> appeared first on <a href="https://cyberblogspot.com">CyberBlogSpot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cyberblogspot.com/how-to-enable-serial-monitor-on-digispark-attiny85/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
