Skip to content

matrn/Attiny13ServoTester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attiny13 Servo Tester

Servo tester using cheap attiny13.

Code

Code is written in arduino language. Use Arduino IDE to Attiny13ServoTester.ino into your MCU.

Schematic & PCB

Schematic and PCB are created using kicad. All files necessary for kicad are stored in kicad directory.

Modes

Tester has multiple modes:

  • Potentiometer mode - servo position is controlled by potentiometer and leds LED_MIN and LED_MAX light up when minimal or maximal position is reached.
  • Auto mode - servo tester sets up position automatically from 0° to 180° and from 180° to 0°.
  • 90° mode - position is whole time at 90°

Arduino IDE settings

  • Board: ATtiny13
  • Brown-out Detection Level: "1.8V"
  • Link Time Optimalisation: "LTO Enabled"
  • Processor Version: "ATtiny13"
  • Processor Speed: "9.6MHz Internal Oscillator"
  • Programmer: "Arduino as ISP"

Additional notes

  • Because servo can create current impact it's better to add electrolytic and ceramic capacitor paraller to power.
  • It's necessary to mirror SMD components on kicad PCB because PCB also contains THT components.

ToDo

  • mirror SMD elements
  • add resistor for servo
  • complete all modes
  • add mode change led signalisation
  • cleanup code