Exemple Arduino with Sensor :
Tutorial Arduino :
Controll PWM :
- 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://www.arduino.cc/en/Tutorial/Memsic2125
- https://fr.flossmanuals.net/arduino/comment-bien-structurer-son-code/
Schema :