A Node.js wrapper for the pigpio C library enabling fast GPIO, PWM, servo control, and interrupt handling on Raspberry Pi.
pigpio is a Node.js library that provides a high-performance interface to the Raspberry Pi's GPIO hardware, enabling precise control of digital I/O, PWM, servos, and interrupts. It solves the need for low-latency, accurate timing in robotics, IoT, and hardware prototyping projects by wrapping the pigpio C library with a Node.js API.
Developers building robotics, IoT devices, or hardware projects on Raspberry Pi who need precise timing and control over GPIO pins from Node.js applications.
Developers choose pigpio for its microsecond-accurate timing, high performance (millions of operations per second), and comprehensive feature set—including PWM, servo control, and interrupt handling—all accessible through a clean Node.js API.
Fast GPIO, PWM, servo control, state change notification and interrupt handling with Node.js on the Raspberry Pi
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports up to 3.5 million reads and 2.5 million writes per second on Raspberry Pi 4, as benchmarked in the README, enabling fast hardware interactions.
Alerts and notifications provide state change timing accurate to a few microseconds, crucial for precise sensor readings like HC-SR04 distance measurement.
Includes PWM, servo control, waveform generation, glitch filtering, and interrupt handling, covering diverse IoT and robotics needs.
Wraps the complex pigpio C library with an intuitive JavaScript interface, making it accessible for Node.js developers without deep C knowledge.
The underlying pigpio C library allows only one running process to access GPIO at a time, restricting multi-process or containerized applications.
Requires sudo or root access to run, which complicates deployment in secure or restricted environments and adds setup overhead.
Exclusively tied to Raspberry Pi and dependent on the pigpio C library, making it non-portable to other hardware platforms.