![]() ![]() Head over to the Espruino Web IDE (page) and install the Chrome extension application. When the process is done you can immediately start using your device with Espruino. While it's flashing, you should see your onboard LED blinking. Double-check that the port is the appropriate one, pick the latest Espruino binary and hit the Flash button. ![]() On Windows, these are going to look like COM3, while on Mac and Linux they will be more like /dev/ttyUSB1 or /dev/cu.usbmodem150. Flasher will try to auto detect the available port. For the NodeMcu ESP8266 Lua board you need to use a USB to Micro USB cable. Open Flasher.js app and connect your device to your development machine. There is also a list with the required drivers per device and operating system available in the documentation page. ou may need to download and install some additional drivers in order to allow Flasher.js to communicate with your device. You can find a binary for your operating system in the Flasher.js releases page which you can download and install. You can run Flasher.js on Linux, Mac or Windows and there is also support for a bunch of other boards besides NodeMcu. Luckily though we can use Flasher.js, a command-line tool that allows flashing Espruino without any hassle. Flashing Espruino is a lengthy process and may get quite tricky, especially for newcomers to embedded development. ESP8266 is a great option, as it's affordable, expandable and there are lots of examples, tutorials, and projects built with it.įor the purpose of this simple tutorial we are going to use the NodeMcu ESP8266 Lua board, which comes with a micro USB port for power, programming and debugging as well as a bunch of soldered pin headers for quick prototyping. You can get up and running using Espruino with the ESP boards. But you can also use any of the other options available. In the Espruino e-shop, there are a few boards available for just a couple of British pounds. Espruino is more like an interpreter, which means we can use JavaScript which gets compiled and executed on the target board. It was founded and developed by Gordon Williams, while it’s coming with an IDE as a Chrome extension, a vivid community and lots of tutorials and examples. Basically, we can just control the board by executing commands, thus creating a standalone prototype is not possible.Įspruino is a firmware with a JavaScript interpreter integrated right into it. Johnny-Five transmits basic I/O instructions to the connected board via a USB serial, which acts as a thin client. ![]() While it is a great library for programming using Arduino or other popular microcontrollers, it lacks one basic feature, portability.įor the majority of the supported platforms, JavaScript is executed on a host machine that runs Node.js. I have written a series of posts about using JavaScript for embedded development using Johnny-Five. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |