<div dir="ltr"><div><div>I was just wondering why serial pins are not labeled better...it would be so easy to put arrows on them. There seems to be a general problem with poor documentation of serial connections (parity, byte size, etc.).<br><br></div>Once I've had a chance to play around with the ESP8266 I'll be taking a look at other Wifi SoCs. Right now I'm trying to build a Wifi-controlled rover for <$10 in parts, so I'll be sticking to the cheaper ones for a while.<br><br></div>~Nathan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 19, 2015 at 11:52 PM, Christopher Svec <span dir="ltr"><<a href="mailto:christophersvec@yahoo.com" target="_blank">christophersvec@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div dir="ltr">Regarding RX/TX mismatches, Particle (formerly Spark) has a great datasheet for their older "Core" dev board: they have pictures with arrows on them showing the flow of data to/from the RX/TX pins.</div><div dir="ltr"><br></div><div dir="ltr">Picture here: <a href="http://docs.particle.io/assets/images/core-pin-usart.jpg" target="_blank">http://docs.particle.io/assets/images/core-pin-usart.jpg</a></div><div dir="ltr">Full HW datasheet here: <a href="http://docs.particle.io/core/hardware/" target="_blank">http://docs.particle.io/core/hardware/</a></div><div dir="ltr"><br></div><div dir="ltr">Those simple arrows would have saved me at least a few hours of debug on similar designs... An even better idea would be to print the arrows on the silkscreen.</div><div dir="ltr"><br></div><div dir="ltr">Scroll down that page and you'll see that the SPI and other signals are also marked with direction arrows - such a simple but brilliant idea! Clearly they have empathy for us users.</div><div dir="ltr"><br></div><div dir="ltr">Unfortunately it looks like they ditched the arrows on their newer (recently Kickstarted) "Photon" product.</div><span class="HOEnZb"><font color="#888888"><div dir="ltr"><br></div><div dir="ltr">-svec<br></div></font></span><div><div class="h5"><div><span></span></div>  <br><div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <font face="Arial" size="2"> On Tuesday, May 19, 2015 11:37 PM, Jon Wolfe via TriEmbed <<a href="mailto:triembed@triembed.org" target="_blank">triembed@triembed.org</a>> wrote:<br> </font> </div>  <br><br> <div><div><div>
<div>I've been bit by the janky power supply problem more times than I can count. The worst ones are where your setup seems to work 75%-90% of the time, and you drive yourself crazy trying to track down the issue. </div>
<div>I've hit the tx/rx match-up issue before too. Most of the time though, I've seen TX->RX and RX->TX as the working connection. I think some devices/adapters take the nomenclature approach where everything is labeled from the "point of view" of the "master" device, eg, "RX" on a peripheral is the line where the main device receives data, even though the peripheral is transmitting from it's point of view to the other device. confusing.</div>
<div>You would think that mis-connecting those would cause dangerous line contention, but as often as I have messed it up, I've never fried a chip that way. YMMV.</div>
<div>I have seen a few sources on the Internet stating that the RX and TX on the 8266 "seem" 5V tolerant. But the "official" datasheet says it's not.</div>
<div> </div>
<div>If you want a little bit nicer chip that has (mostly) 5V tolerant I/O and has additional I/O's, and can *probably* handle higher baud rates than the esp8266, check out the EMW3162 from MXChip. Seeed Studio has them, <a href="http://www.seeedstudio.com/depot/EMW3162-WiFi-Module-p-2122.html" target="_blank">http://www.seeedstudio.com/depot/EMW3162-WiFi-Module-p-2122.html</a>.  I have some, and if I don't need all of them, I may put them up on Anibit. The major downside to the EMB3162 is their decision to use 2mm spaced pins. 2mm female headers are a royal pain to find domestically. I made some breadboard/2.54mm adapters for them here <a href="https://oshpark.com/shared_projects/opehJKc7" target="_blank">https://oshpark.com/shared_projects/opehJKc7</a> </div>
<div>The built-in stock firmware for the EMW3162 has a (not very similar to ESP8266's AT) command set to act as a Wifi peripheral, but the on-board CPU that does the heavy lifting is  an STM32F205 Cortex-M3 ARM chip with 1 MiB of flash. You can write more elaborate code for the device itself than the Arduino's most people connect to them.</div>
<div>It's more expensive than the ESP8266, but it can do more. Another downside is that it's even less documented than the esp8266, but I've exchanged a number of emails with the MXChip engineers, and they've been pretty willing to answer my questions.</div>
<div> </div>
<div><div>On 2015-05-19 16:38, Nathan Yinger via TriEmbed wrote:</div>
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px">
<div dir="ltr">
<div>
<div>Success! It did indeed need more power, and the tx pin on the ESP had to be wired to the rx pin of the Sparkfun FTDI board, which is opposite of other serial adapters I've seen.<br clear="none"><br clear="none"></div>
For those interested, I got the 'AT OK' response with 9600 baud and NL + CR line ending.<br clear="none"><br clear="none"></div>
<div>Thanks for the help,</div>
<div>~Nathan</div>
</div>
<div><br clear="none">
<div>On Tue, May 19, 2015 at 1:19 PM, Pete Soper via TriEmbed <span><<a rel="nofollow" shape="rect" href="mailto:triembed@triembed.org" target="_blank">triembed@triembed.org</a>></span> wrote:<br clear="none">
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>This is nice information.<br clear="none"> <br clear="none"> I looked at it a bit and one thing that jumped out and swatted me on the nose is the fact that the radio board 3.3v power supply current draw can greatly exceed the current an FTDI chip can put out. The "usual" FTDI chips (and it appears Sparkfun is using a vanilla FT232RL) can only source about 50ma at 3.3 volts from their internal regulators. The ESP8266 board has typical (i.e. possibly far from "worst case") current requirements looking like this (from the table on the web site linked to below):<br clear="none"> <br clear="none"> 802.11b, CCK 1Mbps, POUT=+19.5dBm 215mA<br clear="none"> 802.11b, CCK 11Mbps, POUT=+18.5dBm197mA<br clear="none"> 802.11g, OFDM 54Mbps, POUT=+16dBm145mA<br clear="none"> 802.11n, MCS7, POUT =+14dBm135mA<br clear="none"> 802.11b, packet size of 1024 bytes, -80dBm60mA<br clear="none"> 802.11b, packet size of 1024 bytes, -70dBm60mA<br clear="none"> 802.11b, packet size of 1024 bytes, -65dBm62mA<br clear="none"> Standby0.9uA<br clear="none"> Deep sleep10mA<br clear="none"> Saving mode DTIM 1 1.2mA<br clear="none"> Saving mode DTIM 3 0.86mA<br clear="none"> Shutdown0.5uA<br clear="none"> <br clear="none"> So a lot of the time you're basically trying to kill the FTDI chip. I personally let the smoke out of one of these by accidentally telling it to try to supply a motor controller (off by an inch with the wire in the breadboard and hit the wrong power rail). They will die if tortured enough.<br clear="none"> <br clear="none"> So plan on the FTDI's 5v line driving an outboard 3.3v regulator with proper capacitors on both sides. An oscilloscope could confirm the radio is getting a proper supply and that it's not being yanked down by sudden changes in current demand.<span><span style="color:#888888"><br clear="none"> <br clear="none"> -Pete</span></span>
<div>
<div><br clear="none"> <br clear="none"> <br clear="none">
<div>On 05/19/2015 11:00 AM, Christian Lilley via TriEmbed wrote:</div>
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px">
<div dir="ltr">All of the information on the ESP8266 can be <a rel="nofollow" shape="rect" href="https://nurdspace.nl/ESP8266" target="_blank">found here.</a>
<div> </div>
<div>According to the wiki the baud rate should be <span>57600. Sparkfun does mention that a level shifter should be used and that it should not be connected directly to 5V sources. </span></div>
<div><span><br clear="none"> </span></div>
<div><span style="color:#000000;font-family:Verdana,Arial,'Trebuchet MS'"><span style="font-size:12.3199996948242px;line-height:18.4799995422363px"><a rel="nofollow" shape="rect" href="http://allaboutee.com/2014/12/27/esp8266-arduino-code-and-circuit/" target="_blank">Here is an example </a>using the Arduino's software serial to communicate with the ESP and the normal serial lines to communicate with the FTDI board. This guy uses a 9600 baud rate but I don't know if that is a custom setting he uses.</span></span></div>
</div>
<div><br clear="all">
<div>
<div>
<div dir="ltr">
<div style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,sans-serif;color:#444444">Christian Lilley | Electrical Engineer</span><br style="font-family:arial,sans-serif" clear="none">
<div style="font-family:arial,sans-serif">
<div>
<div dir="ltr">
<div style="margin:0in 0in 0.0001pt;font-family:Calibri,sans-serif;font-size:11pt"><strong><em><span style="font-size:8pt"> </span></em></strong><span style="font-size:11pt;color:windowtext"><a rel="nofollow" shape="rect" style="color:blue;font-size:11pt" href="http://www.gomohu.com/" target="_blank"><img alt="images" border="0" height="32" width="200"></a></span></div>
<div style="margin:0in 0in 0.0001pt;font-family:Calibri,sans-serif;font-size:11pt"><span style="color:#444444"><a rel="nofollow" shape="rect" style="color:#1155cc">919.794.8627 ext 129</a></span></div>
<div style="margin:0in 0in 0.0001pt;font-family:Calibri,sans-serif;font-size:11pt"><span style="color:#444444"><span style="color:#ffff00"><a rel="nofollow" shape="rect" style="color:#1155cc" href="mailto:christian.lilley@gomohu.com" target="_blank">christian.lilley@gomohu.com</a></span></span><span style="color:#ffff00"><span style="font-size:13px;font-family:Verdana,sans-serif"></span></span></div>
<span style="color:#ffff00"></span></div>
</div>
<span style="color:#ffff00"><br clear="none"> </span></div>
<div style="font-family:arial,sans-serif"><span style="color:#ffff00"><a rel="nofollow" shape="rect" style="color:#1155cc" href="http://www.gomohu.com/" target="_blank">www.gomohu.com</a></span></div>
</div>
<div style="font-family:arial,helvetica,sans-serif"><span><br clear="none"> </span></div>
</div>
</div>
</div>
<br clear="none">
<div>On Tue, May 19, 2015 at 10:44 AM, Nathan Yinger via TriEmbed <span><<a rel="nofollow" shape="rect" href="mailto:triembed@triembed.org" target="_blank">triembed@triembed.org</a>></span> wrote:<br clear="none">
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>So, I have an ESP8266, a new serial adapter (<a rel="nofollow" shape="rect" href="https://www.sparkfun.com/products/9873" target="_blank">https://www.sparkfun.com/products/9873</a>), and I'm trying to get them to communicate.<br clear="none"> </div>
When I power up the ESP8266, it creates a wifi network where I can join and ping it, but as far as I can tell, reprogramming it requires a serial connection.<br clear="none"> </div>
When the ESP8266 is powered on, the 'tx' light on the serial adapter flashes continuously, which I assume means the ESP8266 is transmitting something. Nothing appears in my serial monitor though, not even gibberish.<br clear="none"> <br clear="none"> I'm using the serial monitor that comes with the Arduino IDE, with various baud rates and line endings. I haven't found any documentation about the byte length, parity, or character encoding used by ESP8266. I get a TTYUSB device in /dev when I plug in the serial adapter, so it appears to be doing something.<br clear="none"> </div>
Does anyone know what's required to make the chips do something? Or have a working setup they could bring to the next meeting?<br clear="none"> </div>
Thanks,</div>
~Nathan</div>
<br clear="none"> _______________________________________________<br clear="none"> Triangle, NC Embedded Computing mailing list<br clear="none"> <a rel="nofollow" shape="rect" href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a><br clear="none"> <a rel="nofollow" shape="rect" href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br clear="none"> TriEmbed web site: <a rel="nofollow" shape="rect" href="http://triembed.org/" target="_blank">http://TriEmbed.org</a><br clear="none"> </blockquote>
</div>
</div>
<br clear="none"><fieldset></fieldset><br clear="none">
<pre>_______________________________________________
Triangle, NC Embedded Computing mailing list
<a rel="nofollow" shape="rect" href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a>
<a rel="nofollow" shape="rect" href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a>
TriEmbed web site: <a rel="nofollow" shape="rect" href="http://triembed.org/" target="_blank">http://TriEmbed.org</a>
</pre>
</blockquote>
</div>
</div>
</div>
<br clear="none">_______________________________________________<br clear="none"> Triangle, NC Embedded Computing mailing list<br clear="none"> <a rel="nofollow" shape="rect" href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a><br clear="none"> <a rel="nofollow" shape="rect" href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br clear="none"> TriEmbed web site: <a rel="nofollow" shape="rect" href="http://triembed.org/" target="_blank">http://TriEmbed.org</a><br clear="none"> </blockquote>
</div>
</div>
<br clear="none">
<pre>_______________________________________________
Triangle, NC Embedded Computing mailing list
<a rel="nofollow" shape="rect" href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a>
<a rel="nofollow" shape="rect" href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a>
TriEmbed web site: <a rel="nofollow" shape="rect" href="http://triembed.org/" target="_blank">http://TriEmbed.org</a>
</pre>
</blockquote></div>
<div> </div>
<div>-- <br clear="none">
<pre>Jon Wolfe
Anibit Technology LLC.

<a rel="nofollow" shape="rect" href="https://anibit.com/" target="_blank">https://anibit.com
</a></pre><div>
</div></div><div>
</div></div></div><br><div>_______________________________________________<br clear="none">Triangle, NC Embedded Computing mailing list<br clear="none"><a shape="rect" href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a><br clear="none"><a shape="rect" href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br clear="none">TriEmbed web site: <a shape="rect" href="http://triembed.org/" target="_blank">http://TriEmbed.org</a><br clear="none"></div><br><br></div>  </div> </div>  </div></div></div></div></div></blockquote></div><br></div>