Voltmeter of the Poor: 1 LED Voltmeter

  1. Connect two LEDs to pins 10 and 11. Use the appropriate resistors to limit currents through the LEDs.

  2. Write a program that would read the voltage from analog input A0 and turn on LED1 (pin 10) if the voltage is less than 2V and turn on LED2 otherwise (voltage exceeds 2V). Connect Arduino and upload your sketch. LED1 should come on and stay on. Hint: you may find the function “delay” handy.

That's something you can do. What have you done so far?

.