Nope, here is what you get if you use a shifted sine wave:
View attachment 25238
The green is the voltage across the LED, the blue is the current through the LED, which is roughly proportional to the light output (but not exactly).
The problem is that an LED is not a linear device. You can see that it puts out no light up to about 2.4V then rapidly increases with increasing voltage.
Bob
To: - BobK – duke37 – davenn - LvW – (*steve*)
Hello - All
I think I’m going off on a limb. The idea of the sine wave in the beginning was twofold. Firstly: was for the use of a frequency. This enabled the receiver to obtain only light of interest that was oscillating at 50KHz. Secondly: To switch the LED on slowly, and not on
instantly, as a square wave would. I do not think the LED needs to be on all the time in its cycle, but somewhere around 50% or near. So, my last idea, was to off-set or shift the sine wave in to variable DC. Volts. This would give a string of camel humps on the oscilloscope, but this should not matter, as long as the humps are all the same.
As to the print out that Bob kindly sent me - I think this is best done, - unless…………………..?
I found a couple of filter circuits in ‘Martin Hartley Jones’ a -
Band Pass & a
Precision rectifier. These should come in useful after the ‘Photo Diode’ But I still have a long way to go yet.
Regards, GeoffC.
(Be away for a day and a half, back Saturday.)