Automated camera control based on ATtiny13