Home › Evil Mad Scientist Forums › Microcontrollers › about Tennis For Two on scope
- This topic has 11 replies, 2 voices, and was last updated 11 years, 9 months ago by Windell Oskay.
-
AuthorPosts
-
March 14, 2013 at 9:03 pm #20204dr.wilyParticipant
Hello,
I just finish building Tennis For Two based on ATMEGA µc according on this article : http://www.evilmadscientist.com/2008/resurrecting-tennis-for-two-a-video-game-from-1958/
But I have a strange problem. Scope display all I need but the ball goes to the opposite and don’t pass above the net. For example, when the left player serves, the ball goes to the… left.
All seem to be well wired, the display is good. I don’t find why the ball goes to the wrong way. Any idea ?
March 14, 2013 at 9:13 pm #21246Windell OskayKeymasterThis may have to do with the “paddle” inputs. If they are at the edge of the range, IIRC, they can serve backwards.
March 14, 2013 at 10:01 pm #21247dr.wilyParticipantThank for your help ;)
The range of the paddle don’t change. The ball always goes to the opposite side. I notice when paddle is unpluged, scope displays the ball that changes side continuously, like if the players always pushed the button. But same thing, ball goes in the wrong way.
I have good voltage on ADC lines from 0 to 5v when I turn the knob. Other thing, at the serve :
at the left side, ball goes on upper left.
at the right side, ball goes to bottom right.Both paddles share the same vcc and gnd. It’s good ?
March 14, 2013 at 10:17 pm #21248Windell OskayKeymasterDo you have the 10k pull-up resistor in place?
And, are you sure that your buttons are “normally-open” types?
Check to be sure that the button input pins on the AVR show 5V until hou press the button.
March 14, 2013 at 10:48 pm #21249dr.wilyParticipantYes, I have mounted the 10k resistor and the push button is open type.
On the right player side, PC5 pin shows :
– 4.3v when button is open
– 0v when button is pushed
March 14, 2013 at 11:02 pm #21250Windell OskayKeymasterWhat is your power supply voltage?
And, are you sure that there’s a good ground connection between the paddles and the AVR?
If no buttons are pressed, what happens?
March 14, 2013 at 11:23 pm #21251Windell OskayKeymasterAlso, double check that you have +V at pins 20 and 21.
March 14, 2013 at 11:25 pm #21252dr.wilyParticipantI feed with 5v provided by a PC PSU, but I can test with batery.
Ground connection is OK, my multimeter show 0 ohm everywhere on ground circuit
When no buttons are pressed the ball don’t move, floats and falls automatically after 30s.
I wonder if it comes from pot. I bought this one : http://www.newark.com/bi-technologies-tt-electronics/p160knp-0qc20b10k/potentiometer-linear-10kohm-200mw/dp/34R4721?Ntt=1760793
I plug wires like this :
– brown (ADC) in center
– green (GND) at left
– orange (VCC) at right with 10k resistorOn button :
– blue (PC) with 10k resistor
– green GNDV+ is independent on each paddle or can I use one V+ for both ?
March 14, 2013 at 11:31 pm #21253dr.wilyParticipantPin 20 shows 0v
pin 21 shows 4.3v
March 14, 2013 at 11:44 pm #21254Windell OskayKeymasterYou need to connect pin 20 to V+.
March 15, 2013 at 12:18 am #21255dr.wilyParticipantYes ! You’r right. Indeed pin 20 was not connected, I thought according the diagram that pins 20 et 21 had the same purpose and I connected only pin 21 to provide power to paddle. Now it works flawlessly.
Very thank for your help and your work and effort to resitute this first video game.
March 15, 2013 at 1:26 am #21256Windell OskayKeymasterGreat– glad to hear it!
-
AuthorPosts
- The topic ‘about Tennis For Two on scope’ is closed to new replies.