Drive Servo with Attiny84

Hello everyone

Is it possible to use an Attiny84 to drive a servo? I understood that when I bought the Attiny84 it has 16-bit timers, and so should be able to use the Servo.h library, in the same way as an Arduino Uno?

Is that correct thinking?

If it is possible is there anything I need to know about which pins to use?

I am trying to run a Sketch that does a basic servo sweep, which works fine on the Arduino Uno but does not work on the Attiny84.

Ive checked the programming of the Attiny84 with a basic Blink sketch and it works fine.

Thanks!

You could try this:

http://forum.arduino.cc/index.php?topic=198337.msg1463365#msg1463365

crtinkerer:
Hello everyone

Is it possible to use an Attiny84 to drive a servo? I understood that when I bought the Attiny84 it has 16-bit timers, and so should be able to use the Servo.h library, in the same way as an Arduino Uno?

Is that correct thinking?

Yes. It has a 16-bit timer, like the Uno.

crtinkerer:
If it is possible is there anything I need to know about which pins to use?

Definitely possible.

crtinkerer:
Hello everyone

Is it possible to use an Attiny84 to drive a servo? I understood that when I bought the Attiny84 it has 16-bit timers, and so should be able to use the Servo.h library, in the same way as an Arduino Uno?

Is that correct thinking?

If it is possible is there anything I need to know about which pins to use?

I am trying to run a Sketch that does a basic servo sweep, which works fine on the Arduino Uno but does not work on the Attiny84.

Ive checked the programming of the Attiny84 with a basic Blink sketch and it works fine.

Thanks!

Which clock on the Attiny84 are you using? I've read internal 1MHZ isn't enough, but I've never tried.

Check SoftwareServo library , a guy ([Solved]ATtiny 85 and servo library - Motors, Mechanics, Power and CNC - Arduino Forum) got it to work on attiny85.

Update: another guy which teaches to use the Software Servo library on Attiny85 Projects from Tech: ATtiny85 Servo: SoftwareServo Library

Take a look here: Using PWMServo_v2 lib with ATtiny84 - Microcontrollers - Arduino Forum