PIC16F877A for application in mobile robot...


Results 1 to 6 of 6

Threaded View

  1. #4
    Join Date
    Dec 2008
    Location
    Charlottesville, VA
    Posts
    31


    Did you find this post helpful? Yes | No

    Post schematic...

    I have attached a schematic of what my circuit looks like. However, I have switched the 100 ohm resistors with 10k resistors and swapped the positions of the resistors with the photocells.

    Basically,

    Vcc---->Photocell---->PIC's ADC<----10K resistor---->Gnd

    Please keep in mind that this is already working on my partners robot. For some reason, all of a sudden the other day my ADC variables just stopped storing the correct values. For instance, I was able to use the battery voltage routine in my program to measure the total voltage of my circuit (i.e., up to 15v i believe). Of course that had to go through a voltage divider which i used 3 10k resistors and simply multiplied my variable by 3 and a few other things during calculation to get my result. This was working until a few days ago and now I can't seem to get anything right using my ADC. So far, everything else works fine (i.e., i can blink 8 leds on all 8 bits of PORTB).
    Attached Images Attached Images  
    Last edited by mcbeasleyjr; - 30th January 2009 at 14:32.

    Morris Beasley
    Manufacturing Test Technician
    B.S. Industrial Technology (2007)

    For more information on our robotics, please visit:
    http://www.ish-electronics.webs.com

Similar Threads

  1. Angle measurement for balancing robot.
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 52
    Last Post: - 21st March 2010, 12:33
  2. Replies: 0
    Last Post: - 2nd February 2009, 23:23
  3. communicating pic18f452 with pic16f877a
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th July 2007, 19:54
  4. pic to mobile
    By microkam in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2005, 18:26
  5. IR for robot on 16F877A
    By Samuel in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 9th April 2005, 20:57

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