Random Number Game With PIC16F628

Published

Introduction: Random Number Game With PIC16F628

Simple game that generates random numbers for you to guess, have sound, I used the PIC16F628

http://youtu.be/-R5jp4M_-YI



I used the compiler PIC C Compiler and Proteus to simulate, the files are attached along with a video project working

Share

    Recommendations

    • Make it Move Contest

      Make it Move Contest
    • Clocks Contest

      Clocks Contest
    • Casting Contest

      Casting Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    5 Comments

    i have slightly modified the code, because when you press - when 0 it displays 255, which is a int , and when you pressed + it display 11, 12, 13 and so on.. you have to include an if then... see the code.. :

    while(input(PIN_A2)==1){
    lcd_gotoxy(14,1);
    printf(lcd_putc,"%U ", xute);


    if(input(PIN_A0)==0){

    if (xute < (nivel*10)){
    if (xute >= 1){
    xute++;
    delay_ms(250);
    }
    }
    }
    else
    if(input(PIN_A1)==0){
    if (xute <= (nivel*10)) {
    if (xute > 1){
    xute--;
    delay_ms(250);
    }
    }
    }
    }

    it would be great to make this project.. but i need the schematic can you please email me : nodoubtman@hotmail.com

    thank you so much! :)
    marC:)

    do you have the schematic please?

    thank you!
    marC:)

    sorry, missed it, I uploaded

    Good :)