I am looking to create the simplest voltmeter possible, without LCD. I just require my Arduino to check if there is voltage or not. Can I simply hook up my input voltage to two pins on the board? If so, where and how can the Arduino output the results to my computer, is it through a sketch?
To elaborate, I have a AC to DC converter which outputs 5v, I want to recognize when there is a power cut. So if the Arduino recognizes voltage at the pins, it can conclude that power is present. If not, then there is a power cut.
Sorry if this post is really basic, but I am new to the concept and need help.
Your time is greatly appreciated, thank you,