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 / Replies / Sorry for my mistake people.

Sorry for my mistake people.

|

Microcontroller › 8051 › Please help in reading digital output of IR sensor › Sorry for my mistake people.

June 1, 2012 at 8:12 pm #7952
Mach
Participant

Sorry for my mistake people. I just went through the datasheet got to know that the digital output is of just 1 bit ( a logic 1 or 0)  and NOT 1 byte as in the case of analog output.

My project involves measuring the distance of the obstacle, which I was able to do, but not exactly the result that I wanted.

The thing is that reading becomes high as the obstacle gets nearer to the sensor. But I want the opposite to be happening. That is the reading should become 0(zero) when the obstacle is closest to the sensor and almost 255 (since the analog output is 8-bit)  when the obstacle out-of-range for the sensor.

Any help in solving this is much appreciated in advance.

The datasheet is at this link:- http://probots.co.in/index.php?main_page=product_info&cPath=9&products_id=9

RSS Recent Posts

  • My Advanced Realistic Humanoid Robots Project December 7, 2025
  • Looking for single photovoltaic cells for light gate December 7, 2025
  • I am ready to move from electrical and electronics field but confused where ? December 7, 2025
  • Hitachi SuperScan Elite 802 CRT Monitor Issues (Model CM802U) December 7, 2025
  • Sanity Check – Peltier "Cooler" for Heating and Cooling December 7, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 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