[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 580: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 636: sizeof(): Parameter must be an array or an object that implements Countable
Brads Electronic Projects Forum • Table not doing much - Page 6
Page 6 of 7

Re: Table not doing much

Posted: Wed Dec 19, 2012 11:54 am
by brad
bitfogav vs brad - a battle for the correct capacitors!

Re: Table not doing much

Posted: Wed Dec 19, 2012 8:48 pm
by bitfogav
HaHa!. I sware I saw 22pf cap somewhere that was the recommended cap, but yeah I checked the 18F4550 datasheet and it recommends 15pf for a 20mhz crystal :lol:


I just looked at the RetroBall for the Pong table code and I think I see what you mean about your delays Brad? you are using the programme loop to decrease the delays.

Code: Select all

If DisplayIndividualScoreDelay(x) <> 0 Then
      Dec(DisplayIndividualScoreDelay(x))
Else
      DisplayIndividualScoreDelay(x) = 20
      DisplayIndividualScore(x) = false
EndIf
   
If DisplayScorePauseTimer <> 0 Then
      Dec(DisplayScorePauseTimer)
Else
      DisplayScorePauseTimer = 100
      DisplayScore = false
EndIf

Re: Table not doing much

Posted: Thu Dec 20, 2012 9:14 am
by brad
Yeah I could have / should have made the delay routines nicer to use but I'm afraid I am a little bit lazy when it comes to coding sometimes :)

Re: Table not doing much

Posted: Fri Dec 21, 2012 7:00 am
by cnribbens
Ok I made the board, but didn´t connect it yet! A small question about the schematic of bitfogav, why are there an `1´ and a ´2´ in the schematic?

Image

Re: Table not doing much

Posted: Fri Dec 21, 2012 7:17 am
by bitfogav
Can you be abit more specific to what you mean by 1 and 2? I guess you mean Osc1 and Osc2? if this is the case then if you look at the datasheet for the 18F4550 its shows the pin connections as Osc1 and Osc2?. But I would add, that it dont make any difference if you connect Osc1 of the microcontroller to Osc2 of the Crystal circuit or vise versa.

This is a image from the datasheet - (ignore the resistor in the schematic as this is not needed)
18f4550data.jpg
18f4550data.jpg (18.75 KiB) Viewed 21721 times

Re: Table not doing much

Posted: Fri Dec 21, 2012 7:21 am
by cnribbens
I mean the 1 and 2 in yellow near the crystal and lines after caps.

Re: Table not doing much

Posted: Fri Dec 21, 2012 10:38 am
by bitfogav
Oh them, they are just symbols that are automatically inserted with the schematic software. sorry if they have caused any confusion.
hacky%20add%20on%20board.jpg
hacky%20add%20on%20board.jpg (6.76 KiB) Viewed 21718 times

Re: Table not doing much

Posted: Fri Dec 21, 2012 10:03 pm
by cnribbens
Ok good to know bitfogav!!!

Re: Table not doing much

Posted: Sat Dec 22, 2012 8:28 pm
by brad
Also be mindful that ideally you want to keep the connection between the oscillator circuitry and the PIC pins as short as possible.

Re: Table not doing much

Posted: Sun Dec 23, 2012 2:19 am
by cnribbens
Ok, I made the wires really short and placed everything together and connected the add-on board to his big brother. And no weird stuff is going on. I can still play the game and no change ofcourse. The magic will happen with the new code :mrgreen:

Re: Table not doing much

Posted: Mon Dec 24, 2012 10:35 pm
by brad
Sorry for the delay with this. I spent all day today working on our new deck. I will get to it hopefully this year!

Re: Table not doing much

Posted: Thu Dec 27, 2012 7:14 am
by cnribbens
Yeah cool! not in a hurry, merry christmas and best wishes !! :P

Re: Table not doing much

Posted: Thu Dec 27, 2012 9:02 pm
by brad
Merry Christmas right back at ya!

Re: Table not doing much

Posted: Fri Jan 11, 2013 7:09 am
by cnribbens
The table is still working so that's a good sign. Still some flickering without the code update, but it's still a cool end result!!!

Re: Table not doing much

Posted: Fri Jan 11, 2013 9:49 pm
by brad
I do apologise for not having it done yet - obviously I didn't get it done by the end of last year...

Once all this PICnDuino stuff settles down I will have some spare time - it's crazy trying to organise orders for nearly 700 people! (especially when 150 of them fill out there orders incorrectly so they don't match the funds they send through...)