Click here to Skip to main content
Click here to Skip to main content

Photodiode Amplifier via Parallel Port

By , 8 Aug 2006
 

Introduction

In a previous article, I wrote about reading to a parallel port using the signal port. What I needed to read in was the signal from a photodiode. The following is a decent method to amplify the photodiode signal using common IC chips.

Schematic

This is a schematic of a photodiode amplifier that I used for an earlier project. It produces enough current to trigger a relay that connects the 'signal pin' to a 'ground pin.'

Sample screenshot

The components are as follows:

  1. LED or any light source, mine was a laser
  2. Photodiode
  3. 3 Pots (Potentiometer) or Resistors; R1 = 3.3K, R2 = 104.6K, R3 = 312.2
  4. Opamp, mine was a UA741
  5. NPN Transistor, mine was 2N3904
  6. IC Relay, mine was a Hamlin HE721C0500
  7. Source: You'll need a source with at least 9 Volts. Note that you'll need a source that also includes a negative voltage and ground. You can substitute +9V or my +5V and -9V for my -5V. However if you also want to substitute my +12V for a +9V, then you may have to tweak R3.

*Important note: I take no responsibility for any mishaps.

IC Diagram/Schematic

*This Diagram/Schematic can be found at www.datasheetcatalog.com.

Opamp

Sample screenshot

NPN Transistor

Sample screenshot

Reed Relay

Sample screenshot

Explanation

My photodiode can only provide at most .9V (I think). The relay I'm using requires more current than my photodiode could provide. I needed the relay to trigger the switch inside of it and allow the 'signal pin' to be grounded; this would then result in a low on my signal pin. And as indicated from my previous article; I need the signal pin to be grounded so I could read it as data.

Some may say; why didn't you just use the transistor. Wouldn't it be easier? My answer is nah! Due to the fact that the base of the transistor needs a decent current to allow Vbe to go to saturation, I used a opamp to boost the signal and then tie the output to the base of the transistor. I used 12V at the collector since I didn't have 9V.

If you have any questions, email me at phebejtsov@yahoo.com.

History

  • 8th August, 2006: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

phebejtsov
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questioncant use my relaymember¤ Muammar ¤9 Nov '06 - 9:40 
hi everyone, i have two relays that read as:
 
(RadioShack)
Coil rating of 5VDC
90 mA
55 ohms
SPDT 1A at 125VAC
 
(FANGKE)
10A/28VDC
5A/220VAC
DC 5V
 
please advice why cant i trigger them using the 5v from the LPT portWTF | :WTF:
 
thanx in advance.
AnswerRe: cant use my relaymemberphebejtsov8 Jan '07 - 5:53 
GeneralRe: cant use my relaymemberMuammar©8 Jan '07 - 19:36 
Generalhello frnds,i need run exe as background process with webapplication i need run exe as background process with webapplication is it possible then homemberSharmaAshutosh8 Nov '06 - 0:34 
QuestionHow to read multiple signalsmemberceplin16 Aug '06 - 6:23 
AnswerRe: How to read multiple signalsmemberphebejtsov16 Aug '06 - 19:57 
GeneralNice articlememberrschaer16 Aug '06 - 3:46 
GeneralIdeas for improvement.membernormanS14 Aug '06 - 20:06 
GeneralRe: Ideas for improvement.memberphebejtsov15 Aug '06 - 5:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 8 Aug 2006
Article Copyright 2006 by phebejtsov
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid