ATTINY85 does not control MG995

I have an owl that the head bobs - i want to control it with a servo.

I have a MG995 servo and I want to control it from an ATTiny85.
Using the ArduinoISP to code.

I have tried SoftwareServo and Servo8bit but they do not work.

Is there some other software or 'trick' i need to get/do to make it work ?

For informed help, please read and follow the instructions in the "How to get the best out of the forum" post, linked at the head of every forum category.

The search phrase "attiny85 servo" turns up a number of tutorials.

Maybe helpful:
ATtiny85 Servo Control: Programming Tutorial | Arrow.com | Arrow.com

ATtiny85 servo code updated Arduino sketch with SoftwareServo library by jeannine.huffman (codebender.cc)

Also, a few YouTube vids show in search.

I'm going with "correctly set the fuses".

What core are you using?

By core do you mean which Arduino?

Then Uno.

Jim S

I shall give it a try.

Arduino "cores" are the low level firmware that allows Arduino code to run on different MCUs.

There are a couple of different ones for ATtiny.

The best core that I found while searching for a core to use with my tiny85 projects is the ATTinyCore core by Spence Konde. See the linked page for installation instructions.

To control servos using the tiny85 and the ATTinyCore core use the Servo_ATTinyCore library. It is included with the core and there are examples included with the library.

tiny servo examples
The above is with the ATTinyCore core and the tiny85 selected in Tools, Boards.

I have tested the knob example it and works fine with a tiny85 and mini servo.

Be sure to power the servos with an external power supply like a 4 AA cell battery pack. Servos can draw in excess on an Amp so should not be powered by an Arduino or USB.

It turns out all I needed to do was use the ‘upload with programmer’ option.

Thanks to all who replied.

Jim S

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.