I have 13 photodiodes. Positive connection from battery is connected to the positive end of each photodiode. The position of photodiodes is as shown below:
o o o
o o
o o o
o o
o o o
I would like to connect a motor to the output of these photodiodes.
Now when I throw infrared light on some photo diodes, they will give me 9V output as I have connected 9V battery, others will give 0 as output.
Suppose I throw light on it as below: (generated number 1)
o o 1
o 1
o o 1
o 1
o o 1
I want the motor to complete 15 iterations, stop there for 2 seconds and again complete 15 iterations in reverse direction
Suppose I throw light on it as below: (generated number 2)
1 1 1
o 1
1 1 1
1 o
1 1 1
I want the motor to complete 30 iterations, stop there for 2 seconds and again complete 30 iterations in reverse direction
Suppose I throw light on it as below: (generated number 3)
1 1 1
o 1
1 1 1
o 1
1 1 1
I want the motor to complete 45 iterations, stop there for 2 seconds and again complete 45 iterations in reverse direction
And similarly...
Can somebody just give me an idea of how can I accomplish the above mentioned task? and also what materials I would need?