Halloween Crabby Crabapple Tree animatronics

Table of contents

Halloween Crabby Crabapple Tree animatronics

Abstract

Crabby the crabapple tree wakes up if you get too close and yells at you to quit stepping on his roots. The build features Arduino Nano, PIR sensor, ISD1820 voice recorder module, LM386 audio amp.

Is there nothing more scary to a trick or treater than when you cross into someone's front yard at night and the trees have a bad attitude ? 

This video says it all:

https://youtu.be/rQRn7Bjk5Uc

schematic and photos as shown 

image

image

image

image

image

image

// 
// OPERATION DESCRIPTION
// use PIR to trigger sequence 
// on trigger, turn on LED output D4
// wait a few seconds , then edge trigger the recorded message on the ISD1820PY
// turn off LEDs after 30 seconds


int motionDetected=LOW;  
int LiteLEDs=LOW;
int playMessage=LOW;

void setup() 
{
  
  pinMode(3, INPUT); //PIR motion detected, HIGH for 6 seconds
  pinMode(4, OUTPUT); //to MOV gate to turn on lite LEDS
  pinMode(5, OUTPUT); //to playE ISD1820PY
  
  Serial.begin(9600); // serial monitor for troubleshooting
  
 // delay(15000); // wait 15 seconds for PIR to initialze 
  
}

    
void loop() {

delay (3000); // only read every 5 seconds 
    
motionDetected=digitalRead(3); // high means PIR is triggered
//Serial.print("motion detected =");
//Serial.println(motionDetected);
//Serial.print("DFplayer Busy =");
//Serial.println(DFplayerBusy);


if (motionDetected==HIGH)
  { 
    digitalWrite(4,HIGH);
    delay(1000); 
    digitalWrite(5,HIGH);
    delay(1000);
  }
  else
  {
    digitalWrite(4,LOW);
    delay(200); 
    digitalWrite(5,LOW);
    delay(200);
  }


}  //bracket for void loop

Category : project
Parents Comment
  • Could also perhaps combine the two for a 'run the gauntlet' type experience.

    Dispenser somewhere toward the back of the tree with a welcoming brightly illuminated 'treat zone'.

    But then a number of PIR sensors guard the area in-front, that if triggered, will awake the crabby tree and all its animatronic occupants.

    Perhaps something you could add to over time.

Children
No Data