Questions tagged [wiringpi]

Question regarding Wiring Pi - a GPIO Interface library for the Raspberry Pi

Wiring Pi - a GPIO Interface library for the Raspberry Pi

WiringPi is a PIN based GPIO access library written in C for the BCM2835, BCM2836 and BCM2837 SoC devices used in all Raspberry Pi. versions. It’s released under the GNU LGPLv3 license

Site: http://wiringpi.com/

Reference: http://wiringpi.com/reference/

Download: http://wiringpi.com/download-and-install/

Github: https://github.com/WiringPi/WiringPi

145 questions
1
vote
1 answer

Magnetometer sensor error in MPU9150

I coded the following program to get the acc, gyro, magnetic sensor value by using MPU9150 that is connected Raspberrypi 2 via I2c; I can get the proper acc and gyro value, but the magnetic sensor value is not proper. I displayed the register value…
kkj
  • 81
  • 1
  • 8
1
vote
1 answer

C# I²C sender Thread via wiringPi

Im trying to do a I²C Sending Worker with a working list. Im saveing the I²C Commands in a ConCurrentQueue and try to send it via the wiringPi Libary Im new to Threading and Queues, thats why i cant figure out how to do it the right way. I tried…
Daniel Bucher
  • 25
  • 1
  • 6
1
vote
0 answers

Build error in Geany

I am working on a project using a Raspberry Pi 3, I am trying to control NeoPixel leds and a lcd display with it so I used rpi_281x and wiringPi libraries to do it. My issue is that I dont know how to add the rpi_281x library to the builder of…
1
vote
3 answers

Python script can't find module

I am new to the world of programming, I want to use this piece of code to move a little servo: # Servo Control # Servo Control import time import wiringpi # use 'GPIO naming' wiringpi.wiringPiSetupGpio() # set #18 to be a PWM…
Skuffd
  • 334
  • 1
  • 4
  • 16
1
vote
1 answer

wiringPi library of Raspberry Pi 2 to rotate bidirectional DC servo motor

I am trying to spin the motor (RMCS-220X High-Torque Encoder DC Servo Motor and Driver) using Raspberry pi 2's i2c interface with the following code : #include #include #include #define Motoraddrs 0x08 //motor…
1
vote
0 answers

Node on Raspberry pi running npm wiring-pi how to send bit codes?

I'm currently trying to use node on a raspberry pi to host a HTTP server using socket.io to control it. I currently have WASD keys binded to events ( forward, left, right, and back ) when I press the corresponding keys use light up LED's using code…
Nicolay Hekkens
  • 530
  • 5
  • 18
1
vote
1 answer

Too few arguments to function 'Summation'

I'm mechanical engineer and very begginer for C language Want to use the function Summation for sum the all of the components in 1x14 matrix Cx1 Cy1 Cz1 also I want to do calculation of (Cx1 * transpose(Ma))/sum(Ma) (to get centroid) anyone can…
1
vote
0 answers

Memory leak? wiring pi

I am trying to read out my water meter using a CNY70 and some other components (including a comparator) on the gpio of a Raspberry PI B+. I do this using wiring pi interrupts and switch between rising and falling to deal with the false interrupts.…
eew
  • 11
  • 1
1
vote
1 answer

Using WiringPi C library through SSH on Netbeans

How can I use WiringPi library through SSH on Netbeans? When I run a simple HelloWorld program, it works. This is the output message: Copying project files to /root/.netbeans/remote/RASPBERRYPI/win-7pjgqkgjsj4-Windows-x86_64 at…
Y. Gopee
  • 113
  • 1
  • 1
  • 10
1
vote
0 answers

Raspberry Pi Python GT-511C3 programming error

[SOLVED] Solution in the updates below I tried looking for the solution, and I have no idea where to ask at this point. If anyone could help me with the following. I am connecting Raspberry Pi Zero to the GT-511C3 fingerprint scanner, and after…
RafazZ
  • 4,049
  • 2
  • 20
  • 39
1
vote
1 answer

When raspberry Pi motor controling program ended, motor still work

I am controlling motor with raspberry pi, using wiringPi. I made my code, and implemented. It worked. But when I exit the code, motor was still working. How can I stop this? while(1){ digitalWrite(EN1, HIGH); …
Ju-Ae
  • 11
  • 2
1
vote
1 answer

Adafruit SHT31-D and Raspberry Pi2 -- Unable to read data from sensor

hopefully one of you out there can help me! I am trying to use the Adafruit SHT31-D (an i2c device) board with my Pi2. I am going off of this datasheet to guide my coding efforts. I am using Wiring Pi (wiringpi.com) to facilitate things. I am able…
1
vote
0 answers

Service doen't start on Raspbian Linux Raspberry Pi 2 model B with LCD module

I have Raspberry Pi 2 model B with installed Raspbian Linux. I have to create and start linux service which prints text on LCD Module SC1602a. It looks like this: [] I create my daemon service using Java language 1.8_x86 , Apache Commons Daemon and…
Argamidon
  • 337
  • 1
  • 4
  • 15
1
vote
0 answers

QThread wiringPi GPIO

I use a RaspberryPi and Qt for my Qt for my embedded Project I have read about QThread. I tested QThread and it is working very fine. I want to control some GPIO pins in my Thread, but this doesn't work My GPIO pins are working, I have tested…
1
vote
1 answer

What is the wiringPi equivalent of wire.requestFrom(...)

I am translating an arduino I2C library to run on the raspberry pi, and I need to know how to run the equivalent of wire.requestFrom(address, size);. I may be able to implement it myself, but I will need to know what it does. What is the easiest way…