The DFRduino UNO R3 (the same as arduino uno) controls the movement of stepper motor. The sensor here can detect human body. If there is anyone passing by, the stepping motor’s movement will be triggered and a facial mask will be released, with MP3 music played accordingly. After for a while, the stepping motor will re-launched and take the mask back to its original place.
During the connection, beware that both the micro-controller and the motor driver shield should be supplied with power. It is better to connect the MP3 with 1K electric resistance to reduce the noise.
2. Drawing the 3D model:
You need to 3D print a wheel. Please note that the wheel will be short of motive power if it was too big. Meanwhile, the wheel cannot be too small either as this will reduce the creeping effect by slowing down the speed of the mask falling down.
3. Decorating the facial mask
You can make a creepy face by yourself, or you can buy one from Ebay. You can also install LEDs in its eyes to make it creepier.
Hang the mask in the place you want. Place a pulley wheel on top of it so that the DFRduino UNO and the motor driver can be easily installed. The speaker will sound better if you insert soft mats in between the mask and the player. Meanwhile, put the sensor to the place where people would come in.
Beware that both the motor driver shield and DFRduino Uno shall be supplied with power. The motor driver shield needs relatively large current.
Now, it's done! Do you know how to make one now?
//we have a stepper motor with 200 steps per rotation,CS pin 6, dir pin 4, step pin 5 and a current of 300mA