how to move servo motor for using IR sensor in attiny85

hi

i have no idea about the coding which is for attiny85.

using IR sensor, to move servo motor ... i can do this in arduino uno, but attiny85 is not same code.

could you please help me how to do this...

full coding please...

can do this in arduino uno, but attiny85 is not same code.

Yes it is the same code. The only thing is that their is not a UART in the ATtiny so you have to use software serial, if you want serial code.

STOP CROSS-POSTING >:(

Grumpy_Mike:
Yes it is the same code. The only thing is that their is not a UART in the ATtiny so you have to use software serial, if you want serial code.

I am assuming the have copy pasta some code and copied a schematic and actually have little to no coding knowledge (or ability to think it seems).

I bet they just can't figure how to change the schematic and code to use the PWM pins of the Tiny rather than the UNO PWM pins.

rather than the UNO PWM pins.

But servos don't use the Arduino's PWM pins.

copy pasta

Is that making spaghetti from a 3D printer?

Grumpy_Mike:
But servos don't use the Arduino's PWM pins.
Is that making spaghetti from a 3D printer?

Bad meme. Copy paste*.

I understand that servos require a PWM signal. Can be simulated in software or preferably by hardware PWM timers? Or am I missing something.

Eight bit PWM doesn't give sufficient resolution for the low duty-cycle PWM required to control RC servos.