EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Basic interfacing of tsop ir receiver with Atmega16

Basic interfacing of tsop ir receiver with Atmega16

|

Microcontroller › AVR › Basic interfacing of tsop ir receiver with Atmega16

  • This topic has 2 replies, 3 voices, and was last updated 11 years, 1 month ago by Ashutosh Bhatt.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 6, 2015 at 6:00 pm #3389
    Shankar
    Participant

    Hello,

    I have a Atmega16 and a Tsop ir reciever. All I want to do is, glow a led, when the receiver gets a signal, from any standard tv remote.

    Here’s the code outline, i have tried

     

    ddrb=0x00// part b as input, where i have connected tsop receiver to pb0

    portb=0xff// pulling up part b

    ddrd=0xff// part d as output, where i have a led in pd0

     

    while(1)

    {

       if(pinb)// i get some value at the reciever

       portd|=0b00000001<<pd0;

     

       else

       portd=0b00000000;

    }

     

    Sorry for mixing up hex and binary forms…I am a newbie trying out things. Kindly guide me through this problem!

     

    Thanks in advance :)

    January 8, 2015 at 4:40 am #12502
    AJISH ALFRED
    Participant

    So tell us about the output that you are getting.

    January 10, 2015 at 10:10 am #12508
    Ashutosh Bhatt
    Participant

    the TSOP sensor output is normally high and it goes low when it detects signal. also check for signal change on any single pin only not whole port.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Funny Images Thread! March 7, 2026
  • energising a solenoid March 7, 2026
  • LM016L + PCF8574 I2C Backpack Schematic with Backlight Control March 7, 2026
  • ESP32 Sub Forum March 7, 2026
  • What diode should I use? March 7, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise