When the photonics competition was announced I had no idea what I could do as an entry. Reading through the brief the only parts I have that I could usefully use in a project are LEDs. To date I have only used LEDs as indicators to signal that something is working so in a nutshell I know very little about them. To prove this I have jotted down what I know.
Even the things I know are a bit vague so I thought I would do some research and experimentation.
First thing I did was to put an led in a breadboard and take a photo.
Then I powered the LED with 1v and nothing happened.
I increased voltage to 2v and the LED lit up.
Next I increased the voltage and the LED failed in what looked like a small explosion. Video shows LED lit normally then I turn off the power, increase the voltage and turn the power back on.
So what is actually happening here?
I started by Googling ‘Why does an LED explode?’ More than a few people seemed to take exception to this terminology but to be honest they didn’t clarify why they thought this was wrong. The posts were quite old so there is little point in trying to follow this line of thought. The best answer I could find was that the current caused the semiconductor material in the LED to overheat and eventually burn.
This makes some sense. Reading a bit more I found out that the LED is made up of a semiconductor. Semiconducting material has a forward voltage which is the point below which it will not allow the current to flow. This is why my LED did not light at 1V. When you pass enough current through the semiconductor it allows the current to flow hence it lit at 2V. This happens by virtue of the electrons in the semiconductor becoming excited. In an ordinary diode this allows the current to flow in the LED it also creates photons and consequently light. The non-conducting material in a semiconductor is doped with an another compound. Doping is a process of adding a minute quantity of another substance to the silicon base and it is this trace compound that creates the ability for the electrons to flow. Different compounds create the different colours.
These are some of the different compounds used.
- Indium gallium nitride (InGaN): blue, green and ultraviolet high-brightness LEDs,
- Aluminum gallium indium phosphide (AlGaInP): yellow, orange and red high-brightness LEDs,
- Aluminum gallium arsenide (AlGaAs): red and infrared LEDs,
- Gallium phosphide (GaP): yellow and green LEDs.
I think what I have written, whilst brief, is correct (please point me in the right direction if I have missed the point somewhere). Anyway the physics beyond this point is getting more complicated than I want to get into (this branch of physics is on the rather large list of things that I don’t understand).
I noticed on the data sheet, that I looked at, there was a reverse voltage i.e. the voltage at which the diode will allow current to flow back. The data suggests that when this point is reached it is usually also the point at which the LED will fail.
So back to experimenting and I put an LED in the bread board and reversed the voltage.
I started my camera recording and watched what happened as I cranked up the volts.
Nothing. I started at 5V and reached 31V (the limit of my bench power supply) and what I expected, which was some sort of catastrophic failure, didn’t happen. I tested the LED and it still worked. So I connected another LED the right way around into the circuit to see if at any point the current flowed. Still nothing.
So from that I can conclude , for my LEDs at least, that they would act as a diode for quite a high current, certainly more than I ever play around with. I guess other LEDs will have different characteristics.
LED as a light sensor.
During my earlier research I read that an LED can be used for a light sensor because it creates a very small current in the presence of light. So I tested one with my multimeter.
In my little room, which is quite dark, my yellow LED registered 5.6mV. I tried a green LED and this registered 7.9mV. A red LED registered 6.9mV. I tested another similar yellow LED and got 6.9mV , Another green 9.6mV another red 3.9mV. It was bright sunshine outside so the light levels weren’t fluctuating. So the results weren’t consistent. I have some super bright clear LEDs so I put one in 19.5mV. I tried another 18.7mV, another 21.9mV then another 21.2mV and back to the first 19.1mV. I then measured the values whilst I held a 6V LED bulb above the LED.
||First test mV||Second test mV||Third test mV||Result of holding light above LED|
|Clear (super bright)||19.5||18.7||21.9||33mV|
The super bright LEDs are better quality so maybe that explains the more consistent voltage readings. Looking at my little table I think the voltage is differing according to the different colours. Also it is evident that each LED is responding to the light being shon eon it.
The other thing I read was that LEDs are colour sensitive so I did some experimenting with different colour LEDs and an RGB LED to provide the coloured light. I placed the coloured LEDs next to the RGB and then powered each leg on the RGB to get red green and blue light. Here are the results:
|LED colour||Room light mV||Red light mV
||Green light mV
||Blue light mV|
From this I would say the red LED is definitely more sensitive to red light just as the green LED is more sensitive to the green light, but also quite sensitive to blue. I didn’t bother to try to power the RGB to make yellow but it responds quite strongly to the green light. The clear LED didn’t seem to respond.
Finally a project
Whilst I was experimenting I started thinking about what I could do as a project with LEDs and came up with the idea of a sun tracker. My plan was to embed 5 LEDs in tubes to form the shape of a plus sign. My idea being that as the light shone down the tube, in which the LED was embedded, the more directly the tube faced the sun the greater the voltage generated by the LED would be. I would use an analogue input pin on an Arduino UNO to measure the current generated by the LED. The plus sign of LEDs would be mounted on a pan and tilt assembly.
So I had already 3d printed a pan and tilt assembly some months ago (courtesy of Thingiverse) that utilised a couple of cheap servos. So I got that out and wrote a script to make the pan and tilt scan through the various angles at which the sun could be situated.
Next I generated a small script to capture values from the LED. The LED cathode is simply connected to the earth and the anode into the A0 socket. This seemed to work nicely, the values went up when the light was turned on and back down when the light was turned off.
So now I needed to combine the two scripts but I knew both were too simplistic for a working sun tracker.
So I thought to get things started I would attach just one LED to the pan and tilt mechanism. I had a couple of male female jumper leads and I connected these to the LED and plugged them into the UNO. It was then I realised that it wasn’t going to work. The longer leads made the analogue pin sensitive to nearly anything and the values were leaping around by themselves. Sometimes dropping to 0 then rising and falling again. I think what is happening is that the A0 pin is responding to various sources of emf.
So at this point I decided to call it a day and I didn’t actually intend to finish this blog. But then today I thought I would because it might interest someone and also someone might tell me something that I can do to fix this.
So any comments about anything that I might have gotten wrong (please be kind) or any ideas to solve this would be very welcome.
As I finally put this to bed I wonder if a capacitor would help?