ADC Converter with PIC16F877A

Discussion in 'Embedded Systems and Microcontrollers' started by carsper, Feb 26, 2011.

  1. carsper

    Thread Starter New Member

    Feb 26, 2011
    4
    0
    hi every body
    i'm an IT "i know a little about electronics"
    i found this project
    http://www.youtube.com/watch?v=a14zELKPw8M
    and i need to done it with ur help
    the codewheel roll with DC Motor on optical sensor i want take analog pulses form this sensor (http://www.avagotech.com/docs/AV01-0107EN)
    and convert analog to digital to give digital pulses to PIC16F877A microcontroller, then PIC Count this pulses, when PIC count some of pulses make an action (printing) it's deppent on speed of count pulses, it's give this pulses to stepper driver to stepping motor (Stepper Motor) as DC Step like the video, i asked him and he give me some help
    like this photo and give me this circuit to ADC (http://img105.herosh.com/2011/02/26/697964078.jpg) but when i draw it in Proteus to simulate it's not done i dont know why
    it's proteus file for simulate what i draw (http://www.herosh.com/download/7587698/LM339-Proteus.zip.html)
    and i used this stepper driver (http://ram-e-shop.com/test11/product_info.php?products_id=1323) he told me it's good
    i prefer to make it simulation by proteus and MicroC coz i know littel about those programs
    i need help so help me :)
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Life gets simpler with a different device - http://www.simplemotor.com/oimotor.htm The output is already a digital input with a pullup to the PIC's Vcc. No conversion necessary.

    For more such devices, use "optointerrupter" as a search term.
     
  3. carsper

    Thread Starter New Member

    Feb 26, 2011
    4
    0
  4. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Does this mean you are required to use that device? Is there some advantage to using an analog input?
     
Loading...