Pong Table Button Problem
Moderators: Chuckt, Garth, bitfogav
-
- semi-newbie
- Posts: 10
- Joined: Mon Jun 07, 2010 2:08 am
- Location: Turkey [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Pong Table Button Problem
I finished pong table but buttons don't work.There is number "9" appears and ıf I push the mode button continuously, countdown start and game begins but if I leave the mode button screen come back to number "9".
Has anybody had same problem.If so;Could you please tell me how solve it?Or has anyone finished pong table without buttons problem.(maybe mine is individual problem which caused by my programmer)
Has anybody had same problem.If so;Could you please tell me how solve it?Or has anyone finished pong table without buttons problem.(maybe mine is individual problem which caused by my programmer)
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
If you could post a video with what happens it would certainly help me see whats going on.
When I get the time I will make the new version of the board and try it out - I have just been tied under with all sorts of other things lately.
When I get the time I will make the new version of the board and try it out - I have just been tied under with all sorts of other things lately.
-
- semi-newbie
- Posts: 10
- Joined: Mon Jun 07, 2010 2:08 am
- Location: Turkey [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
unfortunately, I dont have camera so that I can not post a video
All I want to know if anybody finished pong table with new board which has got mode, player select pads.
If anybody done this without button problem it shows me I have got hardware or software problem.
If anybody had same problem as I explained it shows there is a common problem.
All I want to know if anybody finished pong table with new board which has got mode, player select pads.
If anybody done this without button problem it shows me I have got hardware or software problem.
If anybody had same problem as I explained it shows there is a common problem.
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
I think there has been six or 7 other people who have bought a board, but I have had no emails saying there have been errors.
I will certainly let you know how I go when I test my circuit though.
I will certainly let you know how I go when I test my circuit though.
-
- semi-newbie
- Posts: 10
- Joined: Mon Jun 07, 2010 2:08 am
- Location: Turkey [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
I am looking forward to hearing from you
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
I will have some time this weekend to build it. I will let you know what I find
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
Okay, I finally got around to rebuilding the project with the new board.
Everything works fine for me - Just use the code as is in the download file (no modifications are needed)
Instead of connecting your buttons to the designated button pads on the board, connect them instead to expansion port pin D and pin E.
You will need to make it so that the buttons will output a logic 0 when not pressed and a logic 1 when pressed.
That's all you (should) need to do to get it to work, because that's how I got mine to work!
Everything works fine for me - Just use the code as is in the download file (no modifications are needed)
Instead of connecting your buttons to the designated button pads on the board, connect them instead to expansion port pin D and pin E.
You will need to make it so that the buttons will output a logic 0 when not pressed and a logic 1 when pressed.
That's all you (should) need to do to get it to work, because that's how I got mine to work!
-
- semi-newbie
- Posts: 10
- Joined: Mon Jun 07, 2010 2:08 am
- Location: Turkey [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
My button problem has been solved now....
Thank you very much..
Thank you very much..
Re: Pong Table Button Problem
What was the problem with your buttons?ibrahim wrote:My button problem has been solved now....
Thank you very much..
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
I'm interested also, how did you fix it in the end?bitfogav wrote:What was the problem with your buttons?ibrahim wrote:My button problem has been solved now....
Thank you very much..
-
- semi-newbie
- Posts: 10
- Joined: Mon Jun 07, 2010 2:08 am
- Location: Turkey [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
Hi Bitfogav,
My botton problem was I could not control mode and player select function by using buttons.
Circuit was working as I explained above.
Hi Brad,
How I fixed it;I changed circuit as in schematic. I add 10k resistors from expansion pads D and E to gnd.Without these pull down resistors I could not control buttons.I don't know why , I just only tried and it works...
I also had led problem like, some led were lit randomly.I thougt that it is caused by 74373 vcc and gnd wire thinness so I add capacitor for each 74373 and make vcc and gnd wire thicken.Maybe mine is caused by my led current but if somebody has same problem I would advise that apply what I done...
My botton problem was I could not control mode and player select function by using buttons.
Circuit was working as I explained above.
Hi Brad,
How I fixed it;I changed circuit as in schematic. I add 10k resistors from expansion pads D and E to gnd.Without these pull down resistors I could not control buttons.I don't know why , I just only tried and it works...
I also had led problem like, some led were lit randomly.I thougt that it is caused by 74373 vcc and gnd wire thinness so I add capacitor for each 74373 and make vcc and gnd wire thicken.Maybe mine is caused by my led current but if somebody has same problem I would advise that apply what I done...
Last edited by ibrahim on Tue Jun 21, 2011 12:36 am, edited 1 time in total.
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
That is really strange that it works for you like that and not the other way
When you press your button, you are actually getting 1/2 VCC applied (due to the voltage divider)
However, I am very glad that it is all working
When you press your button, you are actually getting 1/2 VCC applied (due to the voltage divider)
However, I am very glad that it is all working
-
- semi-newbie
- Posts: 10
- Joined: Mon Jun 07, 2010 2:08 am
- Location: Turkey [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Pong Table Button Problem
Yes you right,it is very interesting but ıt is the only way that I could control the buttons.Maybe it is related with the expansion port output lojic level.I mean when I check the port D,E by oscilloscope there is 200-150 milivolt (it is lojic 0) without pressing the buttons.By adding pull down resistor expansion D and E outputs goes to real zero and when I press the button I apply 1/2 vcc to port D,E and ıt works.
Thank you so much for all your help I really appreciate it...
Thank you so much for all your help I really appreciate it...
Re: Pong Table Button Problem
That is a strange setup for setting up buttons on a PIC. But I think your find that you will need the pull-down resistors for the circuit to work, the Expansion Port is working correctly (the logic levels?, Or pins that are not connected are left floating).
The PIC would read a logic 1 at a voltage around 1.5volts approx and above, so when you press the button you would get about 2.5volts. (with your votage divider)
I think this would be more of a suitable circuit for your buttons (obviously you need to do this with both buttons)
The PIC would read a logic 1 at a voltage around 1.5volts approx and above, so when you press the button you would get about 2.5volts. (with your votage divider)
I think this would be more of a suitable circuit for your buttons (obviously you need to do this with both buttons)
Re: Pong Table Button Problem
I think Ive found a problem to another button issue.
While I was looking at the super pong table design and code, Ive noticed that if you connect the buttons to the Mode/Select connections on the board. then no matter what you do the buttons wont work?, as the connections for Mode/Select are not programmed in the code?
These pins (Mode/Select) are connected to PORTA.4 & PORTA.5 (not used in the code, unless im missing something Brad?)
Also if you do connect the buttons to the Mode/Select connections on the board then you will need to make the buttons output a logic 0 when pressed. as the resistors on the board connected to the buttons go to 5volt power supply. As Brad has documented in the schematics.
Heres a picture showing that the resistors for the Mode/Select connections are connected to the 5v power supply
While I was looking at the super pong table design and code, Ive noticed that if you connect the buttons to the Mode/Select connections on the board. then no matter what you do the buttons wont work?, as the connections for Mode/Select are not programmed in the code?
These pins (Mode/Select) are connected to PORTA.4 & PORTA.5 (not used in the code, unless im missing something Brad?)
Also if you do connect the buttons to the Mode/Select connections on the board then you will need to make the buttons output a logic 0 when pressed. as the resistors on the board connected to the buttons go to 5volt power supply. As Brad has documented in the schematics.
Heres a picture showing that the resistors for the Mode/Select connections are connected to the 5v power supply
Who is online
Users browsing this forum: No registered users and 2 guests