kaixiang
Newbie level 4
Hi guys,
I'm building a position detector by using photodiode.
My idea was i connect two or three lines of photodiode to AT89S8252 microcontroller.
where each line of photodiode consist of 4 photodiodes and one reference of photodiode is used as a reference photodiode to determine the changes of the other photodiode base on the current sunlight.
Now my question is how do i connect the photodiode together.
First i tried to use one LM358(dual comparator) to compare. --> Success
Then i proceed with two LM358 to compare --> Fail
Attached below is the schematic diagram of my two LM358 Circuit.
Anybody know what happen to my circuit?
or do you have any better idea beside using the comparator?
The photodiode datasheet shows that the Maximum reverse voltage is from -0.5 until 12V. How do i achieve the voltage of 5V? Do i need pull-up resistor or any other thing?
when not connected to power supply, i straight away check the voltage of the photodiode simply by connecting the anode and cathode to multimeter and the value i get is 330mV.
Would really appreciate anyone who help me with this.
thanks you!
I'm building a position detector by using photodiode.
My idea was i connect two or three lines of photodiode to AT89S8252 microcontroller.
where each line of photodiode consist of 4 photodiodes and one reference of photodiode is used as a reference photodiode to determine the changes of the other photodiode base on the current sunlight.
Now my question is how do i connect the photodiode together.
First i tried to use one LM358(dual comparator) to compare. --> Success
Then i proceed with two LM358 to compare --> Fail
Attached below is the schematic diagram of my two LM358 Circuit.
Anybody know what happen to my circuit?
or do you have any better idea beside using the comparator?
The photodiode datasheet shows that the Maximum reverse voltage is from -0.5 until 12V. How do i achieve the voltage of 5V? Do i need pull-up resistor or any other thing?
when not connected to power supply, i straight away check the voltage of the photodiode simply by connecting the anode and cathode to multimeter and the value i get is 330mV.
Would really appreciate anyone who help me with this.
thanks you!