Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
GPIO stands for General Purpose Input Output and can be used to receive and send digital signals to and from simple electronics from the Raspberry Pi.
2
votes
Components need too many GPIO pins
Note that the discharge current is all going through the GPIO pin, so a more conservative design would do some current limiting, but this was simple and cheap. … Then the GPIO is set to be an input and we measure the time it takes for the resistor to charge up to a value that the input considers "high". …
2
votes
GPIO pins not changing value
/export
# make it an output pin
sudo echo "out" /sys/class/gpio/gpio20/direction
# turn the LED on
sudo echo "1" /sys/class/gpio/gpio20/value
# turn the LED off
sudo echo "0" /sys/class/gpio/gpio20/value … Note that the cathode of the LED (shorter leg, also facing flat side of LED) must be connected toward the ground side and the anode (longer leg) toward the GPIO pin. …
5
votes
Accepted
"Blinking" relay by toggling pins between input and output
The Pi's GPIO is only 3.3V.
A bad solution (do NOT do this!) … Pi GPIO
The GPIO pins on the Pi, like most processors, can be thought of as a pair of FETs and a pair of diodes something like this:
simulate this circuit
The complementary FETs M1 and M2 provide the …