Hi,
I have designed and made an electronic dart scorer which keeps track of two players' scores from 501 to 0 and indicates how many throws a player has left in their turn using three PICAXE-40X2 microcontrollers. Two of them are used to control multiplexed 7-segment displays and work fine. The third is used to respond to the input which is from a matrixed 3x4 keypad and a push button "enter" switch, carry out all the relevant calculations and output information regarding which player's turn it is, how many throws they have left and what their current score is. If an invalid score is entered, it will light up an indicator LED for a short time. However, this PICAXE is not working at all reliably. Sometimes the displays are adjusted correctly but sometimes the score changes by the wrong amount and more often, the indicator LED lights up when it shouldn't.
I have tried changing the breadboard and swapping the PICAXE for a new one. I have written an alternative programme so that it takes the input from an array of twelve (non-matrixed) push buttons. None of this has made a difference. I have contacted PICAXE to check whether this could be down to a limitation of the chip, which it isn't. The programme works perfectly on the PICAXE Programming Editor simulation and I am somewhat stumped.
I have attached the full code for the PICAXE that isn't working along with a typed synopsis. If anyone has any ideas that could help, I would be most grateful.
Many thanks
View attachment Input Programme.basView attachment Input Code Synopsis.doc
I have designed and made an electronic dart scorer which keeps track of two players' scores from 501 to 0 and indicates how many throws a player has left in their turn using three PICAXE-40X2 microcontrollers. Two of them are used to control multiplexed 7-segment displays and work fine. The third is used to respond to the input which is from a matrixed 3x4 keypad and a push button "enter" switch, carry out all the relevant calculations and output information regarding which player's turn it is, how many throws they have left and what their current score is. If an invalid score is entered, it will light up an indicator LED for a short time. However, this PICAXE is not working at all reliably. Sometimes the displays are adjusted correctly but sometimes the score changes by the wrong amount and more often, the indicator LED lights up when it shouldn't.
I have tried changing the breadboard and swapping the PICAXE for a new one. I have written an alternative programme so that it takes the input from an array of twelve (non-matrixed) push buttons. None of this has made a difference. I have contacted PICAXE to check whether this could be down to a limitation of the chip, which it isn't. The programme works perfectly on the PICAXE Programming Editor simulation and I am somewhat stumped.
I have attached the full code for the PICAXE that isn't working along with a typed synopsis. If anyone has any ideas that could help, I would be most grateful.
Many thanks
View attachment Input Programme.basView attachment Input Code Synopsis.doc