Re: ESP_Basic Driving Lessons

ESP_Basic Driving Lessons - Chapter 5.
ESP_Basic Racehorse
It may seem a bit late to be talking about ESP hardware at this stage, but it probably wouldn't have been appreciated or made much sense until you dipped your toes in the water to know what I'm talking about.
ESP_Basic can run on just about any ESP-8266 device, and you may already have a shed-load of different ESP's lying around... but there are some less-than-obvious different hardware usage considerations that perhaps you may not have already thought of. It's obviously a matter of 'horses for courses', but sometimes the best course may not be so obvious... there could be a big difference in what I might choose to use for a final working project compared to what I would prefer to develop the project on. For development I want quick convenience, so I would prefer an ESP dev module that offers easy connection, good visual feedback, and is as self-contained as possible - rather than a tiny ESP sitting in the middle of a tangled fragile spiders-web.
Because of the nature of ESP_Basic, making the right choice of ESP can offer a lot more benefit than it could otherwise offer with the Arduino compiler etc. With the compiler, most of the time is spent editing in the IDE or uploading the script, which can take an age... so continual reflashing of each re-compiled program change is just an in-escapable fact of life (unless you're losing half your flash memory for OTA), so it doesn't really matter too much what sprawling uarts and birds-nest wiring are attached... cos it aint going anywhere in a hurry!
Compare that to ESP_Basic, which you only flash initially ONCE with ESP_Basic... then all further communication for script loading and saving is done over wifi from your browser.
So after originally flashing for the first time, you shouldn't need to use a uart to flash again until you wish to upgrade to a newer release or perhaps want to make a clean start because of some weird symptoms. That's quite a significant usage difference, and ESP_Basic can take much better advantage of a self-contained module without bits dangling all over the place.
That may be better appreciated by explaining what I use - and how I use it - then the benefits should become more apparent.
http://www.ebay.co.uk/itm/ESP8266-WIFI-Serial-Kit-Development-Board-Test-Wireless-Board-Full-IO-Leads-DY-/262314535314?hash=item3d132a2992:g:bhsAAOSw~OVW1Ytd
There is a new version of the Serial Dev Kit Module available from the far east for less than £4 on ebay. This new version comes supplied with a 3xAA battery box (the module has onboard 3.3v regulator) which hasn't yet been soldered to the board - and for ESP_Basic dev work it may never need to be... because the module can be conveniently powered by the usb of an onboard uart (same CH340 drivers that you've probably already got installed for your arduinos).
It has convenient leds and breakout pins for the gpios, a gpio00 flashing jumper, and a sliding on/off switch... so it is completely self-contained, and can be powered by the usb cable which comes with it. It doesn't even need plugging into a breadboard... it just sits on the desk - or even in your hand - 'as-is' (the current A21 version of ESP_Basic requires you to add a pull-up resistor to any pin you wish to use as input, but hopefully that may change).
If I need to reflash the ESP, it's just a matter of fitting the tomb-stone jumper link to gpio00 then flicking the power switch off and back on, then remove the jumper again.
If it gets it's nickers in a twist and needs a reboot, I just flick the switch off and back on - otherwise it pretty much stays on and connected 24 hours a day... and is ready to connect straight back to from the browser each day.
It was so convenient that I bought another 2 - so now I can have one with my big EasyNet Demonstrator script I'm doing, another for trying out new releases and/or other scripts, and another with a previous older release of ESP_Basic just for comparisons and fallback etc.
Trying a script on different versions is as ridiculously quick and simple as doing a CTRL A and CTRL C on the edit window, unplug the usb cable and put that module to one side, plug the cable into a different module, wait till it boots up and connects, then CTRL V the script and try it.
If that doesn't impress you, then you really are a techo-virgin!
Which means that you probably also won't be impressed by the fact that it has facility to switch from the onboard 4Mb ESP202 to an onboard empty ESP01 socket so you can flash as many 'production' ESP01's direct from your dev project module as you need to!
So yes, you may already have ESPs laying around, but I doubt you'd find a better matched horse for the ESP_Basic race-course than this... that's not to say that there aren't any better available, but I sure don't have the need or incentive to look for them. I don't know what documentation may exist for it now, but at the time I got mine there was zilch, so I checked things out for myself and labelled up the pic below to show eveything relevent (including the mis-labelling of TX and RX on the pcb).

ESP_Basic Racehorse
It may seem a bit late to be talking about ESP hardware at this stage, but it probably wouldn't have been appreciated or made much sense until you dipped your toes in the water to know what I'm talking about.
ESP_Basic can run on just about any ESP-8266 device, and you may already have a shed-load of different ESP's lying around... but there are some less-than-obvious different hardware usage considerations that perhaps you may not have already thought of. It's obviously a matter of 'horses for courses', but sometimes the best course may not be so obvious... there could be a big difference in what I might choose to use for a final working project compared to what I would prefer to develop the project on. For development I want quick convenience, so I would prefer an ESP dev module that offers easy connection, good visual feedback, and is as self-contained as possible - rather than a tiny ESP sitting in the middle of a tangled fragile spiders-web.
Because of the nature of ESP_Basic, making the right choice of ESP can offer a lot more benefit than it could otherwise offer with the Arduino compiler etc. With the compiler, most of the time is spent editing in the IDE or uploading the script, which can take an age... so continual reflashing of each re-compiled program change is just an in-escapable fact of life (unless you're losing half your flash memory for OTA), so it doesn't really matter too much what sprawling uarts and birds-nest wiring are attached... cos it aint going anywhere in a hurry!
Compare that to ESP_Basic, which you only flash initially ONCE with ESP_Basic... then all further communication for script loading and saving is done over wifi from your browser.
So after originally flashing for the first time, you shouldn't need to use a uart to flash again until you wish to upgrade to a newer release or perhaps want to make a clean start because of some weird symptoms. That's quite a significant usage difference, and ESP_Basic can take much better advantage of a self-contained module without bits dangling all over the place.
That may be better appreciated by explaining what I use - and how I use it - then the benefits should become more apparent.
http://www.ebay.co.uk/itm/ESP8266-WIFI-Serial-Kit-Development-Board-Test-Wireless-Board-Full-IO-Leads-DY-/262314535314?hash=item3d132a2992:g:bhsAAOSw~OVW1Ytd
There is a new version of the Serial Dev Kit Module available from the far east for less than £4 on ebay. This new version comes supplied with a 3xAA battery box (the module has onboard 3.3v regulator) which hasn't yet been soldered to the board - and for ESP_Basic dev work it may never need to be... because the module can be conveniently powered by the usb of an onboard uart (same CH340 drivers that you've probably already got installed for your arduinos).
It has convenient leds and breakout pins for the gpios, a gpio00 flashing jumper, and a sliding on/off switch... so it is completely self-contained, and can be powered by the usb cable which comes with it. It doesn't even need plugging into a breadboard... it just sits on the desk - or even in your hand - 'as-is' (the current A21 version of ESP_Basic requires you to add a pull-up resistor to any pin you wish to use as input, but hopefully that may change).
If I need to reflash the ESP, it's just a matter of fitting the tomb-stone jumper link to gpio00 then flicking the power switch off and back on, then remove the jumper again.
If it gets it's nickers in a twist and needs a reboot, I just flick the switch off and back on - otherwise it pretty much stays on and connected 24 hours a day... and is ready to connect straight back to from the browser each day.
It was so convenient that I bought another 2 - so now I can have one with my big EasyNet Demonstrator script I'm doing, another for trying out new releases and/or other scripts, and another with a previous older release of ESP_Basic just for comparisons and fallback etc.
Trying a script on different versions is as ridiculously quick and simple as doing a CTRL A and CTRL C on the edit window, unplug the usb cable and put that module to one side, plug the cable into a different module, wait till it boots up and connects, then CTRL V the script and try it.
If that doesn't impress you, then you really are a techo-virgin!
Which means that you probably also won't be impressed by the fact that it has facility to switch from the onboard 4Mb ESP202 to an onboard empty ESP01 socket so you can flash as many 'production' ESP01's direct from your dev project module as you need to!
So yes, you may already have ESPs laying around, but I doubt you'd find a better matched horse for the ESP_Basic race-course than this... that's not to say that there aren't any better available, but I sure don't have the need or incentive to look for them. I don't know what documentation may exist for it now, but at the time I got mine there was zilch, so I checked things out for myself and labelled up the pic below to show eveything relevent (including the mis-labelling of TX and RX on the pcb).
