New answers tagged gpio
0
votes
Gap with GPIO pin
If you want to write your own code I suggest you avoid the magic numbers (which are error prone and almost impossible for anyone to read).
I have listed a fragment of my code which may help.
(NOTE ...
- 56.9k
0
votes
PIR sensor using 3.3v?
You can create a 5V rail using a breadboard. If not that, then you can use a 9V battery and pass it through a voltage regulator like lm7805 to get the desired voltage. To create a rail, connect 5V to ...
- 1
0
votes
Checking angle of servo motor with a Raspberry Pi 3B+
RC models servos behaves as an open loop (no feedback) from the controller point of view, you set the desired angle by modulating the PWM signal (this could be easily done trough a library) and the ...
- 1
2
votes
Accepted
DC Motor not responding to GPIO Motor
I found out that what needed to be done was to convert Broadcom numbers to GPIO numbers on the Raspberry Pi, as hinted in user joan's comment.
After following this mapping: https://www.raspberrypi-spy....
0
votes
DC Motor not responding to GPIO Motor
You have 3-pin controller board so you should initialize your Motor class with enable pin, e.g. for Motor1:
motor1 = Motor(forward=15, backward=13, enable=11)
Since you got the "Motorshield"...
- 490
0
votes
DC Motor not responding to GPIO Motor
You might find the actual gpiozero documentation for motor clearer although Robot might be more appropriate.
- 56.9k
0
votes
Accepted
Motor Controller Board Uncertainty for Raspberry Pi
I suggest you look at motor driver boards based on one of the following chips
L298N
L29D
L9110S
Each chip allows you to control two motors, forward, backwards, and control speed (using PWM on the ...
- 69.3k
0
votes
Checking angle of servo motor with a Raspberry Pi 3B+
You can try and correlate this yourself, as even different servos of the same make and model (nb. I've mostly only used cheap little things like generic SG90s) will have clear differences this way, ...
- 57.6k
1
vote
Checking angle of servo motor with a Raspberry Pi 3B+
Generally servos have no method of reporting their position. You command it to an angle and have to assume it went to that angle.
I assume gpiozero just returns the angle you last requested. Given ...
- 69.3k
5
votes
Accepted
RPi 4: What happens when reverse voltage is supplied to the GPIO header?
The expansion header GPIO must not be exposed to a voltage outside the range 0V to 3.3V.
The expansion header voltage rail pins have no protection. If you reverse the voltage on the 3V3 or 5V pins ...
- 69.3k
0
votes
Raspberry Pi multiple NFC readers
I am new to Python
wiring as per above
from the above i understand that you have created a class
how do i use this class..
i copied your class and named it as MultiNFC.py
my program to read 2 RFID is
...
0
votes
Threading using Python in Raspberry Pi for GPIO inputs
In both lines you initialize thread object you make a mistake passing whatever your functions return instead of the function itself. So simply replace both lines with:
Thread1 = Thread(target=...
- 490
2
votes
How to run Hyperpixel 4.0 on I2C-0 (GPIO's 44&45)?
The I2C pins on the touch controller are wired to the software I2C pins (GPIO 10 & 11) on the display. Nothing you can do in software can move these PCB traces. The i2c_gpio driver that is loaded ...
- 21
1
vote
Accepted
how to connect to GPIO connectors if they are already occupied
To connect something else to the GPIOs you have the following options:
Use stackable pin header (or the 90 degree one) between the boards you show and solder your button to it.
Use PCB with stackable ...
- 490
0
votes
Upgraded RPi and lost my functionality using gpio zero
It looks like the distro package was not included in bullseye:
> apt search python | grep -i colorzero
python-colorzero/oldstable,oldstable 1.1 all
python-colorzero-doc/oldstable,oldstable 1.1 all
...
- 57.6k
0
votes
How to connect keypad to Pi Zero
Use one of these to attach a USB keyboard and mouse
https://thepihut.com/products/ethernet-hub-and-usb-hub-w-micro-usb-otg-connector
- 1
0
votes
Can't turn on ACT LED on baremetal Pi3
The shift should be 15 bits not 16, your 1 as the first bit would already be in bit 0 before the shift and needs to be in bit 15, ie the 16th bit.
Your code is placing a 1 in the 17th bit so is in the ...
- 1
Top 50 recent answers are included
Related Tags
gpio × 3269python × 523
rpi.gpio × 313
raspbian × 304
pi-3 × 280
led × 196
hardware × 191
sensor × 149
pi-2 × 147
i2c × 135
power × 133
pwm × 117
pi-4 × 106
electronics × 101
relay × 92
wiringpi × 91
pigpio × 86
serial × 83
spi × 76
pi-3b+ × 70
uart × 70
pi-zero-w × 64
boot × 60
audio × 60
power-supply × 59