This project is used in car mirrors to automatically adjust the two sides mirror to help driver see the ground while reversing.
When reverse signal is generated the two sides mirrors’ motors will turn in a direction for 3 seconds.
After the signal is removed, the two motors will go back to their previous position.
If the signal is interrupted at any time during the 3 seconds it will return automatically to its previous position.
It is simulated in Proteus simulator and programmed using Atmel studio.
the controller is ATTINY85 microcontroller.
after reverse signal generated, mirror motors will start spinning for 3 seconds.
the code is based on timer interrupt which counts the 3 secondes and it starts counting just after reverse signal triggers.


