{"id":228,"date":"2015-03-17T13:59:24","date_gmt":"2015-03-17T20:59:24","guid":{"rendered":"http:\/\/internetofhomethings.com\/homethings\/?p=228"},"modified":"2015-03-18T13:23:20","modified_gmt":"2015-03-18T20:23:20","slug":"esp8266-power-and-serial-interface","status":"publish","type":"post","link":"https:\/\/internetofhomethings.com\/homethings\/?p=228","title":{"rendered":"ESP8266 Power and Serial Interface"},"content":{"rendered":"<p>So now you&#8217;ve gotten your hands on an ultra low-cost ESP8266 module.<\/p>\n<p>Your ready to get started&#8230;<\/p>\n<p>But what else do you need?<\/p>\n<p>The only other hardware you need now to make this thing functional is an interface for development. This interface must support firmware flashing and testing. It must also provide a power source. Fortunately, there are several low-cost options available to satisfy these basic needs.<\/p>\n<p>What you need is a USB to serial converter. Of the models available&#8230;and there are several unique ones available, it is essential that you choose one that provides a 3.3V output required by the ESP8266. This output is not present on all converters so you must make sure you select one that does. The standard 5Vdc USB output is too high for the chip, and will most likely destroy it. And nobody wants another brick in the stash of gadgets!<\/p>\n<p>From a brief search on Amazon, I found a device that met the requirements. My device uses a CP210x chip-set. While I could have purchased a cheaper unit from an Asian supplier, this was still a decent value at less than 4 USD and with fast-free shipping, I got the device in days instead of months.<\/p>\n<p>Making prototyping a snap, a 5 pin ribbon cable is included with female contacts that can be attached directly to male breadboard jumpers.<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/USB2TTL.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-231\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/USB2TTL-300x300.jpg\" alt=\"ESP8266 Power and Serial Interface\" width=\"300\" height=\"300\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/USB2TTL-300x300.jpg 300w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/USB2TTL-150x150.jpg 150w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/USB2TTL.jpg 1001w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>From this\u00a0USB plug-in module, 5 signals are provided:<\/p>\n<ul>\n<ul>\n<ul>\n<li>5 Vdc<\/li>\n<li>3.3 Vdc<\/li>\n<li>Ground<\/li>\n<li>Serial Tx<\/li>\n<li>Serial Rx<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<p>But remember, the 5Vdc output\u00a0must\u00a0not be used when interfacing with the ESP8266.<\/p>\n<p>Since I am using a Windows 7 OS PC for development, a compatible driver was needed to make this device functional. For this device, the driver\u00a0can be found at:<br \/>\n<a title=\"USB to Serial Bridge Driver\" href=\"https:\/\/www.silabs.com\/products\/mcu\/Pages\/USBtoUARTBridgeVCPDrivers.aspx\">https:\/\/www.silabs.com\/products\/mcu\/Pages\/USBtoUARTBridgeVCPDrivers.aspx<\/a><br \/>\nThere are drivers available there for Windows, Windows CE, Linux, and Macintosh.<br \/>\nDriver installation is straightforward. Simply download the files and follow the instructions from this website.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/usb_driver1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-264\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/usb_driver1-287x300.jpg\" alt=\"usb_driver\" width=\"574\" height=\"600\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/usb_driver1-287x300.jpg 287w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/usb_driver1.jpg 804w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>I used the Windows Device Manager to install the driver. There are several ways to pull up the Device Manager on a Windows PC. One simple method is to type &#8220;Device Manager&#8221; in the Start pop-up in the box with the placeholder &#8220;Search programs and file&#8221;:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManager.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-280\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManager-300x73.jpg\" alt=\"Open Device Manager\" width=\"300\" height=\"73\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManager-300x73.jpg 300w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManager.jpg 370w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>With the USB device attached to the PC (with no driver installed), right-click on the device and select \u201cUpdate Driver Software&#8230;\u201d<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManagerBefore.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-244\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManagerBefore-224x300.png\" alt=\"DeviceManagerBefore\" width=\"385\" height=\"516\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManagerBefore-224x300.png 224w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManagerBefore.png 399w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Then, select \u201cBrowse my computer for driver Locate and install driver software manually.\u201d<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/UploadDriverSoftware1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-245\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/UploadDriverSoftware1-300x220.png\" alt=\"UploadDriverSoftware1\" width=\"500\" height=\"367\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/UploadDriverSoftware1-300x220.png 300w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/UploadDriverSoftware1.png 628w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Select the folder that the driver downloaded to on your computer:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/UploadDriverSoftware2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-246\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/UploadDriverSoftware2-300x220.png\" alt=\"UploadDriverSoftware2\" width=\"463\" height=\"339\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/UploadDriverSoftware2-300x220.png 300w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/UploadDriverSoftware2.png 628w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Clicking &#8220;next&#8221; installs the driver&#8230;and that should do it:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/Finished.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-247\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/Finished-300x220.png\" alt=\"Finished\" width=\"454\" height=\"333\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/Finished-300x220.png 300w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/Finished.png 628w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>When you click \u201cclose\u201d, the driver should be installed and the device manager updated with the correct driver information, including the COMx assignment.<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManagerAfter.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-248\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManagerAfter-224x300.png\" alt=\"DeviceManagerAfter\" width=\"430\" height=\"576\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManagerAfter-224x300.png 224w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/DeviceManagerAfter.png 399w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>If you want to customize the COMx port number assignment, right-click on the newly installed USB to UART bridge driver, select \u201cProperties, the \u201cPort Settings\u201d tab and \u201cAdvanced&#8230;\u201d<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/ComPortAssignment.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-249\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/ComPortAssignment-300x138.png\" alt=\"ComPortAssignment\" width=\"422\" height=\"194\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/ComPortAssignment-300x138.png 300w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/ComPortAssignment.png 646w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Note that while the USB to serial device&#8217;s 3.3V output can be used to power the ESP8266 when programming the device, it is inadequate as a stand-alone power source. The maximum output is specified to be 100ma while the ESP8266, when transmitting, could require up to 215 ma. Even though the ESP8266 can be programmed for several lower power transmit modes, none falls below the 100ma maximum that the USB to serial device can deliver.<\/p>\n<ul>\n<ul>\n<ul>\n<ul>\n<ul>\n<li>Transmit 802.11b, POUT=+19.5dBm 215 mA<\/li>\n<li>Transmit 802.11b, POUT=+18.5dBm 197 mA<\/li>\n<li>Transmit 802.11g, POUT=+16.0dBm 145 mA<\/li>\n<li>Transmit 802.11n, POUT=+14.0dBm 135 mA<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<\/ul>\n<\/ul>\n<p>Thus, a separate 3.3V source is needed to power the ESP8266 for a fielded application What is important to keep in mind is that the ESP8266 needs a regulated 3.3V power source. I recommend using a single-chip regulator for this purpose.<\/p>\n<p>One such device, which can be purchased fro about 1 USD on-line from Amazon or Adafruit, is the 3.3V 250MA LINEAR VOLTAGE REGULATOR (Part number L4931).<\/p>\n<p>This unit will regulate any source (3.7 &#8211; 20 Vdc) down to a clean 3.3V, and providing up to 250 ma.<\/p>\n<p><a href=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/voltageregulator.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-275\" src=\"http:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/voltageregulator-300x143.jpg\" alt=\"3.3V Voltage Regulator\" width=\"600\" height=\"286\" srcset=\"https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/voltageregulator-300x143.jpg 300w, https:\/\/internetofhomethings.com\/homethings\/wp-content\/uploads\/2015\/03\/voltageregulator.jpg 522w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><br \/>\nWith this simple circuit,\u00a0you can use any commonly available USB source to power your ESP8266 based project. Just make sure the source is rated to supply the needed current. Power sources like a USB battery, car or wall adapter.<\/p>\n<p>Until next time&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So now you&#8217;ve gotten your hands on an ultra low-cost ESP8266 module. Your ready to get started&#8230; But what else do you need? The only other hardware you need now &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10],"tags":[11,13,12],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-alltheposts","category-esp8266","tag-esp8266","tag-home-automation","tag-iot"],"_links":{"self":[{"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228"}],"version-history":[{"count":42,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":285,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions\/285"}],"wp:attachment":[{"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/internetofhomethings.com\/homethings\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}