about Tennis For Two on scope

Home Evil Mad Scientist Forums Microcontrollers about Tennis For Two on scope

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #20204
    dr.wily
    Participant

    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 ?

    #21246
    Windell Oskay
    Keymaster

    This may have to do with the “paddle” inputs.  If they are at the edge of the range, IIRC, they can serve backwards.

    #21247
    dr.wily
    Participant

    Thank 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 ?

    #21248
    Windell Oskay
    Keymaster

    Do 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.

    #21249
    dr.wily
    Participant

    Yes, 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

    #21250
    Windell Oskay
    Keymaster

    What 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?

    #21251
    Windell Oskay
    Keymaster

    Also, double check that you have +V at pins 20 and 21.

    #21252
    dr.wily
    Participant

    I 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 resistor

    On button :

    – blue (PC) with 10k resistor
    – green GND

    V+ is independent on each paddle or can I use one V+ for both ?

    #21253
    dr.wily
    Participant

    Pin 20 shows 0v

    pin 21 shows 4.3v

    #21254
    Windell Oskay
    Keymaster

    You need to connect pin 20 to V+.

    #21255
    dr.wily
    Participant

    Yes ! 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.

    #21256
    Windell Oskay
    Keymaster

    Great– glad to hear it!

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘about Tennis For Two on scope’ is closed to new replies.