IR Photodiode or Phototransistor?

by maxsthekat
Tags: photodiode, phototransistor
maxsthekat is offline
Feb9-10, 09:23 PM
P: 54
Hi guys!

I'm a beginning EE students, and haven't taken many courses yet (haven't even covered transistors in my circuits class yet-- we're up to diodes, woo!). For a "for fun" project, I've been messing around with the Arduino microcontroller ( and I've come up with a little project I'd like to do.

Basically, I want to make an IR LED "flashlight" that I'll place in the netting on my backpack. Then, I'm going to take the microcontroller and hook it up to some small dc motors I have and spare lego wheels. I'd like to use a couple of IR sensing elements to determine which motors should be driven, so the "robot" follows me at a certain distance :)

My issue is, I'm not certain which is better to use: an IR photodiode or phototransistor. I'd like to keep this simple, so I was hoping that IR photoresistors were out there, but this doesn't seem to be the case... Ideally, I wanted to just use the Arduino's analog to digital ports to compare voltages (possibly using an op-amp before hand to get a larger voltage) and then having the robot move left or right depending on which resistor had a higher voltage.

So, what do you guys think? What would be the best approach to take? Can I somehow use the output of a phototransistor to feed into an ADC? Or will I have to look into using the "small current approximation" with a photodiode? Or is there some way better and much simpler method I'm completely missing? :)

Any and all insight is greatly appreciated. Thanks for taking the time to read this :)

Phys.Org News Partner Engineering news on
Lifting the brakes on fuel efficiency
PsiKick's batteryless sensors poised for coming 'Internet of things'
Researcher launches successful tech start-up to help the blind
klouchis is offline
Feb9-10, 09:42 PM
P: 29
Sounds like a good project to work on especially if you have the microcontroller handy. There really isn't much of a difference between a photodiode and a phototransistor. As you'll inevitably learn in a device physics course a phototransistor is really just two photodiodes put together. One thing you should be thinking of while you plan out this project is signal noise. There is IR energy everywhere and if you are amplifying a weak signal from your receivers you may not be detecting the correct signal. A good way to overcome this is with frequency modulation. Basically you want to pulse the IR source at a certain frequency so that your receiver will be able to determine signal from noise better by looking for the modulation.

That of course is one of many design challenges I can think of, you also need to consider how many receivers your will need, one wont give the directionality you need to let the mircocontroller "know" where your source is. You will probably need an array of sensors to determine position accurately.

Good luck with your project
berkeman is online now
Feb9-10, 11:26 PM
berkeman's Avatar
P: 39,643
Good post by klouchis. Another fun project approach would be to use a simple CCD camera on your follower robot, and look for an IR beacon that your backpack is flashing. Regular/cheap digital cameras (lile USB cams) see in the IR well, and can pick up an IR flashing beacon. You would put some processing software on the follower robot to keep aiming the camera at the target (which gives steering info).

klouchis is offline
Feb10-10, 12:04 AM
P: 29

IR Photodiode or Phototransistor?

That's a good idea, I've used a cheap CCD in my optical lab to make a quick IR microscope, those work very well for IR. I'm curious how large are the instructions and registers for your microcontroller?
freeduino is offline
Feb10-10, 04:16 AM
P: 1
the idea with the two "eyes" of the bot is not bad, but could be difficult in reality. as mentioned there is a lot of IR radiation already. the idea with a small cam would theoretically work, but you need a very clever algo to filter out the blob (you ir beacon). That means lots of coding on a higher level and you probably need more than an arduino to run it.

A common way to solve this situation is to take the IR sensor from the wii mote. this sensor is somehow special and i haven't come across anything similar on the parts market. it is actually a small cam that can identify up to 4 IR beacons (blobs). The special thing is that this cam will deliver the coordinates of the 4 blobs over the I2C bus. that means you get numbers you can directly work with to control your robot. you don't need any algo to turn a blurry picture into coordinates of ir blobs. this is a very popular project and you can finds lots of instructions in case you stuck.

if you need more help you can contact me on my website.

it's a german contact form but i guess you can figure it out

Register to reply

Related Discussions
How to activate a relay using a phototransistor Electrical Engineering 4
Little Problem with phototransistor !!! Electrical Engineering 6
BPX81 photoTransistor circuit Electrical Engineering 2
Phototransistor vs photodiode ? Electrical Engineering 3
Phototransistor vs LDR Classical Physics 2