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 / Program to interface 8-bit PCF8591 ADC with P89V51RD2 MICROcontroller.

Program to interface 8-bit PCF8591 ADC with P89V51RD2 MICROcontroller.

|

Microcontroller › 8051 › Program to interface 8-bit PCF8591 ADC with P89V51RD2 MICROcontroller.

  • This topic has 0 replies, 1 voice, and was last updated 13 years, 2 months ago by suraj ganapathy.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • March 6, 2012 at 2:41 pm #1598
    suraj ganapathy
    Participant

    My project involves Sharp IR distance measuring sensor GP2D120 having a range of 4cm to 30cm. I’m using an 8-bit PCF8591 ADC with P89V51RD2 MICROcontroller and LCD display.

     

    I’ve established a linear equation for DISTANCE MEASURED and VOLTAGE OUTPUT from the ADC i.e for measurements from 14cm to 21.5cm in steps of 0.5cm (5mm) the sensor gives out a voltage that varies linearly from 45 to 30 controller units in steps of 1 which is basically a negetive slope on when plotted.

     

     

    Equation: Y= (-5)X + 365

     

     

    I need a program that would, (1.) use this equation and (2.) display the measured value as a decimal value , if possible as a floating value.

     

    .

     

     

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

RSS Recent Posts

  • An Update On Tarrifs May 16, 2025
  • Trying to use a L9110s motor driver chip May 16, 2025
  • I want to make a CRT with some modifications But i have no Idea where to start May 16, 2025
  • Funny Images Thread! May 16, 2025
  • Need Help Figuring Out the Schematics Of Circuit Board May 16, 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