When the relay is triggered, for example by your choice of microcontroller ... power which is more than sufficient in this case. Most NPN-type BJTs will work fine though. Consider the following ...
We can understand why the final design used a microcontroller, but we also think that [Alex’s] relay logic circuit is an eloquent way of doing things. He uses limiting switches as the feedback ...