CARVIEW |
Select Language
HTTP/2 200
date: Sun, 24 Aug 2025 10:46:00 GMT
content-type: text/html; charset=utf-8
content-encoding: gzip
cf-ray: 97424368b9c720c5-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=21fa6bd6-d702-4e54-ab14-edf253ab9e0a; expires=Mon, 24 Aug 2026 10:45:59 GMT; domain=.stackexchange.com; path=/; secure; httponly
set-cookie: prov=21fa6bd6-d702-4e54-ab14-edf253ab9e0a; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=QziAgsQrmOxmkUb58wOsuTmAaoxsxLxTgIpVV1ZRy_k-1756032360-1.0.1.1-hSDskfxuvjEnSJF3JBCgP4aaP2V3yV0VmHZQ9mh5PkaPiw3VQKSzARD45f.iewxggkp5Y4JhgPYiYuXYJHqUZkzJ7UB0hXqC9RsTbjBO1M4; path=/; expires=Sun, 24-Aug-25 11:16:00 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=FMl0m506oWodJVJjQH.CGXVlx9AS58tAXZLgwtXz.Hk-1756032360103-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: 6ab8f944-0195-4c4e-8c57-88c40cde2eac
x-worker-origin-response-time: 288000000
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
175
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
46
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
48
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
511
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
- to suggest that they were married
- What is the meaning of “DL” on FRANKFURT ILS Chart
- Michael Huemer's paper argues reincarnation is real: Is there any flaw in his reasoning?
- Can you ask the editor to send a partial review?
- Why does the result of applying the minus operator depend on newline characters surrounding it?
- subject verb agreement in Collins Dictionary usage of “temperatures"
- Which Vampire Films exist in the WoD?
- Activate the Laser Gates
- Tomonaga-Schwinger evolution equation: Rigorous setting?
- Example of two topologies with same Borel sets but different τ-additivity
- MOSFET gate driver
- Is the Royal Review Board’s Five Diamond Award in Ocean's Thirteen fictional?
- Are trills only for high-pitched notes?
- Resonance in hexa-2,4-dienyl cation
- Would weekly* seasonal changes still allow a habitable planet?
- Inconsistent volume numbers of old journal article in contemporary and modern citations?
- Buck LED driver inductor placement
- Does 我们员工的休假已经达到了150多天 include weekends as holidays?
- how should one interpret a cert who's Issuer is different from the DirName of the X509v3 Authority Key Identifier extension?
- What is the principle of non-liability in the European Union wrt the US Section 230 and social media?
- Is it true that string theory is definitively wrong on account of it being a theory of an anti de Sitter space?
- How are the crosswords made for mass-produced puzzle books?
- Incoming water pipe has no apparent ground
- Solve the crossed ladders problem