-
Instillation
- Load raspbin onto a raspberry pi. I used the Raspberry Pi 1 Model B as I have a few laying around, and loaded 2019-09-26-raspbian-buster-lite onto it.
- Install Node Red - I used the bash script
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
- Start Node Red as a service:
sudo systemctl enable nodered.service
- Install GIT:
sudo apt install git
- Install node-gyp:
sudo npm install -g node-gyp
- Install USB Lib:
sudo apt install libusb-1.0-0 libusb-1.0-0-dev
- Install Libudev: sudo apt install libudev-dev
- Plug in module connected to device
- Install Green Bean, in the node red directory
cd ~/.node-red
npm install green-bean
- Add Green bean to the settings.js file for node red: Add greenBean:require("green-bean") to functionGlobalContext function
- Change user permissions of the HID hardware- /dev/hidraw0 with the following VID/PID: 04d8:fcf0
echo "KERNEL==\"hidraw*\", SUBSYSTEM==\"hidraw\", ATTRS{idVendor}==\"04d8\", ATTRS{idProduct}==\"fcf0\", MODE=\"0666\"" | sudo tee /etc/udev/rules.d/greenbean-hid.rules
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.