i am building a project that consists of two buttons connected to a pic 16f877a that needs to have a time delay and at the end of the delay a light comes on and the button has to be pressed, the first to press their button is the winner and their led lights for 30 seconds and then goes off but the time delay needs to be a random time between 2 and 10 seconds each time the game is played. (ie not the same time delay every time) could anyone help with this problem as i have been searching through the forums but am unable to find any code for pbp that can help. i have built the circuit and can place the led's and buttons on any port. it would also be very useful if it was possible to display on a couple of 7 seg displays the time between the light coming on and the button being pressed. i will post all details of the project as soon as its completed. many thanks in advance for all/any help.
Bookmarks