Newsletter / May 8th, 2019

With this newsletter we are highlighting some of the developments which were important for us in the last month. If you would like to receive future newsletters per e-mail, please register in the form in the top right of our low.js homepage.

CAN support

low.js now has a simply to use, but fully featured module built-in to interface the CAN peripherial of the ESP32 microcontroller! CAN is a bus to interface devices which is used extensivly in the automotive and automation industries.

By mixing the CAN module, the https and maybe even the ws module (from npm, for WebSockets), great interfaces can be built to control industrial applications.

For a simple example on how to interface CAN, see the can_self_test.js example. For a more serious example, see tmcm-3212-tmcl.js, a CAN driver for the TMCM-3212-TMCL triple axis stepper motor controller/driver.

The TMCM-3212

The documentation of the new module can be found here: https://www.lowjs.org/lowjs_for_esp32/module-can.html

Watchdog functionality

In production environments it is important that the program keeps running. low.js now has a built-in watchdog feature which can be used in two modes:

Software mode

In this mode, low.js restarts the running application when the watchdog is not kicked every once in a while. The built-in IDE and debugger stay accessible and the Wifi stays connected.

Hardware mode

In this mode, the ESP32 microcontroller itself restarts the microcontroller when the watchdog is not kicked every once in a while. In the unlikely case of a bug in low.js itself, this mode makes sure that things continue working.

The watchdog can be set up in the low.js settings, either with the lowsync command line app or graphically in the neonious one IDE. It can be kicked either by calling require(‘lowsys’).kickWatchdog() or by the event dispatcher itself whenever the event queue is empty.

That’s it! Thank you for reading!

Leave a Reply

Your email address will not be published. Required fields are marked *