Need Help with GP2Y0A21 IR Sensor


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    49

    Default Need Help with GP2Y0A21 IR Sensor

    Hi all,
    I am in doing a robotic project. I have experience connecting GP2Y0A21 IR sensor with basic stamp 2 using ADC 0831. I want to use this sensor with 16F628 and use the internal ADC.

    I need a sample code in PBP and how to implement it.

    Please help.

    Thanks.

  2. #2
    Join Date
    Oct 2007
    Location
    The Netherlands
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    The PIC16F628 does not have an internal ADC. Use a PIC16F88 instead.
    In the PBP manual you can find out about the ADCIN command, is not too difficult, something like : ADCIN 0,range

Similar Threads

  1. Need a cheap touch sensor idea.. here it is
    By mister_e in forum Code Examples
    Replies: 20
    Last Post: - 16th April 2016, 22:42
  2. Replies: 17
    Last Post: - 12th April 2014, 02:17
  3. Sharp ir distance sensor
    By hasnannordin in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th October 2009, 21:48
  4. line follower - IR sensor
    By shirleyz in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th May 2008, 12:14
  5. PIC10F200 Automated IR Light Switch
    By Bruce in forum Code Examples
    Replies: 7
    Last Post: - 3rd May 2007, 11:40

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts