Introduction: Random Number Game With PIC16F628

Picture of 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

Comments

nodoubtman (author)2012-06-09

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

nodoubtman (author)2012-04-12

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

nodoubtman (author)2012-03-25

do you have the schematic please?

thank you!
marC:)

eto472 (author)2012-03-25

sorry, missed it, I uploaded

thgame (author)2012-02-26

Good :)

About This Instructable

2,221views

9favorites

License:

More by eto472:Random number game with PIC16F628
Add instructable to: