Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

309
Views
Pigpio permission bloqued for my actual user on Raspberry-pi

I am trying to read GPIO port 5 on a Raspberry pi, after trying some packages like onoff I decided to use Pigpio. It does connect to GPIO but the problem is that I dont have permissions for that user. It says:

Sorry, you don't have permission to run this program Try running as root, e.g precede the command with sudo. /home/pi/IsriBruster-service/node_modules/pigpio/pigpio.js:54 pigpio.gpioInitialise();

The code I run for calling gpio is the next one:

const Gpio = require('pigpio').Gpio
const gpio5 = new Gpio(5, {mode: Gpio.OUTPUT});
console.log(gpio5.pwmRead());

Thank you for your help!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I tried this with the onoff library and it worked finally:

const Gpio = require('onoff').Gpio;
const gpio5 = new Gpio(24,'out');
io.sockets.emit('gpio',res)
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!