Servo motors controlled via potentiometer using Timer1 and no servo libraries

so im tryin to figure out how to control the timer1 for pin 9 and 10, and so far im having no success.

the code is below im trying to make it

void setup() {
DDRB|= 0x06;
PORTB|= 0x02;

TCCR1A = 0x22;
TCCR1B = 0x1C;

}

void loop() {

}

so im tryin to figure out how to control the timer1 for pin 9 and 10

Why? Is this an assignment and you haven’t been paying attention in class?

the code is below im trying to make it

  1. you are posting that code incorrectly Please read this:-
    How to use this forum

  2. If that is as far as you have got then the project is way way too advanced for you at the moment. Learn a bit more about code and timers before trying something like this.

all good figured all out......
;D ;D ;D 8) 8) 8)

MODS shut down this thread....