hi i am new in aurdino
I want to interact the LED with photo diode
I have seen the your code in which LED profile is traingular. and output of photodiode accordingly changes.
In my case. I want LED profile in series of square pulse(step function) and accordingly accordingly output of photodiode should change
My LED profile and photodiode graph like this
How to create the square pulse for the LED. ?
When we place the photodiode in front of LED ,so output of photodiode shown in graph.
We want to see the graph for LED and photodiode in serial plotter same as shown in picture?