WiringPi is a C language library for accessing GPIO pins.

learn more… | top users | synonyms

2
votes
1answer
33 views

Should some GPIO pins read high from start?

I have a Raspberry Pi 2 Model B. When I power it, with nothing connected to the GPIO pins and the OS still not booted (probably, I checked right after plugging it to the power) some of the pins show ...
0
votes
0answers
17 views

wiring pi - raspberry pi + pd

I am trying to figure out how to link a sensor input with pure data. does anybody have experience with "wiring pi" for reading the pi's GPIO in pd?
0
votes
1answer
44 views

Pin GPIO5 set to output by default with constant 2.4V output during and after boot

I have been experimenting with rpi in the last few days and made a simple user interface circuit, it contains a button and few LED's attached on top of rpi as you can see below. It works fine but the ...
0
votes
1answer
31 views

Raspberry PI Uart: pi to pi communication (B+, B2, CMIO)

Good day I am currently setting up UART communications for two Raspi's using wiring Pi's uart library. I have three Raspberry Pi's (B+, Compute Module IO board, B2). I have been able to make ...
1
vote
1answer
43 views

wiringPi and crosstool-ng

I have a Problem using wiringPi with crosstool-ng. First I got this Error: libwiringPi.so: file not recognized: File format not recognized I think the problem might be that ./build will not use ...
0
votes
0answers
39 views

Use a PIR sensor to detect motion and activate a piezo speaker

Im trying to write the code for a program that will use a PIR sensor to detect motion and then trigger a piezo speaker. I was following this tutorial https://pimylifeup.com/raspberry-pi-motion-sensor/ ...
1
vote
0answers
30 views

WiringPi traffic light in C [duplicate]

I am working on a project for my C programming class and need to use wiringPi on my raspberryPi. I need to create a traffic light (like a real one- red to green to yellow to red, etc.) and a ...
0
votes
0answers
36 views

PiGPIO with simulink

I'm using Simulink to read data from an ADC (MCP3008), which is connected to the RPI. I do this with wiringPI. I was wondering if you could use PiGPO the same way as you can use wiringPI to control ...
1
vote
1answer
151 views

Python: Use SPI with WiringPi

I've been searching google and stackexchange for quite a while: I would like to access an ADC (MCP3201) via SPI, to do so, I have to use Python and would like to use WiringPi. Sadly it seems ...
0
votes
1answer
76 views

Max SPI transfers / sec speed using WiringPi

I'm trying to interface with MCP3002 ADC using SPI and it's working nicely except for the amount of the samples I'm able to collect per second. I'm using WiringPi and the code is very simple: ...
0
votes
2answers
144 views

wiringPi cleanup command

I have some experience with the python GPIO library and am working on porting some of my code to C for better performance. Normally, at the end of programs, or when I break out of them with Ctrl-C, I ...
0
votes
1answer
72 views

Monitor data sent to 74HC595

I'm new to Python and Raspberry Pi, so please bear with me. I would like to intercept the bytes of data being sent to a 74HC595 switch register. GPIO pin 23 on my RPi is connected to the data pin of ...
1
vote
0answers
46 views

Can not use GPIO pins when Official Raspberry Pi screen is connected

I have a Raspberry Pi2 B+ model, with noobs distro installed. I had some programs using wiringPi library and an ultrasound component working (tested them using a separate monitor via HDMI). However, ...
0
votes
2answers
267 views

SPI: Raspberry PI master and Arduino slave

I'm trying to have a Raspberry PI act as a SPI master and send data to an Arduino Nano (one of the cheap clones). I partly succeeded, but I don't get a continuous communication, and some bytes get ...
1
vote
1answer
110 views

PWM - What does pwmSetClock() and pwmSetRange() mean?

I have looked at the WiringPi site and have found: pwmSetRange (unsigned int range) ; This sets the range register in the PWM generator. The default is 1024. pwmSetClock (int divisor) ; This sets ...
0
votes
1answer
76 views

HC-SR04 ultrasonic sensor reading becomes highly unusable when PWM is active

Good day I am trying to sample distance using a sonar/ultrasonic sensor for altitude measurement. When the PWM is not active, the sensor gives accurate measurements in centimeters, however with the ...
0
votes
0answers
83 views

Reading the MCP3304 over SPI in C with WiringPi

I wish to use the MCP3304 ADC with the RPi 2B to read a potentiometer. I have some basic understanding of how SPI works: namely, that to read from the chip I need to send it one bit every time it ...
0
votes
0answers
14 views

Motor not moving as input given by PI [duplicate]

I have connected motor to RasPi on Pin0(Actual PIN 11) to control motor as command given to motor using Raspi using WiringPi but when I give input from 0 to 5 it doesnr move BUT When I give input 5 it ...
1
vote
1answer
85 views

Servo motor using wiring Pi problems

I am looking for solution for something wrong happen in my programme i have configuration for control RC motor over RasPi using Wiring Pi here is code #include<stdio.h> #include<netinet/in.h&...
1
vote
1answer
71 views

allow other user to run wiringPiSetupSys()

I hava e program called outlet in which I communicate out on wiring pin 2 corresponding to BCM-PIN 27 on my Pi: #include "NewRemoteTransmitter.h" #include <stdlib.h> #include <stdio.h> ...
0
votes
1answer
43 views

wiringPiSetup: mmap (PADS) failed: Cannot allocate memory

I've been trying to change the TLC5940NT library for Arduino that can be found here https://sites.google.com/site/artcfox/demystifying-the-tlc5940 so that I can use it on Raspberry Pi, but I keep ...
3
votes
2answers
332 views

I2C using wiringPi or IOCTL in C, more than 2 bytes

I'm willing to send 20 bytes at a time to Arduinos via I2C bus. I'm writing a C program (that will become a Daemon) that should achieve this, and thus I downloaded via Git the last wiringPi library, ...
3
votes
2answers
73 views

Project needs multiple PWM

I'm working on a project that needs three (or more) PWM pins to work. But unlike Arduino, the Raspberry PI B+ has just one PWM pin. I've searched for solutions and I found that I can use the WiringPi ...
3
votes
1answer
85 views

Is it possible to speed up code processing time by increasing i2c baudrate?

Is it possible to speed up execution time of a c++ program in raspberry pi solely by increasing the i2c baudrate and increasing the sampling frequency of the sensors? I have the issue of sudden ...
0
votes
1answer
86 views

Sequential Control - time and signal based in C

i want to program in C a simple sequential control with the raspberry. The current task is: If a button is pressed, something (e.g. a LED) shall be switched on for 5 seconds and then go off itself. ...
4
votes
2answers
177 views

gpio not working

I'm quite new to the Raspberry world, and I cannot figure out what's not working on my tiny test project on my B+. I connected a red LED to the 3v3 (pin#1) and a resistor to the ground (pin#6), and ...
5
votes
1answer
313 views

Using BCM GPIO pin numbers with wiringPi C library

I'm a GPIO newbie experimenting with getting my Raspberry Pi to blink an LED with C using the wiringPi library. The example code at http://wiringpi.com/examples/blink/ (blink.c) compiles perfectly and ...
3
votes
1answer
80 views

Output Accurate, Detailed PWM signal

I'm building a quadcopter using the RPI 2 Model B. I'm currently using the Pi4J library (Java library that wraps the WiringPi library) for my project. All is going well except my ESC (Electronic Speed ...
1
vote
1answer
95 views

wiringpi2 digitalWrite() has no effect

Hello fellow rpi lovers :-) I've encountered a very strange problem in my rpi-based project: I'm trying to control just one pin in OUTPUT mode so I use more or less such code: import wiringpi2 ...
4
votes
2answers
113 views

What is the byte order for the WiringPi 16 bit I2C reads and writes?

The WiringPi library has APIs called wiringPiI2CWriteReg16 and wiringPiI2CReadReg16 for writing and reading 16 bits of data from a given I2C device at a specific register. Since the resulting 16 bit ...
1
vote
2answers
145 views

GPIO Broken - cannot power - depower pins

I got my pi2 this weekend and started experimenting. Now I tried adding LEDs to the GPIOs the way I know it from arduino and all the forums do it. Pin>LED>270 Ohm>GND I attached two: pin 17&27 (...
1
vote
2answers
279 views

I Cannot Change the State of the GPIO Pins

I got a RPi 2 model B v1.1 a while ago, and I am having way too much trouble trying to change the states of the GPIO pins. I have tried RPi.GPIO with a simple Python script and WiringPi in the command ...
1
vote
3answers
95 views

GPIO - Is there someway to make the GPIO mode permanent?

Is there someway to make the changes from the GPIO utility permanent? Right now if I restart my RPi the changes revert back. I know I can use a script, but is there someway I can make the script start ...
0
votes
1answer
71 views

WiringPi - GPIO Output Vs PWM

So in the GPIO utility from WiringPi there is a command to change the mode of the GPIO pins. There is input mode, output mode and PWM mode. What is the difference between output mode and PWM mode? Is ...
0
votes
0answers
15 views

Which GPIO pins are 0V at startup? [duplicate]

So I'm doing a project today with the Raspberry Pi 2 Model B and I realized that some (not all) of the GPIO pins output 3.3V at startup (I mean the data pins, not the power output pins). I cannot have ...
0
votes
1answer
194 views

Using Wiringpi in crontab to control GPIO pins on RaspberryPi

I am trying to create a cronjob, which sets the GPIO pin 10 to high at a given time. I am using the crontab of the default user "pi" and have verified, that the command gpio -g write 10 1 works ...
0
votes
1answer
84 views

Is there any way to read/get pin mode using python (and wiringPi) [closed]

I have a database with table pins with atributes pinNo, pinMode and pinState. I'm trying to read these raspberry pi's atributes using wiringPi in python script, and to write that data into the table ...
3
votes
1answer
255 views

Using WiringPi with Jasper (voice recognition)

I am using Jasper. The voice control part works, however the function I call when a certain word is said, does not. I'm trying to control a robot, sending high signals to certain pins on an L293D ...
0
votes
1answer
153 views

Python GPIO not reading inputs

Using a very simple input script to read a button press, Python GPIO isn't reading high when the button is pressed. The wiring is correct - I have checked it using wiringpi readall. Rpi. GPIO has ...
0
votes
2answers
479 views

2004-LCD with PCF8574-I2C and wiringPi (Python)

I try to interface my 2004-LCD display with wiringPi (in Python 3). The display is connected to a PCF8574-chip, so I need to use I2C. This is my test code: import wiringpi2 as wiringpi wiringpi....
0
votes
3answers
130 views

pwm fan on pin 18 help!

Can someone help me? I'm trying to control a fan using PWM and I cannot work out how to do it. This worked for a short amount of time and then stopped working. According to the docs, GPIO pin 18 ...
1
vote
2answers
91 views

Is it normal when a pin goes low it triggers a interrupt on an another one?

I have the following : Output Pin 17 (wiringPi pin number 0) to a relay module -> a LOW means the relay will let current pass. 5V pin to power the relay module Input Pin 22 (wiringPi pin number 3) ...
2
votes
2answers
994 views

How can I use a usb barcode reader with my raspberry pi

I want to get a WCR3237-700 ID Tech USB card reader and attach it to my raspberry Pi. The end goal is to use it to unlock a magnetic lock (when the correct card.) I am currently running PHP scripts ...
1
vote
0answers
106 views

Increase Performance of 4x4 LED Matrix (Multiplexing with pi4j)

I have coded a Display-Class to drive a X by Y LED-Multiplexing-Matrix with pi4j. However, I when driving a 4-by-4-Matrix I cannot get the framerate beyond roughly 30 fps, which still produces a ...
1
vote
1answer
1k views

How to read Wiegand card ID?

I need a simple script that outputs ID of presented card in console. I tried a lot of opensource code that based on WiringPi library, e.g. Pidoorman, its forks by Kyle Mallory and E.J. Dyksen, RFID ...
0
votes
1answer
202 views

GPIO HW PWM @ 143Hz and 20-80% duty cycle, with WiringPi's gpio utility

I've tried to find the solution from other threads but they all seem to miss the point to a certain degree, usually going into kHz and MHz, or into the SW GPIO territory that I don't need. I have a ...
-1
votes
2answers
877 views

using wiringPi and bcm2835

i am trying to make an aplication where i integrate rfid reader and an LCD, i have acomplished this by two different libraries, wiringPi for LCD and i found a library called rc522 for the rfid. and ...
1
vote
1answer
56 views

AdaFruit PiPlate(LCD+Keys) + PWM port + DS18B20 temp sensor

I would like to know if it is possible to use at the same time, the Adafruit LCD+Keys + the PWM port(to control a MOSFET) + one temperature sensor (DS18B20) and its oneWire protocol? I was concerned ...
1
vote
1answer
520 views

How to set a fixed Frequency and change duty cycle from 0 to 100 in Raspberry Pi hardware PWM? [duplicate]

I am trying to control a fan using Raspberry Pi. For that I tried to use the PWM pin in raspbery Pi. I am using Qt C++ to control the fan. I installed the wiring Pi and run the Wiring pi using command ...
2
votes
1answer
1k views

WiringPi: using interrupts with Python

I want my RaspberryPi to perform some actions when the light in a room is switched on or off. To do so, I connected a photocell to the GPIO pins. Previously, I used some python 3 program that queried ...