The Blacksmith is built from the Lego Spike Essential educational kit. The motor activates the movement of the hand holding the hammer. When the hand is lowered onto the anvil, the color sensor is triggered.
The set includes step-by-step building instruction and an example of program (in Spike environment).