Pulse Width Modulation - English
- Questions posted on Forums
- Arduino Tutorials - English
-
Exam registeration
When can I register for the exam. Can we register for the exam whenever we are ready or is there a specific date in which we should appear for the exam?. Can I get the complete details about this.
00-01M 0-10SJune 18, 2025, 2:29 a.m. JoelJacob
-
Kindly explain code line inside if statement
analogWrite(fwdbuttonState == LOW ? ICpin2 : ICpin7, motorValue); digitalWrite(fwdbuttonState == LOW ? ICpin7 : ICpin2, motorValue);kindly give explanation for these two lines, how can we change directions we have not used bckbuttonState variable.
08-09M 30-40SJune 20, 2025, 2:26 a.m. itinepaorganizer
-
Doubt in tutorial Pulse width Modulation
At time 9: 30 in the tutorial the input to the Function map (potvalue, 0,1023,0,255) is not explained. and At time 9: 45 in the tutorial the input to the Function analogWrite (fwdbuttonState == Low ? ICpin2: ICpin7,motorvalue); digitalWrite (fwdbuttonState == Low ? ICpin2: ICpin7,motorvalue);is not explained properly..Thanks!
11-12M 10-20SJune 20, 2025, 9:46 a.m. Brucebanner123
-
how digital value can be written by analogWrite command?
analogWrite(fwdbuttonState == LOW ? ICpin2 : ICpin7, motorValue);in above line how motor value (digital value) can be written by analogWrite cammond?also in video two line are as analogWrite(fwdbuttonState == LOW ? ICpin2 : ICpin7, motorValue);digitalWrite(fwdbuttonState == LOW ? ICpin7 : ICpin2, motorValue);whereas in source code lines are as analogWrite(fwdbuttonState == LOW ? ICpin2 : ICpin7, motorValue);digitalWrite(fwdbuttonState == LOW ? ICpin7 : ICpin2, LOW);why discrepancy like this ?also why you have used analogWrite in above line and digitalWrite in below line? why it is not digitalWrite in both lines?relpy soon...
08-09M 40-50SJune 20, 2025, 9:21 a.m. nirav2009ec@gmail.com
-
Logic of the program.
Would you please explain the if condition of the program and why was it used? Also why we are using digitalWrite in the conditional loop and also what does "if fwdbuttonstate==LOW?ICpin2" and "if fwdbuttonstate==LOW?ICpin7" means??
09-10M 40-50SJune 20, 2025, 2:41 p.m. srs7
-
Conditional statements in if else
In the if statements there r two functions analogwrite() & digital(), analogwrite() is to power up the selected icpin2/7 depending on the conditional logic, with motor value but idint understand why u r using digital wrte()
09-10M 40-50SJune 20, 2025, 11:46 a.m. Kastoori
-
Can we give potentiometer value via program
Sir,I have a small doubt that can we give the potentiometer value through arduino code itself instead of rotating the knob of potentiometer. If so please let me know.
11-12M 0-10SJune 20, 2025, 11:35 a.m. Mvspc
-
1
Overview of Arduino -
2
Electronic components and connections -
3
Introduction to Arduino -
4
Arduino components and IDE -
5
First Arduino Program -
6
Arduino with Tricolor LED and Push button -
7
Arduino with LCD -
8
Display counter using Arduino -
9
Seven Segment Display -
Pulse Width Modulation -
11
Analog to Digital Conversion -
12
Wireless Connectivity to Arduino -
13
Introduction to IoT -
14
Sending data to the cloud using IoT devices -
15
Assembly of Robot -
16
Robot Control using Bluetooth -
17
Assembly programming through Arduino -
18
Digital Logic Design with Arduino -
19
AVR-GCC programming through Arduino -
20
Interfacing LCD through AVR-GCC programming -
21
Mixing Assembly and C programming -
22
Getting Ready for Arduino FLOSS -
23
Arduino Programming with Scilab and Xcos -
24
Arduino Programming with Python -
25
Arduino Programming with Julia -
26
Arduino Programming with OpenModelica -
27
Arduino on Cloud
Questions posted on ST Forums:
Outline:
About Pulse Width Modulation About duty cycle and frequency Formula to calculate the duty cycle Experiment to control the brightness of LED by varying the duty cycle Experiment to control the speed and direction of a DC motor Circuit connection explanation of the above experiments Live setup of the connection Source code for the above experiments Compile and upload the program Demonstration of the output