Questions tagged [gpio]

General Purpose Input/Output (GPIO) is a generic pin on a chip whose behavior (including whether it is an input or output pin) can be controlled (programmed) by the user at run time.

GPIO pins have no special purpose defined, and go unused by default. The idea is that sometimes the system integrator building a full system that uses the chip might find it useful to have a handful of additional digital control lines, and having these available from the chip can save the hassle of having to arrange additional circuitry to provide them. For example, the Realtek ALC260 chips (audio codec) have 8 GPIO pins, which go unused by default. Some system integrators (Acer Inc. laptops) employing the ALC260 use the first GPIO (GPIO0) to turn on the amplifier used for the laptop's internal speakers and external headphone jack.

Further information and deeper analysis: Opus on wikipedia

1751 questions
0
votes
1 answer

Tkinter and GPIO.add_event_detect - TypeError?

I've been working on adding a GPIO physical button function to a basic Tkinter GUI i've been developing. (gui code is based on this example: http://pythonprogramming.net/change-show-new-frame-tkinter/) Based on suggestions made here, I've added a…
naturesrat
  • 21
  • 1
  • 5
0
votes
0 answers

GPIO 2 and 3 wont go low on PI B+

I have a project that is using almost all of the GPIO available on the pi B+ so I have chosen to use GPIO 2 and 3 (pins 3 & 5) to drive relays. These pins also act as SDA and SCL. Using RPi.GPIO I cannot get these two GPIOs to go low. Is there…
SpaceCase
  • 148
  • 2
  • 10
0
votes
1 answer

Can GPIO.output be assigned to a variable? Raspberry PI

Can GPIO.output be assigned to a variable like light1ON = GPIO.output(18,HIGH) in python? Because when I do this it automatically turns the light on even knowing I didn't call light1ON.
user5765700
0
votes
1 answer

Python GPIO raspberry pi

So bassicaly the user will press the picture_pin buton first, then this calls the picture_taking() function which then it should stop and wait for either (Accept_Pin or Decline_Pin) buttons to be pressed, it should not let the user to continue…
0
votes
1 answer

Editing sudoers file still asks for password

I'm trying to have a python script access GPIO pins on an Odroid XU4, which requires sudo. I want to simply blink a GPIO pin from off to on, then back off again. The python script is fine, but it asks for a password when I run it. I've edited my…
M. Bedross
  • 109
  • 1
  • 2
  • 13
0
votes
1 answer

Running wiringPi-python hardware PWM withoot root

I am attempting to run wiringpi to control the hardware PWM on GPIO 18 on the pi. If I use wiringPiSetupGpio() as below and I run as root everything works. Using wiringPiSetupSys() as documentation suggests does not work, even when ran as…
SpaceCase
  • 148
  • 2
  • 10
0
votes
1 answer

Ble Beacon Gpio read/write

I'm not a ble guru, I worked on some modules to expose some simple service with pairing and bla bla :9 One of our customer ask me if it possible to control mcu gpio, with a beacon service running. For what I know beacon standard is only a lighthouse…
sukoy
  • 11
  • 1
  • 3
0
votes
1 answer

Testing Pi2 B GPIO

As a newbie Im testing my Pi 2 B's GPIO. Why doesn't the code below switch the 15 pin on and off with an interval, but keeps it turned on? import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(15, GPIO.OUT) for i in…
Willem-Jan
  • 67
  • 8
0
votes
1 answer

Raspberry PI GPIO Java Code Error

Here Is the Console Log root@raspberrypi:/home/pi# java -jar /home/pi/keypad.jar Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at…
Andrew Aubury
  • 113
  • 12
0
votes
0 answers

Interfacing push button switches with Raspberry pi 2

I am making a Braille keyboard, and I need help in interfacing buttons with RPi. As Braille is a 3*2 matrix, I will be connecting push button switches according to the braille matrix. Problem statement: If I press button 1*1, on my text editor, 'A'…
0
votes
1 answer

Access GPIO pins of Raspberry Pi 2 with ROS

I'm trying to access the GPIO pins of a Raspberry Pi 2 using the robot operating systen ROS. I know, there are many tutorials on this topic. But my problem is as follows: The recommended Linux distribution for ROS is Ubuntu. Since there are other…
Falko
  • 17,076
  • 13
  • 60
  • 105
0
votes
2 answers

Access a GPIO AM335x board as RESET and minimum CPU usage

In my application there is a thread which takes care of RESET button that when and for how much time it was pressed; on the basis of that we take the action. Problem is to minimize CPU usage: 1.popen usage fp=popen(RESET_GPIO_VALUE,"r"); with this…
0
votes
0 answers

Trigger action on button press on raspberry

I want to trigger an action on button press whatever I'm doing in the program. This button press have to change a global value necessary to do some different action based on this value. In the while loop I'm reading from RFID module if a valid card…
Floyd Crimson
  • 13
  • 1
  • 4
0
votes
1 answer

Attribute error : RPi.GPIO.PWM has no attribute 'ChangeDutyCycle'

So i'm making a little robot using a raspberry pi B+ , everything is going fairly nicely, but I get this error message that I don't seem to be able to solve .. Attribute error : RPi.GPIO.PWM has no attribute 'ChangeDutyCycle' Here's two things you…
Dominus
  • 808
  • 11
  • 25
0
votes
0 answers

How to correctly remove interrupt callback in Beaglebone black

Adding interrupt callback for gpio pin P9_24 like this class Birdemke: ... def __init__(self): #initializatioin of variables ... self.count = 0 def startReadingValue(self): …
1 2 3
99
100