Please watch: "how to make fire fighting robot using Arduino uno and flame sensor | arduino fire fighting robot"
• how to make fire fighting robot using Ardu... -~-
This project demonstrates the use of the analogWrite() function in fading an LED off and on. AnalogWrite uses pulse width modulation (PWM), turning a digital pin on and off very quickly with different ratio between on and off, to create a fading effect.