Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
/ pwm-controller Public archive

Node.js React app that controls servos via a PWM Hat mounted on a Raspberry Pi

License

Notifications You must be signed in to change notification settings

pozil/pwm-controller

Repository files navigation

PWM Controller

Node.js React app that lets you control 6 servos connected to a Raspberry Pi PWM Hat.
The app leverages the following driver to control the PWM Hat via the i2c protocol.

PWM controller app screenshot

Installation

Before installing the app you need to enable i2c on the Raspberry Pi.
Follow these steps to enable it while ignoring the Python related instructions: you do not need to install libi2c-dev and python-smbus (first and last set of instructions).

The app can only be installed or built on a Raspberry Pi. Installing it or building it in any other environement will fail due to the lack of i2c support.

Run this command to build the app:
npm install && npm run build

Run this command to start the app:
npm start

You can then access the app using a web browser:
http://RASPBERRY_PI_IP:8080/

About

Node.js React app that controls servos via a PWM Hat mounted on a Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •