In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
What this article shares to you is about how to carry on the trial of ESP8266 wifi module, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Some time ago in Taobao random search "wifi module", unexpectedly bright in front of the eyes found that there is a price within 15 yuan of wifi module: ESP8266.
A simple understanding of it:
It is small in size and has a variety of packages, not as big as a coin.
The price is cheap, more than ten yuan is the cheapest in the wifi module.
Provide AT instructions, so that you can use arduino for control to achieve Internet data exchange.
Provide SDK package, firmware burning tools, serial port burning firmware. In this way, the function of arduino as the main control is saved, and the logic is directly written into the code and burned into the firmware, so that it can be executed according to our business.
There are GPIO port, SPI function, I2C function, UART function, ADC function (0-1V input). With these functions, many sensor applications are no problem.
There is a firmware package, called nodemcu, simply take a look, is packaged lua into the firmware, which allows us to use lua this relatively easy to start the language to develop, a few lines of code can read data and upload to the Internet.
The above picture, a variety of packaging formats, the picture is on its Taobao screenshot, I did not buy so many.
I bought my own esp-07 model, 15 yuan with a pcb empty board, can draw out all the IO ports, convenient for diy. The package itself is a little smaller, which is not good for DIY.
I soldered with a soldering iron and bought 2 pieces, one of which seemed to be broken. I thought for a long time that maybe the temperature of the soldering iron was too high. I adjusted it to 350 degrees, but later I checked the document and said that it should not be higher than 280C, or there was a 3.3v pressure stabilized opening on the back of the pcb board. I soldered an original asm1117 3.3v to it myself.
Therefore, when the second piece is welded the next day, the low temperature is used and the voltage stabilizer tube is not welded, the module is normal.
What it looks like after welding.
Power on the connection, connect the serial port to the computer for debugging:
The figure below is as follows
On the left, connect three io ports to the positive pole of the power supply. I chose two No. 5 dry batteries as the power supply, but after using it for a period of time, I found that the battery was not enough, so I changed the 3.3V output of arduino as the power supply.
The blue line on the right connects port 15 io and GND to the battery negative.
Then the serial port cable is connected to the computer. A module connection called usb to serial port is also needed in the middle.
After powering on, open wifi and you will find that there is an extra AP name with the name "AI-ThinkerXXXXX", which at least proves that the module is running successfully.
Open it with the serial debugging tool, enter the simplest command "AT", and the module replies "OK". Good, the module is working properly.
Then I tested the router connected to my home, and it was successful!
Then I built a tcp server on the computer and connected it with a module, which was successful!
Then I plugged a LED light into the GPIO12 port and made it on and off through the AT command.
Then I downloaded SDK, added a hello lixin command to the original AT firmware, compiled, burned and ran successfully.
The above is how to carry out the trial of the ESP8266 wifi module, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.