News

#define LDR A2 //Light dependent resisotr (LDR) connected to analog pin A2 #define LED 5 //LED connected to digital pin 5 int LDR_value; //variable to store result value read by LDR ...
A simple base experiment on Arduino by Loiseau créatif. Code with comments :-) The goal is to have stable, smooth and precise readings from a potentiometer connected on an analog pin of an Arduino.