![]() |
![]() |
|
|
|
|
|
|
||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||
|
|
|
|
|||||||||||||||||||||||||||||||
|
|
|
|
|
|
|||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||
|
Home
|
|||||||||||||||||||||||||||||||||
![]() |
![]() |
Halloween Scare using 12F683
and
ISD2532
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.
![]()
R1
10K ohms resistor
The PCB used for this Project is
double layer and its size is
Top Side
Here is the top
side
Bottom Side
Here's the bottom
side.
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.
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
named
+ - Recording: With power off, connect a microphone, move jumper to record mode and connect message pin 2 and pin 3 to VSS. Turn on the
power and prepare the sound you wish to record for
#1 sound.
The Hex program named HSCARE.HEX must be saved in the 12F683 microcontroller's memory before soldering on the PCB.
![]() ![]()
Placing the motion sensor in the eye section.
![]()
The sharp sensor adds a crazy eyes look to this skull. ![]() The skull is ready to make some noise and scare the visitors.
|
|||||||||||||||||||||||||||||||
![]() |
![]() |
|
|||||||||||||||||||||||||||||||
|
|
|
|
|||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||
|
Elektrotekno.com | Free Schematics Search Engine | Electronic Kits | Electronic Accessories |
|||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||