[Reprint] One, ESP8266 download and brush firmware (based on the Lua scripting language)

Source: Internet
Author: User

Test with your own little board ...

The arrangement?

One, ESP8266 download and brush firmware (LUA development----Experience the charms of LUA development)

Two, control a light off

Third, the TCP server

Four, the TCP client

Five, UDP

VI, file operation (save data to 8266 internal)

Seven, peripheral operation (SPI,ADC)

Eight, besides ...

Ultimately, it makes it easy for everyone to do

Http://www.cnblogs.com/yangfengwu/p/7513097.html

Easy to use 8266

See download your own firmware first

Fill in your e-mail address, and then choose the function you need, a compile-good firmware will be sent to your mailbox

Address

https://nodemcu-build.com/

I downloaded the

Link: http://pan.baidu.com/s/1qYUI4zi%20 Password: kqnt

I started with the QQ mailbox, but later did not know how my QQ mailbox can not,,,, so use their own Sina mailbox

Then there will be the following interface, waiting for the HA

Yes, and the API documentation developed by LUA.

https://nodemcu.readthedocs.io/en/master/en/modules/gpio/

The mail was sent.

Software for burning firmware

Link: http://pan.baidu.com/s/1cpnbVw Password: 2nha

Software for burning firmware (ii)

Link: http://pan.baidu.com/s/1boBW4N1 Password: 88my

No matter which software, the module wiring is the same

Now Burn write firmware

Reference article:

Http://www.cnblogs.com/yangfengwu/p/6247048.html just look on the line do not download or use the link inside the thing, with this article on the line

Http://www.cnblogs.com/yangfengwu/p/6243619.html just look on the line do not download or use the link inside the thing, with this article on the line

Yes, that's what the pro guys might use.

GPIO0 default is operating mode (no wiring). If the next low level is the download mode (to the module brush firmware!!) ) So the low level is connected. CH_PD high level, the rest can not be wired except TX,RX.

In fact, when the module is power-up if the GPIO0 is low, then the module will be working in the waiting for the firmware mode,,, when the module is on the power if the GPIO0 is high level then the module is working in normal operation mode, because there is no key or something, so you can first connect the line and then power on

Look at this one again.

If there is no key reset, you can first connect the line, pay attention to the power before the GPIO0 if the low level,,, and then power on, the module will enter the download firmware mode

Pin port definition of your own board

Key1 received the Gpio5, and this does not have to tube

Key2 received the Gpio0,,,,, (when power on if the gpio0 is low, then is the download firmware mode, so press Key2 start is burning write firmware mode)

Key3 received the reset pin of the module

Or

Later added-----about choosing a memory size problem, different models of memory size are not the same

Can see

Http://wiki.ai-thinker.com/_media/esp8266/esp8266_module_list.png

can also be from my Baidu cloud inside

Link: Http://pan.baidu.com/s/1qYunDbY Password: 5SPV

Press Key2 and power down, or press Key3 to reset,,, and release Key2.

All right

Now look with the second software to brush the firmware

Select firmware

Give everyone a variety of modules flash size table

Http://wiki.ai-thinker.com/_media/esp8266/esp8266_module_list.png

Let the module in the update firmware mode, that is, Gpio0 the low level, and then reset a bit

All right

Yes, it could happen.

This is the serial module and the WiFi module communication instability caused by the,,, their own use of ch340 has been the case,,,, but with pl2303 did not appear,,,, for this situation, I feel that the first condition can be replaced by a serial module, such as pl2303, or CP2102, etc. ... Furthermore, you can choose a good DuPont line, as short as possible ...

However,, with pl2303 download good later, with ch340 can also be ........

Yes, you can try it.

Make it a little bit smaller.

Feel as long as not to communicate so much data, can also reduce the chance of error

One more thing about this software is to synthesize a bin file into a bin file.

Now you can open the Serial debugging assistant to see

It may also show that the file system is being formatted,,, so wait a minute. Format File system

We write Lua with this software

Link: http://pan.baidu.com/s/1kVN09cr Password: pfv7

Don't be afraid of the new language ha,,, use to know .... Very good, and C language is very close, the function is very strong ha, in fact, we ha also use less than how much,,,, we are using

API for 8266

[Reprint] One, ESP8266 download and brush firmware (based on the Lua scripting language)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.