atTiny85 5V and servo usage #651
Replies: 1 comment 1 reply
-
Is that a fresh tiny85? If so, have you remembered to do "Burn Bootloader" with the desired clock option? A virgin classic AVR always ships with the fuses set for 1 MHz. Since incorrect fuse settings will brick a classic AVR, we follow the convention of every other classic AVR core including the official ones, and only write fuses when doing "burn bootloader". Hence you must do that with a new chip whether or not a bootloader is being used, as well as any time you change one of the settings marked "burn bootloader required" in order for that setting to be applied. Test with a LED and blink that it is actually running at the clock speed you have selected - if it is blinking faster or (more likely) slower than normal, this is the problem. Since servo control is timing-critical, having the speed set wrong will completely break it. As for examples of using the included Servo_ATTinyCore... uh, they're kind of included with the core? |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have an atTiny85, and I'd like to control a servo on pin 4. However, this code does not work for me.
I'd like to get a servo to run, I've also tried using the TinyServo and PrecisionServo libraries
None of these have worked for me. Are there examples of using the Core library for a servo control?
Beta Was this translation helpful? Give feedback.
All reactions