I want to control a Servo (SG90) with my Digispark ATTiny85. The problem is, that the servo doesnt move (It sometimes jitters a bit when i pull the PWM pin out and put it back in, but thats it). I already checked all the cables and also swapped them. I also tried different pins on the digispark but that also didnt work.
I assume/hope you are using some kind of servo driver module/chip, since it's unrealistic to expect you can run a servo directly from an ATtiny pin. Can you link to the driver you're using?
Ok, looks like your particular servo has a simple integrated driver circuit built into it, so it should work.
Have you read this in the specification of the library you use?
static uint8_t refresh(bool force = false); // must be called at least every 50ms or so to keep servo alive
// you can call more often, it won't happen more than once every 20ms
Have you tried with my ATTinyCore using the included Servo (or Servo_ATTinyCore if you have a Servo library in your libraries folder - write as if you were sing servo, except include Servo_ATTinyCore.h intead of Servo.h) library? It supports the digispark/micronucleus t85's and and is believed to work.....