+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 5
    Points: 494, Level: 4

    Join Date
    Jun 2010
    Location
    Malaysia
    Posts
    8
    Helped
    1 / 1
    Points
    494
    Level
    4

    Help me with coin counter program code

    hi...

    I am new at PIC programing. i m working with mikroC. i have to make a project for counting coins.I have made the code already that displays welcome message on coin counting machine but im facing problem in following area:
    1.i want that when a switch is pressed at port b1 (PIC16f778A) it should display "coin dropped = 1" then if the switch is pressed again it should display "coin dropped = 2.

    can u plz help

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 5
    Points: 20,402, Level: 34
    Achievements:
    7 years registered
    pranam77's Avatar
    Join Date
    Apr 2008
    Location
    INDIA
    Posts
    2,780
    Helped
    626 / 626
    Points
    20,402
    Level
    34

    help in coin counter

    Just curious to know...Does your circuit "detects" the Coin or just senses it as an obstruction? Mean what happens if an opaque metal of the same size of the coin is dropped?



    •   AltAdvertisment

        
       

  3. #3
    Newbie level 5
    Points: 494, Level: 4

    Join Date
    Jun 2010
    Location
    Malaysia
    Posts
    8
    Helped
    1 / 1
    Points
    494
    Level
    4

    Re: help in coin counter

    actually the circuit senses the coin... i bought the circuit from electronics shops..but i need help in programming..can u plz help...



--[[ ]]--