Registering voltage from external component

Hi Community.

My group is trying use an arduino to check whenever a voltage output from a reflection print is 5 V or 0 V. We use Atmel Studio 6 for programming the arduino.

Best regards, students from scandinavia

Hello

And the question is?
And your code is?

J-M-L:
Hello

And the question is?
And your code is?

And your circuit is?

Don't forget to tie your -/PE/GND together...

I have a reflectionprint, givin an output of 0V when a fotodiode recieves no reflection from a reflex, and an output og 5 V when the fotodiode does. I want my arduino (mega 2560) to be able to register this change in output from the reflectionprint.

Have a look at the state-change-detection example that comes with the IDE.

What is a "reflectionprint", which photodiode / module are you using exactly?
How noisy is the signal?

Photodiodes are analog not digital, which usually means using analogRead()