Exemple Arduino with Sensor :
Tutorial Arduino :
- https://www.arduino.cc/reference/en/language/functions/analog-io/analogwrite/
- https://electronicshobbyists.com/arduino-pwm-tutorial/
- https://www.youtube.com/watch?v=iP_f0KY7lx8
- https://create.arduino.cc/projecthub/yqmt8708/how-to-control-led-brightness-539d5b
- https://gist.github.com/ptweir/3444354
- https://diygeeks.org/tutorials/arduino-starter-kit/led-brightness-control-with-arduino-analog-input-analog-output/
- https://www.arduino.cc/en/Tutorial/Memsic2125
- https://fr.flossmanuals.net/arduino/comment-bien-structurer-son-code/
Schema :