UK-based Espruino, a provider of JavaScript Interpreter solutions for microcontrollers, has selected Nordic’s nRF52832 Bluetooth Low Energy (BLE) SoC to provide the wireless connectivity for its ‘Pixl.js’ smart LCD display.
Pixl.js can be used to monitor and control other Bluetooth LE devices, or act as a wireless display, to facilitate fast prototyping of wireless products for small production runs, hobbyist, or educational purposes. The device includes pre-installed Espruino JavaScript firmware, a Raytac MDBT42 module featuring the nRF52832 SoC for Bluetooth LE (BLE) wireless connectivity, and a low power sunlight-readable LCD screen. It also provides Arduino headers, allowing the user to plug in Arduino shields to add features such as SD cards, or Internet connectivity via Wi-Fi, Ethernet, GSM, or LTE.
The Pixl.js display can be powered via micro USB connection or a CR2032 lithium coin cell battery. The battery provides up to 20 days usage with light JavaScript use before replacement, thanks in part to the ultra low power characteristics of the Nordic SoC. The nRF52832 has been engineered to minimize power consumption with features such as the 2.4 GHz radio’s 5.5 mA peak RX/TX currents and a fully-automatic power management system that reduces power consumption by up to 80 percent compared with Nordic’s nRF51 Series SoCs.
Once powered, the device can be paired to Bluetooth 4.0 (and later)-enabled PCs and Mac OS platforms. Bluetooth LE connectivity allows the developer to use Espruino Integrated Development Environment (IDE) or command-line tools to port their code to the Pixl.js. The wireless connectivity allows the developer to communicate with the Espruino JavaScript interpreter from the desktop computer to upload code, change and inspect functions and variables, and perform line-by-line debugs. In addition, the user can send individual JavaScript commands to the device without the need to program it. Any errors encountered while running uploaded code can be displayed on the LCD, enabling quicker debugging and faster prototype iterations.
According to Espruino, the use of JavaScript makes writing code much faster and less prone to error than other C-based languages. JavaScript also provides native support for JSON, a common data interchange format for Internet of Things (IoT) devices. Nordic’s nRF52832 multiprotocol SoC combines a 64 MHz, 32-bit Arm Cortex M4F processor with a 2.4 GHz multiprotocol radio (supporting Bluetooth 5, ANT, and proprietary 2.4 GHz RF protocol software) featuring -96 dB RX sensitivity, with 512 kB Flash memory and 64kB RAM. The SoC is supplied with Nordic’s S132 SoftDevice, a Bluetooth 5-certifed RF software protocol stack for building advanced Bluetooth LE applications.