Geneous wrote:modeMPU module
What is that? Never heard of it. There's a somewhat dated comparison of modules at https://frightanic.com/iot/comparison-o ... nt-boards/
Geneous wrote:given that relevant libraries are copied
Not sure what you mean. The NodeMCU firmware C modules are compiled into the firmware binary.
Geneous wrote:One problem the ESP8266-01 module only breaks out 2 of the 8266's 16 GPIO pins
You've actually got 4 GPIO's at your disposal with the ESP-01: TX = GPIO1 and RX = GPIO3.
Geneous wrote:That doesn't leave much hacking freedom.
Not sure how the word "Hacking" applies here: you just write firmware for an MCU connected to external hardware through the GPIO's.
I assume you're using this word in a slang sort of way (but see my signature below about making assumptions)
Geneous wrote:Behold, the modeMPU module with all the of 8266 GPIO pins available to us!
You're probably referring to the NodeMCU which is a development board (an ESP-12 module with all necessary hardware, like an USB-UART bridge, to easily develop code)
The ESP-01 is just a module on its own: there are lots of modules available, most used are the ESP-01 (nobody knows why, since it's pretty limited, like you've also discovered) and the ESP-12, but there are a couple of more usable modules available, depending on your needs.
Since the ESP-01 has the same ESP8266 controller as all the other modules, code written with the ESP-01 in mind also fits inside, for instance, an ESP-12 and vice versa (as long as memory limits are not at play).
And since a NodeMCU uses an ESP-12 module, you can use the code you're referring to with it.
Here is what started me down this path: https://www.hackster.io/noelportugal/if ... ton-e11841
Geneous wrote:One problem the ESP8266-01 module only breaks out 2 of the 8266's 16 GPIO pins
QuickFix wrote:You've actually got 4 GPIO's at your disposal with the ESP-01: TX = GPIO1 and RX = GPIO3.
Terrific! I missed that in the docs. So with 3 pins now available to me, I can externally select between 8 triggers within the .lua script! I also missed how the .lua script used pin "4" to refer to GPIO02 when the 8266 doc calls it pin 14???
QuickFix wrote:The ESP-01 is just a module on its own: there are lots of modules available, most used are the ESP-01 (nobody knows why, since it's pretty limited, like you've also discovered) and the ESP-12, but there are a couple of more usable modules available, depending on your needs.
ESP-01 is really cheap and really small, thus easy to hide in a small box or hole in the wall.
QuickFix wrote:And since a NodeMCU uses an ESP-12 module, you can use the code you're referring to with it.
With 3 GPIO pins available to me now, the ESP-01 can do my job. Since the .lua script uses GPIO2 to feed back into CH_PD, my reading of the docs says that's pin EN on the ESP-12, yes?