CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 20:40:12 GMT
content-type: text/html; charset=utf-8
cf-ray: 965ef356589d8a2a-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=746fd1a6-84fc-4680-bdd6-2641955b5f58; expires=Mon, 27 Jul 2026 20:40:12 GMT; domain=.stackexchange.com; path=/; secure; httponly
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: 72f29ba7-c820-422f-ad8b-788f586f52aa
x-worker-origin-response-time: 417000000
x-dns-prefetch-control: off
set-cookie: prov=746fd1a6-84fc-4680-bdd6-2641955b5f58; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=cYP6UX9uaSJPFgKz07qK2uWQi8iOu7YPwrXDIplok48-1753648812-1.0.1.1-A4bKCIkOr.qVgWKQsRDqQuAH1ED.FoYWR5ZK56Wjm8_auP12duIfyr5QebJqT.ivvtIQdMeIAUm1DOC6XZSGiUyf0CbF3lyG47jn6Sui0qw; path=/; expires=Sun, 27-Jul-25 21:10:12 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=WsVBPJyrNZOxBlmgD1LF9vygc35tQbMx74QX1a9bKUk-1753648812966-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
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
160
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
- If a mathematical theorem is true, what it is true of?
- Sci-fi book where aliens make contact, ask humans to transport themselves to nearby portal
- Easy ways to draw vector diagrams in TikZ?
- Blinded despite Blindsight?
- Not your ordinary affix riddle
- Why legacy paying method for ZKSync?
- Will this work as an XOR gate?
- Is this a violation of open source?
- Heretofore I think I have been using 'heretofore' incorrectly
- When was the last time all humans were on the ground not in the air?
- Why are police personnel of all ranks called officers?
- What is the Greek word for God used in Codex Sinaiticus? John 1
- When was thermal expansion in solids first described?
- What is the weight of holy water?
- Story that taught cryptography in the form of a manga
- When did the OEIS get even better?
- Can Spi flash memory's contents be corrupted from heat?
- Were the Fantastic Four the only superheroes on Earth-828 in The Fantastic Four: First Steps?
- Anonymizing a submission for double-blind review
- Is there such a thing as 'aerospace grade software'?
- Does passive DisplayPort-HDMI adapter work with 4K 60Hz, if host supports DP 1.2 and HDMI 1.4?
- how is it possible for a player to have crossed 2400 and secure 3+ IM norms to stay FM
- Hypothetical copyleft exposure developer on proprietary project, legal?
- Rec Letter from Professor (who I haven't done research with) or from Work Supervisor