The DC motor and 1 Touch sensor and 1 Buzzer are connected to a programmable motehrboard (Attention! The DC motor must be connected to port M2 for the Buzzer to work properly.)
When the Touch sensor is pressed, the coffee grinder lever starts rotating, and meanwhile, using the Buzzer, the melody is played
The coffee grinder is constructed in the same way as in P2
The grandmother rolls up to the coffee grinder on a 5-button remote controlled robot, raises her arm with a servo motor mounted on her shoulder, then strikes and pushes the button, which starts the coffee grinder
The first press of the button plays the first section, the next press, and so on, until the end of the tune
After the last melody part, the next press starts the melody from the beginning
The coffee grinder arm always rotates with the music
The coffee grinder is constructed in the same way as in P2
The grandmother is built in the same way as in P3, but an accelerometer and a push button are used for control
Pressing the Touch sensor of the coffee grinder causes the coffee grinder arm to rotate at a random speed, 1 IR Photoreflector is used to measure the rotation speed of the coffee grinder arm
After one lap, the song plays at the corresponding speed while the arm continues to rotate