CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 14:04:50 GMT
content-type: text/html; charset=utf-8
content-encoding: gzip
cf-ray: 965cb02e1c52165e-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=8883e23f-6f7e-4362-b85f-12e3302068c6; expires=Mon, 27 Jul 2026 14:04:50 GMT; domain=.stackexchange.com; path=/; secure; httponly
set-cookie: prov=8883e23f-6f7e-4362-b85f-12e3302068c6; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=iohOmZl8Q48beX19IrzVqDXEJOIj0xoQO8MigmkZT3I-1753625090-1.0.1.1-xRv0AiDGqC9Nf3r2qo0l._brUMYQJr7kulId6o0.gvlKQApQRAV4hgnzMtO.HYlc4sFLWqyuXJ30yfDGRhd1pMdrst1n3Z5CQrEBPLQBitE; path=/; expires=Sun, 27-Jul-25 14:34:50 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=HVeRyb6yhaCANhQDC_SRWfCqcQOrS9MNjaBnQVUspVo-1753625090648-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: 433ba17b-ceed-4425-81e6-65e080be5b26
x-worker-origin-response-time: 378000000
x-dns-prefetch-control: off
server: cloudflare
Newest 'analogwrite' Questions - Arduino 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 [analogwrite]
The analogWrite() function is used to generate a PWM (Pulse Width Modulation) output signal on compatible pins.
99 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
159
views
ESP32 LED PWM fade not working?
Not sure if this belongs more in an electronics SE, but I'll give this a try.
I'm trying to use an ESP32-C3 and an NPN transistor (2N5551) to PWM drive an LED (values below). I'm trying a simple fade, ...
0
votes
1
answer
82
views
Is it possible to use analogWrite() using an external Power Supply Unit?
As far as I know, my Arduino Nano can perform analogWrite() ranging from 0 to 1023 for 0 to 5 V respectively, but I want to control a DC motor which requires 9 V for good performance. Is it possible ...
1
vote
1
answer
83
views
When I use AnalogueWrite the voltage doesn't vary properly
I have a project where I want to control a pump, I use an Arduino, connected to a driver L298N and I will connect the pin 5, 6, 7 of the arduino to the pin IN2, IN1, ENA of the driver respectively and ...
-1
votes
1
answer
770
views
What should happen when sending analogWrite signal to a non-PWM pin?
I'm a very new to Arduino and any electrical engineering, I'm learning through some Youtube tutorials.
Based on my understanding though, sending analog signals to a non-PWM pin would just check for a ...
0
votes
1
answer
208
views
How to control PWM and digital pins at the same time over ethernet in arduino
I am using Controllino Maxi. It has an Arduino Uno inside it. I am trying to control the PWM pin D0 and digital pin R0 via python code. Below is the code I have upload on arduino:
Arduino Code:
#...
1
vote
1
answer
85
views
IF statement to run even if the requirement isn't met anymore
I have built a flasher for the headlamps on my race car. Whilst it works when I hold the switch down, if I release the switch and the circuit is closed my IF statements requirements are no longer met ...
2
votes
2
answers
647
views
Arduino fade in/out 5 leds circuit acting wierd
I have a simple arduino project with 5 leds, the project should start with led 1 fade through 50 millisec to reach full brightness, then led 2 and so on until led 5 then turn them all off and loop.
...
0
votes
1
answer
3k
views
Random "Compilation error: Error: 13 INTERNAL: exit status 1". No clue how to resolve or even what causes this error
I am a beginner with Arduino. I have a program that is intentionally simple.
The code refuses to compile, spitting out the error Compilation error: Error: 13 INTERNAL: exit status 1. I have gotten ...
2
votes
1
answer
365
views
Getting constant PWM value based on user input from serial monitor
I am trying to get a constant PWM value from the PWM pin based on the user input. For example: the user hits 1, the output PWM value is 100, if it is 2 the output would be 200. This will continue till ...
1
vote
1
answer
1k
views
Writing multiple inputs to serial port using a while loop
I am trying to get the serial monitor to prompt me to input two settings - the PWM level and the Resonance level. I am being prompted to input the PWM level, but before I can input the Resonance level ...
0
votes
1
answer
136
views
How fast does the Arduino execute code?
I am using the Arduino Nano every. Take this example where I am measuring two things A and B.
Loop{// this loop runs once every second
//Read A,B
//Change something using analogueWrite which ...
0
votes
1
answer
97
views
Check pin capabilities at compile time
Are there board-independent functions to check pin capabilities at compile time? I.e.
Can the pin be used as output, as in digitalWrite()?
Does the pin support PWM, as in analogWrite()?
Does the pin ...
1
vote
1
answer
4k
views
Why do I need to use latin-1 instead of utf-8 when using python with arduino?
When reading and writing with a python serial port connection to arduino, if I don't use latin-1 ('ISO-8859-1'), the results are not as expected. Like if I have
int outP = 5;
//...
int outV = Serial....
1
vote
0
answers
64
views
Phantom reading
my project is to control led diode and dc motor, test shield buttons, and check system run time.
Testing buttons and run time i have done.
Deal is with led and dc motor control.
I'm getting phantom ...
-1
votes
1
answer
2k
views
Can i connect in pin of relay module to Analog pins of arduino instead of digital pin?
Im a complete beginner
Im making a project using relay modules and arduino. but all the digital pins of my arduino are filled.
I wanted to ask if i can use the analog pins to connect my relay module ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
arduino-uno × 37
pwm × 28
analogread × 16
led × 11
digitalwrite × 11
arduino-nano × 8
arduino-mega × 6
pins × 5
serial × 5
motor × 4
potentiometer × 4
communication × 3
digital × 3
voltage-level × 3
arduino-leonardo × 3
programming × 3
loop × 3
lcd × 2
power × 2
arduino-due × 2
atmega328 × 2
sensors × 2
transistor × 2
timing × 2
more related tags
Hot Network Questions
- How to change opamp variable resistor to fixed resistor?
- Can expanding foam provide interior strength for a large model?
- How can my dwarves keep humans from reverse engineering their technology?
- In Jurassic Park, is the lysine dependency intentionally fake (in-universe)?
- Is it possible to use the PC power button to pre-select the OS in rEFInd UEFI dual boot setup?
- Why does Gaza Humanitarian Foundation (GHF) not distribute more food in Gaza?
- Balancing a Holy Water Bomb
- Why aren't there baleen whales at about the size of a dolphin?
- Partitioning heaps - Why?
- Not being introduced to the team – should I ask for it?
- Automatic drawing of polygon around selected polygons in QGIS
- Confusing/incorrect sentence in proof of Zorn's Lemma in Lang's "Real and Functional Analysis"
- About security concerns using in find -exec vs interactively performing the same task
- In Fantastic Four 2025 shouldn't this thing have taken years?
- Calculus Books Recommendation
- "I met a monk and philosopher." How many people did I meet?
- Why is time reversal not a natural part of the Galilean group?
- Not your ordinary affix riddle
- Can I switch the stand on my Apple Studio Display?
- How do Japanese people understand the reading of a single kanji with multiple readings in their everyday life?
- About Harp Pedaling for a Pentatonic Glissando
- How do I set up a recursive algorithm to repeatedly square root a positive real number?
- Shared-Memory Queue Implementation in C
- What were the two colored keys on a MUPID for?