————————Supplies————————
crowbits-uno
crowbits-pir-sensor
crowbits-ir-reflective-sensor
crowbits-mp3
crowbits-rgb-matrix
——————Step-by-step guide——————
Step 1:
Buy a plastic jack-o’-lantern about 20cm in diameter, cut a hole in the nose, and use hot glue to fix a Crowbits PIR sensor in it.
Step 2:
Use a knife to make holes in the eye area, and use hot glue to fix a Crowbits RGB Matrix behind the hole.
Step 3:
Install the master controller Crowbits_UNO, Crowbits_MP3, speaker, Crowbits-IR,Reflective Sensor. Then program and debug the whole process.
*Note: You need to put the downloaded sound material into the SD card in advance.
Step 4:
Install the Crowbits-IR Reflective Sensor on the inside top of the pumpkin lantern, place the master controller and speaker inside the pumpkin lantern, and cut a small hole in the lid to let the candy in. Turn on the power and the whole program starts to run.
Once the PIR Sensor detects a human, it will activate the lantern program. Its eyes light up and will make a ghost howl simultaneously. When a candy is put in, it will be detected by the IR Reflective Sensor, and the lantern will turn off its eyes and stop howling.