“fake” an analog voltage by producing a series of voltage pulses at regular intervals, and varying the width of the pulses. This is called pulse width modulation (PWM)
implicit design
Attentional Demand / Initiative
Questions:
Why 5V pin does not give 5V voltage? VIN pin gives
How to wrap the wire onto the potentiometer?
How to use arrays in Arduino? Can we extend the arrays after defining them? Like the add() function in JS?
Difference between ~ and A3 for example? I thought A3,A4, etc. mean the pins are capable to analogWrite/Read, then what is ~? pins 2, 3, 5, 6, 9, 10, 11, 12, A2, A3, and A5 generate PWM signal, Does it mean that these pin can analogWrite? Can they analogRead?
In the little Chinese piano project, why were the sound flickering between two notes when pressing two buttons at the same time?
Why does the tone made by self-made tone function sound different from the tone generated by tone function? Is it because
delayMicroseconds()
is not accurate enough?
To-Do:
Try the parameter in delay() and the third parameter in tone()