AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Nodemcu lua simple delay4/4/2023 ![]() ![]() There are instructions on the GitHub page, located here. This will install a firmware with default options, but you can also install your custom-built firmware by using the Config tab. On Windows, you also have a GUI option called NodeMCU Flasher. ![]() You will need Python 2.7 or 3.4+ already installed. On all OSes, we can use esptool to install it. Once you have downloaded the firmware, we can program it to the board. If the server is very busy, it can take longer. When the server isn't busy, it usually takes less than a minute for you to receive the email with the firmware link. Don't select any of the miscellaneous options. You might not be able to fit it on your device. A good, general-purpose firmware can be built with these options:įeel free to add or remove things that you don't need, but be careful not to add too many modules. ![]() There is an online service which will build NodeMCU firmware for you! Just pick the options you want, enter your email, and click build. With the ESP-12F, we have 32Mbit, or 4Mbyte of flash, which is quite a lot. This is handy because not all modules have the same flash size. The firmware can be built with many different modules, which will change the size of the firmware. NodeMCU is both the name of the firmware, and also an ESP8266 development board that comes with NodeMCU firmware pre-installed. Many ESP8266 boards come with the Lua interpreter pre-installed. Take some time to find a reliable source, and take a close look at the requirements for. Some of these have on-board 3.3V regulators, others don't. The modules were originally designed by a company called AI Thinker, but now have been widely cloned. But if you want to spin your own board using, say, an ESP-12F module, here are a few tips (skip to the tutorial section if you bought a HUZZAH Feather or a SparkFun Thing, or similar): This takes a lot of the difficulty out of spinning your own board. I generally recommend that people new to the ESP8266 buy a pre-fabricated module from a company like SparkFun or Adafruit. You are interested in playing with Lua and discovering how it can be used in an embedded system like this. You want to program the module using Arduino or the SDK. However, many of you are here because you want to dive deep down into the power at the heart of the ESP8266. Getting it connected to my Wi-fi network and sending data was very easy. A full list of the AT command set can be found here. This is a perfectly acceptable solution for many hackers, and if that's all you need then great! I built a data-logging module which used the Sparkfun phant server as the backend using only AT commands. This is the only way to control the ESP modules which only have 8 pins. You can use AT commands over a serial link to control the chip. This is the easiest method for those who don't have interest in diving into the ESP itself. Without having to program the ESP, complex IoT applications could be developed, using the ESP simply as an external Wi-fi chip. Hobbyists all over the world started playing with the chip to see what it could do. While having Wi-fi on-chip with a microcontroller was not a new idea, the concept having a simple serial link to control it out of the box was. Fabless means they just create the chip design, and they get another company to actually manufacture the silicon (Atmel was also a fabless semiconductor company). The ESP8266 was designed by a Chinese fabless semiconductor company called Espressif. There's a lot of resources out there, but I wanted to combine all that information together into one place. The low cost of getting a module coupled with its power and reliability has made sales of the chip shoot through the roof. The ESP8266 has been popular for quite a while now. Send me a private message here on Hackaday.Post on the ESP8266 Community Forums (note it can take a while to get a response!).If your question is specifically Lua language-related, you can also try #lua Join the #esp8266 channel on Freenode IRC and ping me (MrAureliusR) or ask anyone who is in there.Ask in the discussion area below the article.If you run into trouble while following these tutorials, you have a few different options: We use the simpler, more widely available HTTP protocol to log data to the cloud ![]() Using the NodeMCU MQTT module to communicate with a cloud data service Using the Wire library for I2C, and AnalogWrite for fading! Looking at using the linker to get PWM, and the included I2C libraries Use the Arduino IDE to simplify development and get up to speed very quickly!Īnd here's the links to the other tutorials in Part 2: ESP8266 SDK Tutorial This is what the pros use!Ī look at the NodeMCU Lua interpreter for the ESP8266. Learn how to get to Blinky! Links to the other tutorials in this series: ESP8266 SDK Tutorial ![]()
0 Comments
Read More
Leave a Reply. |