We've implemented a web server in Node.js that provides APIs for controlling GPIOs, sampling accelerometers, and reading ADC values. Now we tie it together with a web page that uses these services.
The service-md28adc package demonstrates how to run C code called from Node.js. This code implements the reading of the i.MX28 ADC registers in the CPU via memory mapping of these registers.
In "Interfacing IoT with embedded using Node.js, part 1," we introduced the npm package ts7680-demo-server. We will continue to examine this package in the next three installments, after which we tie it all together with a web page that provides a user interface for controlling a Technologic Systems TS-7680 board.
In part 1 of this sample project, we show how to implement support for the TS-7680 hardware and provide a simple web page for controlling the board.
Developing in a traditional embedded systems language such as C is hard, yielding long development times and slow time to market. Newer languages such...