Current Lua downloadable firmware will be posted here

User avatar
By marcelstoer
#54892
darethehair wrote:I found what appeared to be an easy/working example of talking to a DHT22 temperature/humidity sensor with an ESP8266 -- but it didn't work, and I had to again struggle with finding newer/working examples :)


Again, stick right with the source: http://nodemcu.readthedocs.io/en/latest/en/modules/dht/
User avatar
By darethehair
#55163
marcelstoer wrote:
darethehair wrote:I found what appeared to be an easy/working example of talking to a DHT22 temperature/humidity sensor with an ESP8266 -- but it didn't work, and I had to again struggle with finding newer/working examples :)


Again, stick right with the source: http://nodemcu.readthedocs.io/en/latest/en/modules/dht/


That is good advice :) I got the first project working the way I wanted, and decided that I needed to capture what I had learned by putting it on one of my webpages:

http://darethehair.duckdns.org/dmenns/nodemcu_weather_station.html

I had ordered a 2nd NodeMCU, this time as one of those 'WiFi Witty Cloud Development' boards, and so my next learning experience will be to see if I can query the sensor readings from it to my 1st board...
User avatar
By KevinA
#55196
marcelstoer wrote:Great, glad you got it fixed.

darethehair wrote:But how was I to know this?


I don't understand why you didn't stick with our docs from the beginning. Both http://nodemcu.com/ and https://github.com/nodemcu/nodemcu-firmware (2nd hit on Google) point to the official documentation. Their the entry page has a "Getting started" section which lists 'Build the firmware', 'Flash the firmware' and 'Upload code'.
We're constantly looking to improve things. Suggestions?

I just fired up my ESP8266 for the first time in a year just to get slammed with 4 hours of wasted time. I visited the custom firmware site, got my firmware, downloaded the latest version of NODEMCU and ESPlorer just to waste three hours. I did have fun with Arduino but still no solution to burning the custom firmware,

The link you suggest:
https://nodemcu.readthedocs.io/en/master/en/flash/
Followed and failed, NodeMCU Flasher produces a NodeMCU 12E spitting data out at 74880 baud (I'd like to discuss that baud later) but the examples on installing the software, nope lacking any information on what to do in the CONFIG section of the NodeMCU Flasher. Beating it to death with time has not resulted in a fix.
I just installed Python on Windows 10 (Visual Studio comes with an old version) and will try the python method once I find the script.... Meanwhile you wanted Suggestions? Add the screen shot showing setting up NodeMCU Flasher CONFIG to flash the custom firmware and the init code. I would really prefer to update the firmware with NodeMCU rather then beating my keyboard to death.

FYI: I installed python3.5 and tried to use esptool.py errors, tried to run setup.py and discovered that even though the esptool docs say 2.7 or greater they mean 2.7 but not 3.x
Oh and did you know that the path to a script causes it to fail?
It appears that when you have the images out of order you can not correct the order and reburn, you must exit ESP8266Flasher and start over:

Image

That is the image what is missing, that and changing the ICON's between name and size to file folders so people know what they are for with a glance.
The end results after pressing reset:
ddd`▒▒r▒l▒d

Formatting file system. Please wait...

NodeMCU custom build by frightanic.com
branch: master
commit: 8e48483c825dea9c12b37a4db3d034fccbcba0bf
SSL: false
modules: file,gpio,net,node,tmr,uart,wifi
build built on: 2016-09-15 22:11
powered by Lua 5.1.4 on SDK 1.5.4.1(39cb9a32)
lua: cannot open init.lua
>
User avatar
By KevinA
#56853 Another module, another issue with firmware:
ESP8266-100 25Q64 64Mbit 8MB flash - The https://nodemcu.readthedocs.io/en/master/en/flash/ lists the eps_init_data_default.bin location for flash less than 8MB.
The offset is 16,384: 8,388,608-16,384=8,372,244=0x7FC000 the location for the init data.
Using an image I used above and NodeMCU Firmware Programmer I programmed the ESP8266-100, it reached the end of the progress bar and timed out: Error:Set ESP8266 Address timeout.
I set the memory size to 8M so that was right (second try after the first failure).
I will build another bin from nodemcu-build.com and try again later.
Tried esptool:
C:\ESP>esptool -cp COM5 -cd ck -cb 115200 -bz 8M -ca 0x00000 -cf nodemcu-5-integer.bin -ca 0x7fc000 -cf esp_init_data_default.bin
Uploading 348180 bytes from nodemcu-5-integer.bin to flash at 0x00000000
................................................................................ [ 23% ]
................................................................................ [ 46% ]
................................................................................ [ 70% ]
................................................................................ [ 93% ]
..................... [ 100% ]
Uploading 128 bytes from esp_init_data_default.bin to flash at 0x007FC000
. [ 100% ]

C:\ESP>
No joy. Found out the NEW version of Espressif Down load tool only goes to 4 megabytes but at least it doesn't blow up when you have a larger flash now V3.4.2