Tennis for Two speed

Home Evil Mad Scientist Forums Microcontrollers Tennis for Two speed

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22219
    Raphaël
    Participant
    Hello,

    Excuse me if my english is not very good.  :-)

    I programmed an ATMEGA168 with Tennis for Two program.
    it works well, but it seems to me that the speed of the ball is slower.

    What is the setting in the program to be changed to accelerate the movement?

    thank you
    #20468
    Windell Oskay
    Keymaster

    This discussion was created from comments split from: about Tennis For Two on scope.

    #22220
    Windell Oskay
    Keymaster

    I’ve split off this discussion since it was not relevant to the one that it was attached to.

    Try adjusting the speed of the clock to 8 MHz. The original makefile for the project uses a  “-U lfuse:w:0xE2:m” argument, which sets the internal clock to 8 MHz.  You do not need an external crystal. 
    #22221
    Raphaël
    Participant

    I checked and the value of lfuse was 62 (with division of the clock by 8).

    So I changed the value to E2, it works faster, but the disadvantage is that the signal on the scope is totally unstable.

    Maybe the reason provide by the beadboard is not good for the hight speed circuits ?

    It is better to solder the components on a real IC.

    My error will be verified that the installation works ! (slowly, but with stability :-)

    Thank-you for this good and funny job !




    #22222
    Windell Oskay
    Keymaster

    Yes; solder your components. :) 

    You may want to read this great old article by Bob Pease, What’s All This “SMWISICDSI” Stuff, Anyhow?, that speaks to the question.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.