Random Number Game With PIC16F628

Intro: 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

    • Metalworking Contest

      Metalworking Contest
    • Tiny Home Contest

      Tiny Home Contest
    • Audio Contest 2018

      Audio Contest 2018

    5 Discussions

    0
    None
    nodoubtman

    6 years ago on Introduction

    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);
    }
    }
    }
    }

    0
    None
    nodoubtman

    6 years ago on Introduction

    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:)