CARVIEW |
Select Language
HTTP/2 200
date: Sun, 24 Aug 2025 04:22:07 GMT
content-type: text/html; charset=utf-8
content-encoding: gzip
cf-ray: 974011152c420bc9-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=ecf7f899-e4e3-4909-83e6-c8c59f93ebea; expires=Mon, 24 Aug 2026 04:22:07 GMT; domain=.stackexchange.com; path=/; secure; httponly
set-cookie: prov=ecf7f899-e4e3-4909-83e6-c8c59f93ebea; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=4k3k5ohMpqDa6DZRVyGKWDDj14Bd7K.v9GDlQXMgNAE-1756009327-1.0.1.1-E45WhaHJq3QP8gQlWn9Xn5QsQjEPM9_c0ogEaxqUMX8_U_DGkw2Tk84JcDkCOwhA07yMvhSc.wIHOF9oEoamBQ4.vpLvKSt4g64g8VdR2W4; path=/; expires=Sun, 24-Aug-25 04:52:07 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=TbQMsc.Y0XI40URwXrcQGGcX7m4nz0TiLAYosvtRu5k-1756009327798-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 1f32318f-b9a4-49cc-aecd-13617e5a731f
x-worker-origin-response-time: 867000000
x-dns-prefetch-control: off
server: cloudflare
Newest 'pwm' Questions - Raspberry Pi Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [pwm]
Pulse-Width Modulation (PWM) is a technique used for controlling the power given to electrical devices. The average power supplied is controlled by rapidly turning the supply on and off. Questions here concern driving PWM outputs from the Raspberry Pi.
367 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
0
answers
186
views
Linux rasp5Dev 6.12.25+rpt-rpi-2712 and 6.12.28-v8-16k+ #1877 regression error, no /sys/class/pwm/pwmchip2 Pi5 [closed]
Earlier kernels or maybe prior updates the device tree was correct and PWM functioned correctly. So Pi5 PWM functioed previously. I recently wanted to verify something and tried using the PWM on my ...
0
votes
0
answers
169
views
pwmchip2 not appearing in /sys/class/pwm on Raspberry Pi 5
I have a Raspberry Pi 5 2GB. I just flashed the newest Raspberry Pi OS 64bit. I added dtoverlay=pwm-2chan to my /boot/firmware/config.txt and rebooted. No further actions where done on this system. ...
0
votes
2
answers
300
views
0
votes
0
answers
46
views
Impossible to use audremap and I2C at the same time on a Raspberry Pi Zero 2W
I'm using GPIO13 to generate sound with audremap and a Raspberry Pi Zero 2W.
I'm using GPIO3 SDA and GPIO 5 SCL to display on a LCD I2C screen at the same time and GPIO18 to power on the back light ...
-1
votes
1
answer
174
views
PCA9685 not detected on Raspberry Pi I2C (address 0x70) – any workaround?
I’m trying to control 12 servo motors using a PCA9685 16-channel PWM driver with my Raspberry Pi 4.
The board shows up on I2C at address 0x70 (confirmed via i2cdetect), but I’m unable to get it ...
0
votes
2
answers
127
views
0
votes
2
answers
174
views
Unable to set GPIO18 to PWM
The present state of GPIO18 pin is (according to pinctrl get 18) :
18: op -- -- | lo // GPIO18 = output
I want to set this pin to PWM. I use this script :
import RPi.GPIO as GPIO
import time
GPIO....
-1
votes
1
answer
37
views
Cannot control PWM frequency on GPIO18
I'm using this script to control GPIO18 :
import RPi.GPIO as GPIO
from time import sleep
ledpin = 18
GPIO.setmode(GPIO.BOARD)
GPIO.setup(ledpin,...
-1
votes
1
answer
184
views
raspberry pi zero 2w inconsistent GPIO configuration after DTO settings
i am trying to add Basic Audio Output to a Raspberry Pi Zero 2W. I followed the same metod proposed in many tutorials using Device Tree Overlay :
1st step adding :
dtoverlay=pwm-2chan,pin=18,func=2,...
0
votes
0
answers
45
views
Raspberry LED matrix
I've got an RPi4 running a 40x120 led matrix divided to 2 20x120 segments on 2 pins for the 2 pwm channels but the FPS is not great (it's around 10-15). My theory is if I'd put the leds onto a RPi5 ...
0
votes
1
answer
51
views
WS2812E Not lighting up
I am trying to use a WS2812E LED-Strip with the raspberry pi.
I am using the HW131 Power Supply and a RaspberryPI 3B+. The LED strips GND is connected to both the HW131 and the RaspberryPI GND. The ...
0
votes
1
answer
87
views
Mapping PWM chip and channel in c# to PWM, Function and/or ALT
I'm following the instructions in this document in order to get hardware PWM working.
I added this line to my /boot/firmware/config.txt
dtoverlay=pwm,pin=18,func=2
According to the docs this should ...
0
votes
0
answers
88
views
Permission problem with pwm and ros2
Good afternoon, I have a problem for a project. Let me explain, I'm trying to do a lawn-mower, it's a personnal project. I'm currently using a RPi 4 4bg, It runs on raspbian (Debian GNU/Linux 12 (...
-1
votes
1
answer
510
views
How can I safely connect a 12V PWM fan with external power to a Raspberry Pi for PWM control?
I'm working on a project where I want to control a 12V PWM fan with a 4-pin header using a Raspberry Pi.
I am aware that a Raspberry Pi does not require a fan in day to day use cases but the reasoning ...
0
votes
2
answers
388
views
Only 1 PWM pin working when controlling via sysfs
I’m using sysfs to control my rpi5’s pwm andI’m having an issue where only one of my pwm pins is outputting a value (The pin that is working is gpio 18/physical pin 12/pwm2). In the pinout.xyz page, ...
- The Overflow Blog
-
-
Hot Network Questions
- Having trouble identifying a font
- Why didn't Alexander sail his Army across Gulf instead of Gedrodsian desert?
- Resonance in hexa-2,4-dienyl cation
- Would weekly* seasonal changes still allow a habitable planet?
- Why is muscle cramp called a “charley horse”?
- What does the Verb, "Sod," mean in Jubilees 24:3?
- Could you charge a battery using with a long radio aerial?
- How can I ensure players don't immediately leave once things get dangerous in a horror setting?
- Why can the point of application of a force be moved along its line of action in a rigid body?
- Is ContainsAny implemented incorrectly? (Version 14.2.0)
- A word for someone who seems unassuming and is overlooked, but turns out to be powerful
- Since the universe is expanding and spacetime is a single fabric, does time also stretch along with the expansion of space?
- What is the purpose of pulling up the output of a comparator to VCC?
- Confusion about infinity in gravitational potential energy (GPE)
- Is Uni ever pronounced /y:'ni/?
- Spectral sequences every mathematician should know
- Splitting a long introduction into collapsible elements easier to read and translate
- Which passport to use at immigration counter
- Best LaTeX environment to recreate this example
- Fewest cages for unique Killer Kropki Sudoku
- how should one interpret a cert who's Issuer is different from the DirName of the X509v3 Authority Key Identifier extension?
- shift option doesn't work with tikz-matrix's nodes?
- Simple present tense of "wear" vs. present progressive form of "wear"
- How to get eglot-server-programs executables?