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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Toy Challenge 2

Participated in the
Toy Challenge 2

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    5 Discussions

    None
    nodoubtman

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

    None
    nodoubtman

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