pic18f2550 based USB gamepad...help....

Discussion in 'The Projects Forum' started by suraj022, May 28, 2012.

  1. suraj022

    Thread Starter New Member

    May 28, 2012
    7
    0
    i've been working on a pic18f2550 based usb gamepad..
    having 6 axis.
    i've done with both the software and the hardware..
    the problem is 5 axis are working properly but 5th axis is not responding...


    i've attached both the circuit and the source code..


    there's a change in the circuit that i've connected 6 potentiometers to RA0 to RA5

    potentiometer connected to RA4 is not responding..



    plz help..:confused:
     
  2. wayneh

    Expert

    Sep 9, 2010
    12,090
    3,027
    Have you verified that the pot is good? Just use a multimeter to confirm it's OK. I know it's a silly notion, but it's always best to rule out the simple stuff first.
     
  3. suraj022

    Thread Starter New Member

    May 28, 2012
    7
    0
    yes! i've tried that..pot is working on other ports but not on RA4
     
  4. wayneh

    Expert

    Sep 9, 2010
    12,090
    3,027
    I'm way outta my comfort zone, but I can read. The datasheet shows that RA4 is not an analog input, so I'd guess that's the problem.
     
    suraj022 likes this.
  5. suraj022

    Thread Starter New Member

    May 28, 2012
    7
    0
    yes i guess that's the problem...

    thanx....
     
Loading...