Ok, I have here another video, this time from brett, the other dude that was involved in the project. His video illustrates perfectly what "pattern2" is doing.
"pattern2" and "pattern" for that matter are both for the 8 LED's only.
Firstly, a little about "pattern" and then "pattern2"...
0:31 into the video he switches the machine on and after approx 2 seconds "pattern" begins its LED sequence (you managed to sort this out already by getting it to run 32 values instead of 16) this is also the sequence that
sometimes doesn't begin until 30-45sec after running out of credits. Its supposed to be approx 2 seconds after, as you can see at 0:58 into the video, it finishes paying out and he runs out of credits, then approx 2 seconds after, returns to its "pattern" sequence. Another interesting observation on my machine is that
sometimes it doesn't always begin at the start of the "pattern" table. I took some video footage and slowed it down and managed to conclude that when it does begin in the wrong place, it begins on the 17th value (16th if counting from 0) which is 0DB. but if we never sort this out It wouldn't really bother me but it maybe that this and the next problem are somehow related.
Now...
About pattern2...
0:50 into the video, watch what happens when he manages to get a win, which in this case he matches the first two reels (I provided a prize breakdown in an earlier post). As soon as the reels stop, it immediately begins it's "pattern2" LED sequence and is accompanied with a beeping sound, you see the LEDs start illuminating from the outside to the inside and from the inside to the outside, it does this twice (which is the complete "Pattern2" loop). Once the sequence is finished, the servo then begins to Payout the money.
As I've previously described,
sometimes it does not do the full "pattern2" loop, we already know the complete loop is comprised of 16 hex values, which when converted to their binary equivalents, represents which of the 8 LEDs are lit and which aren't. the problem is that it sometimes will do just 1 frame (one value) of the sixteen, accompanied by 1 beep, or it'll sometimes do more of the loop accompanied by the same amount of beeping before stopping, in either case in does not complete the full loop. Note that the beeping is affected in the exactly the same way as the LED loop. Also note that after this partial loop is finished, the servo begins paying out as normal. An interesting observation is that it seems to be able to do a full loop more times than it fails to do it.
In the attached schematic, the LEDs are connected to RB0-RB7 of the Pic, pin numbers are also illustrated in the schematic. here is the two parts of the magazine article as it was published, which the attached schematic came from. I had to save the attached schematic at a lesser quality for it to allow me to upload but for a better quality version, download the following PDF files. schematic is in part 1.
Part 1
http://www.epemag.wimborne.co.uk/EPE_Fruit_Machine_part_1Dec94.pdfpart 2
http://www.epemag.wimborne.co.uk/EPE_Fruit_Machine_part_2Jan95.pdf Note that I am currently using your last asm, Fruit machine v21 beta.
I think problem for me is that while I find programming interesting and I like to try and learn, I think my interests lay in classical electronics and project building and for me to complete this project in any meaningful amount of time it's obvious to me that I am going to need some help with this. I have tried hard to go away and work on this myself and I'm failing miserably and Not that I wanted to disclose this on here but I suffer with a mood disorder and I'm finding the concentration and patience needed for this a little beyond me, but at the same time I don't want be a failure and I don't want to just give up on this project, I have come so far.