• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Electronics Theory / How to Connect a TSOP1738 IR Sensor

How to Connect a TSOP1738 IR Sensor

Last Updated on May 20, 2021 by Swagatam 74 Comments

TSOP17XX series devices are advanced infrared sensors having a specified center frequency of operation which makes their detection extremely reliable and foolproof.

In this post I have explained how to connect a TSOP series infrared sensor and use it for a specified IR remote control operations.

TSOP IR Sensor Specifications

A TSOP series of IR sensor ICs may consist many variants which differ marginally from each other, these may be in the form of  TSOP22.., TSOP24.., TSOP48.., TSOP44..

However the most popular and most commonly used is the TSOP1738 IC module which is from the TSOP17XX series.

The other variants from this group are available with the following numbers:

TSOP1733, TSOP1736, TSOP1737, TSOP1740, TSOP1756, TSOP1738CB1, TSOP1738GL1, TSOP1738KA1, TSOP1738KD1, TSOP1738KS1, TSOP1738RF1, TSOP1738SA1, TSOP1738SB1, TSOP1738SE1, TSOP1738SF1, TSOP1738TB1, TSOP1738UU1, TSOP1738WI1, TSOP1738XG1, TSOP1740, TSOP1740CB1, TSOP1740GL1, TSOP1740KA1, TSOP1740KD1, TSOP1740KS1, TSOP1740RF1.

All the above TSOP variants have identical features and characteristics except their center working frequency, which may typically range between 30 kHz to 60 khZ.

How the Connect TSOP1738 sensors

Connecting or wiring a TSOP1738 infrared sensor is actually very easy, once you know how it responds to supply voltage and the IR signals applied across its specified pinouts.

The diagram below shows the a standard TSOP infrared sensor IC, whose pinouts can eb seen marked as (-), (+) and the OUT.

The (+) and the (-) are the supply pins of the IC and are specified to be connected across a 5V typical supply level, to be precise any voltage between 3 and 6V may be aplied here, although 5V works the best, and is recommended since it can be easily tailored using a 5V regulator IC 7805 and allows a wide range of input to be used (between 6V and 24V).

The curved lens which can be seen over the central portion of sensor body is where the infrared signal from a remote control handset is focused for enabling the TSOP to initiate its sensing operations.

Sensor Pinouts

TSOP1738 sensor pinout

NOTE: The pinout polarity is different for the TSOP1838 IR detector, as shown below. So please verify the pinout sequence if you are using a different variant of the IC.

How connect Supply Voltage to TSOP1738

The following image shows how the TSOP1738 IC needs to be wired and connected across a given supply voltage and how its output may be terminated to the relay driver circuit for the intended toggling of the relay according to the sensor's response to the IR signal.

The shown wire connections are for indicative purpose only, these could be in practice connected through PCB tracks.

TSOP1738 connected with 7805 IC

How TSOP1738 Responds to Infrared Signal

I have explained step wise how a wired TSOP1738 sensor behaves or responds when an IR signal is focused towards its lens.

TSOP1738 sensors without power ON and without input IR

In the above diagram we see that as long as the supply input is not connected to the TSOP circuit, its output stays dormant or inactive, meaning it's neither positive nor negative.

output response of TSOP1738 sensor when power is switched ON

Video Clip

Initially the Output is a +5V (Supply Level)

As soon as the TSOP is applied with a supply voltage (via a 5V regulator), it responds by making its output pin high or at the positive (+5V) level.

This level is maintained, as long as an input infrared signal is not pointed or is focused towards the lens of the TSOP

output response TSOP1738 sensors when powered ON and IR input applied

When an IR Signal is Applied

In the above diagram we can see IR signal frequency being applied and approaching the lens of the TSOP, until it touches the lens of the sensor.

The moment the IR signal reaches the lens of the TSOP, the output of the TSOP begins responding and oscillating in tandem with the focused infrared signal.

Remember, the input IR frequency focused towards the TSOP sensor must be oscillated at a 38 KHz frequency, otherwise the TSOP sensor will not respond. This frequency may be slightly different for the different variants of the TSOP sensors.

The Output Waveform of the Sensor

The output waveform indicates how the output of the IC oscillates between a positive (initial status) and negative (sensing status) across its "OUT" pins in an alternating pattern, as long as the input IR is kept focused towards it.

How to configure the above response from the TSOP1738 sensor for driving a relay stage.

A classic example may be seen in the following diagram taken from the article "remote controlled fish feeder", where we can see the TSOP being used for an IR remote control application and for a toggling action in response to an IR input triggering signal.

Basic Connection Details of TSOP1738 in a Circuit

Simplified Design

Application Schematic for TSOP1738 Relay Operation

working simulation of TSOP1738 in a Circuit

Parts List

  • R1, R3 = 100 ohms
  • R4, R2 = 10K
  • T1 = BC557
  • T2 = BC547
  • Relay 12V, 400 ohms
  • IC = 7805
  • D1 = 1N4007
  • Sensor = TSOP17XX
  • C1, C2 = 22uF/25V

Here we can see that a PNP transistor is being used for toggling the relay, I have explained why exactly a PNP device is required for toggling a TSOP sensor, why an NPN BJT may not be suitable for the same.

Through the above explanation we understood the fact that while the TSOP is in the standby mode or as long as there's no IR signal focused, the output from the device holds a positive potential.

This implies that if an NPN was used in conjunction with this output then this would force the transistor to remain switched ON in the standby mode, and switch it OFF in the presence of an IR signal....

This is technically incorrect because this would keep the relay switched ON all the time and switched OFF only while an IR signal was triggered...this condition is not recommended and therefore we use a PNP transistor which inverts the response from the TSOP sensor and toggle the relay ON only in response to an IR signal, and keeps the relay switched OFF normally while the sensor is in the standby mode (no IR signal).

Here C2 is used to filter the ripples or the pulsating DC output of the TSOP, so that the transistors activate properly and without causing a chattering effect on the relay

You'll also like:

  • DHT11 Humidity, Temperature Sensor: How to Use and Interface with Arduino
  • door2BintercomKnock Activated Door Security Intercom Circuit
  • home electromagnetic radiation detector circuitHome Electromagnetic Radiation Detector Circuit
  • 3.8 1Common Emitter Amplifier – Characteristics, Biasing, Solved Examples

Filed Under: Electronics Theory, Sensors and Detectors Tagged With: Connect, IR, Sensor, TSOP1738

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!

Previous Post: « Make this Simple Washing Machine System
Next Post: Remote Controlled Fish Feeder Circuit – Solenoid Controlled »

Reader Interactions

Comments

Didier Roche brochery says:
September 21, 2024 at 2:09 am

hello I’ne need the complete assembly of’un flame detection by flame probe’ionization by clicking the relay in contact with the flame on the probe and closing it in the’ absence of the flame .

Reply
Swagatam says:
September 21, 2024 at 9:06 am

I think you can try the circuit presented in the following article:
https://www.homemade-circuits.com/temperature-controlled-relay-switch-circuit/

Reply
Pradeep Kumar Jain says:
September 21, 2022 at 5:30 pm

Can I have a digital controlled timer circuit along with software.

Reply
Swagatam says:
September 21, 2022 at 5:56 pm

Sorry, don’t have it right now with me.

Reply
Stanko says:
June 30, 2022 at 9:11 am

Zelo lepo opisano,hvala.Lp Stanko

Reply
Swagatam says:
June 30, 2022 at 9:48 am

Thank you Stanko!

Reply
Val says:
June 23, 2022 at 4:09 pm

Hi Swagatham
Thanks so much for all your replies I got the on the other posts
Kind regards
Val

Reply
Swagatam says:
June 23, 2022 at 4:43 pm

No problem Val, all the best to you!

Reply
Val says:
June 23, 2022 at 4:05 pm

Hi Swagatham
Thank You for your reply
I did try out the circuit with TSOP 1738 (Receiver) & the 555 IC Transmitter and I used a 330ohm resistor for the 940nm 5mm transmitter and I’m getting a range of 12 feet
I also used tubular enclosures for both transmitter & Receiver is it possible to increase the range by using magnifier glass to improve the beam, May be I sound crazy but I’ve seen this being used in our garage door opener , the sensors are at the bottom guide rail, so when the door is coming down if someone by mistake tries to enter it immediately triggers and reverses the door back up
Thanks for all the help & support
All the best to you

Reply
Swagatam says:
June 23, 2022 at 4:43 pm

That’s great Val, I am glad you cold achieve the range of 12 feet distance using TSOP1738 sensor.
Using a magnifying glass sounds a bit strange, but who knows it might just work, because after all the IR waves are also light waves and could be concentrated using magnifying lens, it is worth trying.

Reply
Val says:
June 22, 2022 at 10:10 pm

Hi Swagatham
Tried out the circuit with the TSOP 1738 and the transmitter using an old TV REMOTE & with a Transmitter using the 555 IC circuit (second one) which I sent you earlier by email
Both work good, but for continuous monitoring the 555 IC is better and the max range I get is 8 feet from transmitter to receiver with a 270 ohm resistor in series with the transmitter IR LED . Is it possible to increase the range to 12 feet or more
Thanks Swagatham

Reply
Swagatam says:
June 23, 2022 at 9:59 am

Hi Val,
Glad you could make the circuit work.
12 feet range should be easily available with a little adjustment in the alignment, according to me. You can use 9V or 12V for the transmitter to increase its power. You can fine tune the 38kHz frequency at the 12 feet distance and check if that helps to increase the reception quality.

Reply
Val says:
June 20, 2022 at 9:29 pm

Hi Swagatham
I ve seen the circuit which is on the link you sent for the transmitter to trigger the TSOO 1738 receiver circuit right
What is the voltage to be used and how do I connect the IR LED Transmitter to the 555 circuit at pin 3. Can you please send me the complete circuit diagram
Thanks Swagatham for your time
All the best to you
Val

Reply
Val says:
June 21, 2022 at 3:55 pm

Hi Swagatham
Thanks for your reply shall try out the circuit and let you know how it works
All the best to you

Reply
Swagatam says:
June 21, 2022 at 5:11 pm

No problem Val, wish you all the best!

Reply
Swagatam says:
June 21, 2022 at 9:24 am

Hi Val,
The voltage can be anything between 5V and 12V. You can connect the photodiode to pin#3 through a 330 ohm or 470 ohm resistor. The longer lead of the LED will connect with the pin#3 and shorter lead with the ground line. The resistor can be in series with any one of the leads of the LED

Reply
Val says:
June 22, 2022 at 10:22 pm

Hi Swagatham
With 5 volts the range and sensitivity is not good it is better with the 12 volt supply and a 270 ohm resistor in series with the transmitter
Is this ok by you .
The range I get is max 8 feet with the IR led transmitter from Amazon Gikfun 5mm 940nm
Is it possible to increase the range , I tried with various pots between pin 8 & 7 no difference
Please reply, thanks Swagatham

Reply
Swagatam says:
June 23, 2022 at 11:51 am

Hi Val,

Yes 12V and the 270 ohms looks OK to me.

If you are using the IR photo LEDs the range will be less and restricted, to increase the range you must replace the receiver diode with TSOP1738 and use the transmitter with 38 kHz frequency

Reply
Val says:
June 20, 2022 at 7:43 pm

Hi Swagatham
In this blog The first circuit with BC547 is almost the same I have and further below you have a circuit which activates a relay this is what I wanted and shall try it out
My question is instead of using a regular remote to activate the relay can you suggest a circuit with a transmitter which keeps the relay normally off and is activated ON when the transmitter signal is interrupted
Thanks

Reply
Swagatam says:
June 20, 2022 at 8:04 pm

Hi Val,
a TSOP sensor will activate when a 38kHz signal is focused on it. You can build a 555 astable oscillator with 38kHz frequency and that will do the job for you.
You can use the following circuit: https://www.homemade-circuits.com/wp-content/uploads/2016/03/astable.png
R2 can be a 100K resistor, R1 can be a 10K resistor, and C can be a 0.1uF capacitor. You will have to connect a 1M pot or a 100K pot might also work, in series with R1 and then you can use this pot to adjust the output frequency of the 555 astable. Pin#3 can be used for connecting the IR transmitter photodiode.
By keeping the transmitter focused on the receiver you can keep adjusting the pot until you find the receiver relay switching ON, that will indicate that the output of the 555 is generating the required 38kHz frequency.

Reply
Val says:
June 20, 2022 at 8:24 pm

Thanks Swagatham for your reply
Shall try out the circuit and let you know how it worked out ok

Reply
Swagatam says:
June 21, 2022 at 9:22 am

No problem Val.

Reply
Faith says:
November 3, 2021 at 11:29 am

Hi mr swagatam, can a tsop1838 sensor be used in place of tsop1738.thanks

Reply
Swagatam says:
November 3, 2021 at 2:12 pm

yes, can be used….

Reply
T J Bhaduri says:
September 24, 2020 at 12:20 pm

Dear Sir, I made one Automatic Sanitizer Dispenser with IR( LED based) Proximity Sensor Module ( LM358 based), TIP32C Transistor and DC 6V Submersible pump etc. I want to modify the Project by replacing IR-Receiver LED with TSHOP1738. Because the current model is not suitable in Sun light. Could you please help with a Circuit Diagram with TSOP1738 & Delay function with Relay to minimize the Sanitizer waste. Best regards,

Reply
Swagatam says:
September 24, 2020 at 6:10 pm

Dear TJ, the TSOP sensor has an extremely high detection range and will detect any object even 5 meters away, so I don’t think this sensor can be applied for sanitizer application.

Instead you can go for a LM567 based design as explained in the following article:

4 Simple Proximity Sensor Circuits – Using IC LM358, IC LM567, IC 555

Reply
Yusuf Auwal says:
November 13, 2021 at 7:31 pm

Always my good regards to you swagatam Sir.

Reply
Swagatam says:
November 14, 2021 at 12:34 pm

Thank you Yusuf.

Reply
Tirtha Jyoti Bhaduri says:
October 5, 2020 at 1:30 pm

Dear Mr.Swagatam,
Thanks for your Valued comment.I will try and let you know. Regards,

Reply
vivek srivastava says:
August 25, 2020 at 12:44 pm

dear sir,
I built this for a project by adding a relay in output where we wanted to have a NC connection when TSOP receives an IR signal (IR LED) to have a click signal for our fiber laser so that whenever it detects a piece it start to print on it. But this ckt is getting triggered again and again by the LASER while it is printing on the piece because LASER itself is a type of amplified light.
can you suggest what type of sensor circuit should i use to get a click signal to activate printing by LASER

Note- our piece to be printed is made of plastic.

Reply
Swagatam says:
August 25, 2020 at 2:35 pm

Hello Vivek, do you want the relay to switch ON permanently when a laser is detected, or want the relay to click just once ON and OFF, in response to the laser detection?

Reply
vivek srivastava says:
August 25, 2020 at 3:06 pm

AND we are not detecting LASER. we are just placing a plastic piece which needs LASER marking. the sensor setup is detecting the plastic piece and gives signal to LASER and then printing starts.
next signal will go to LASER when we put next piece.
Please note that the relay should remain in OFF (NO) condition untill next piece is kept at the same place after removing the previous place. means while removing the first piece, the sensor should not give signal (NC) to the LASER to avoid burn injuries to the person placing the pieces.

Reply
Swagatam says:
August 26, 2020 at 1:06 pm

Sorry, without seeing the entire drawing set up it can be difficult to understand the mechanism, and to implement the circuit correctly. By the way N/O is the switch ON condition of the relay and the N/C is the switch OFF condition of the relay

Reply
vivek srivastava says:
August 25, 2020 at 2:59 pm

THANKS SWAGATAM FOR RESPONDING.
we are trying to mimic a foot switch action with this sensor setup. so it will be a 1-2 second ON (NC) CLICK SIGNAL and then off (NO).

Reply
Swagatam says:
August 25, 2020 at 3:09 pm

No problem vivek, in that case if you add a 10uF or a higher value capacitor in series with the BC547 base resistor, that should do the job for you. Additionally add a 100uF parallel to the relay coil also. The negative of the capacitor will go towards the base of the transistor. The capacitor can be at the left side of R4 or right side R4 does not matter.

Reply
Swagatam says:
August 25, 2020 at 3:11 pm

If this does not work satisfactorily then we may have to go for an IC 555 monostable version

Reply
Jan says:
September 28, 2019 at 3:18 am

Good project.
But a small remark about the IR receiver is a must do for anybody who might to make this design.

Pins of TSOP1738 are indeed from left to right Gnd-Vcc-Out.
But There are many other receivers that have the pins switched.
Pins of TSOP1838 are for example from left to right : Out-Gnd-Vcc
I believe that the majority of IR receivers is as TSOP1838
So if you decide to use another receiver keep this in mind before you boil your receiver.

Jan

Jan

Reply
Swagatam says:
September 28, 2019 at 10:16 am

Thanks Jan for the information, it’s much appreciated!

Reply
Husi Rusmani says:
August 21, 2019 at 3:47 pm

Thanks brother … 😀

Reply
Swagatam says:
August 21, 2019 at 6:28 pm

Thanks!!

Reply
Nived says:
December 23, 2018 at 7:36 pm

Hi sir,
Thank you for helping me!!
Can i connect 470ohm parallel to r1 to reduce sensitivity.Also is there any way to add preset to adjust the range/sensitivity of tsop .Actually i’m planning to use this for making automatic water tap.I tried with ir proximity sensor but its range is too short.

Reply
Swagatam says:
December 23, 2018 at 8:13 pm

Thanks Nived, R1 is a current limiting resistor for the supply input to the sensor, connecting another resistor parallel to R1 will increase current to the sensor and that will result in the device getting more sensitive, so that won’t work.

Connecting a resistor across base/emitter of the PNP might help to reduce the sensitivity, however there’s no effective way of achieving this. Another way is to increase the value of R3 or replace it with a preset

Reply
Swagatam says:
August 29, 2019 at 1:37 pm

Glad you liked them! They all have similar characteristics and features except the central operating frequency which may range from 30 kHz to 60 kHz.

Reply
JOÃO says:
August 28, 2019 at 9:09 pm

REALLY ENJOYED! YOU EXPLAIN VERY WELL, CONGRATULATIONS! I WOULD LIKE TO KNOW THE DIFFERENCES THERE ARE OR NOT OF THESE TSOP, IN RELATION TO TSOP 1838,
BECAUSE I HAVE SOME OF THIS KIND…

Reply
Swagatam says:
December 20, 2018 at 4:36 pm

For small relays like a 400 ohm relay 1N4148 will do, no problems.

Reply
Swagatam says:
December 20, 2018 at 4:35 pm

yes, you can try adding a 220 ohms or a 470 ohm resistor across base emitter of BC557 or R1.

Reply
Nived says:
December 20, 2018 at 3:44 pm

Also can i use 1N4148 diode across relay

Reply
Nived says:
December 20, 2018 at 3:37 pm

Ok sir thank you,
Is there any way to reduce the sensitivity of tsop

Reply
Swagatam says:
December 20, 2018 at 1:26 pm

That’s great Nived!
The diode is called the freewheeling diode or the flyback diode. It makes sure that whenever the transistor switches OFF the relay, the back EMF or the reverse current surge generated by the relay coil is short circuited and eliminated through this diode. Not including this diode will force this current through the transistor and quickly damage the transistor.

Reply
Nived says:
December 20, 2018 at 12:54 pm

Hi sir,
Now it’s working perfectly.
I have one doubt,i used to see a diode connected across relay in most of the circuits.what is its purpose?
.will the circuit operates perfectly without that diode??

Reply
View Older Comments

Leave a Reply to Stanko Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (92)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (84)
  • Datasheets and Components (109)
  • Electronics Theory (148)
  • Free Energy (39)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (16)
  • Inverter Circuits (94)
  • Lamps and Lights (157)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (66)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (90)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (105)
  • SMPS and Converters (32)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (38)
  • Water Controller (36)
  • Wireless Circuits (30)





Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap



People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin



Recent Comments

  • Swagatam on 3 Laser Beam Controlled Circuits Explored
  • ken on 8X Overunity from Joule Thief – Proven Design
  • Kim on 3 Laser Beam Controlled Circuits Explored
  • Swagatam on Making an Adjustable Electromagnet Circuit
  • Swagatam on Make this DC CDI Circuit for Motorcycles

© 2025 · Swagatam Innovations