Halloween game with moving sensor (12F683)

Posted on Jun 20, 2012

Halloween is coming up and it's time to do some pranks. Everyone likes Halloween and I'm no exception. Every year me and my wife decorate the house with lot's of bugs, spider webs, creepy posters and of course lot's of Halloween candy. While making the normal Halloween preparations I came up with the idea of making a circuit that would make some scary noises and also would react to movement. I expect to get some screams and laughs from friends that come to visit us this year. The circuit is basically a sound chip that records and stores sounds in memory and plays them back with a microcontroller and it's triggered by light and motion. The sound chip is from maker winbond and has a very good sound quality.

Halloween game with moving sensor (12F683)
Click here to download the full size of the above Circuit.

This circuit has 2 sensors. One motion sensor ( Sharp GP2D12 ) and a light sensor ( LDR ). The microcontroller monitors both sensors and triggers the sound chip in certain conditions. Every time the circuit is powered on, the microcontroller stores the distance read by the sharp sensor and uses this as reference for the space available for object/people detection. Anything moving in front of the sensor up to that reference activates the first stored sound. The other 3 sounds are time triggered only when the light is out. The LDR senses the light intensity and only when placed in darkness it will activate the remaining sounds. Sometimes the sounds are individually played and sometimes combined. There are 4 sounds slots available with max. length of 6 seconds each. The PCB has some connectors with jumpers making it possible to change from record to playback mode and vice versa. Connector #1 named REC/PLAY is a 3 pin connector and jumper connection must be placed to the left side for record mode or to the right side for playback mode. Also connector #2 named Jumpers must have 2 jumpers installed for playback mode. This is responsible for the memory address of the sounds. When in record mode, some wire jumper connections must be made to change the address of the recordings manually connecting pin 2 and 3 to VDD or VSS according to table bellow: For VDD and VSS connections it's possible to use connector...

Leave Comment

characters left:

New Circuits



Popular Circuits

Modern FM Converter
Remote controlled LED
Water-level sensing and control
Generate Dual Voltages That Track By Percentage Of Range
555 How can I make a 15 minute egg timer circuit
circuit block diagram
Zener Diode Testers
Simple receiver with microvolt sensitivity
2001 Civic A/C Compressor
electronic chime