Variable Frequency Arduino Program
Variable Frequency Arduino Program
The circuit:
LCD:
* 10K resistor:
Analog input:
const int analogInPin = A0; // Analog input pin that the potentiometer is attached
to
const int analogOutPin = 6; // Analog output pin that the LED is attached to
int potvalue = 0;
int outputvalue=0;
void setup()
lcd.begin(16, 2);
lcd.print("ENGINEERS GARAGE");
void loop()
lcd.print(potvalue);
lcd.print(" Hz");
delay(1000);
###