Cov txheej txheem:

Halloween Scary Eyes Prop: 8 Kauj Ruam
Halloween Scary Eyes Prop: 8 Kauj Ruam

Video: Halloween Scary Eyes Prop: 8 Kauj Ruam

Video: Halloween Scary Eyes Prop: 8 Kauj Ruam
Video: Halloween Party Horror Decorations 2024, Hlis ntuj nqeg
Anonim
Halloween Scary Eyes Prop
Halloween Scary Eyes Prop
Halloween Scary Eyes Prop
Halloween Scary Eyes Prop
Halloween Scary Eyes Prop
Halloween Scary Eyes Prop
Halloween Scary Eyes Prop
Halloween Scary Eyes Prop

Tau ntau xyoo, hauv kev ua ntau yam haujlwm, tau muaj

tag nrho cov khoom sib txawv uas tsuas yog dag ib ncig tsis tau siv thiab kuv xav siv tsawg kawg qee qhov ntawm lawv rau qee yam uas yuav lom zem thiab muaj tswv yim tib lub sijhawm.

Mus dhau ntawm "cov ntawv qhia chaw nyob" rau Cov Tswv Yim, Kuv ua raws qee qhov haujlwm uas kuv xav tias tuaj yeem sib xyaw ua ke los ua ib yam dab tsi rau "Xus" no.

Kuv yuav tsum tau muab credit rau Steve Quinn, Tsis Txaus Siab Tsim rau siv lawv lub tswv yim.

Khoom siv

ITEMS thiab MODULES siv

Cov Qauv Siv

1 Sawv ib leeg Atmega8 Pawg Thawj Coj

2 PIR Raws Tus Tswj Xyuas Pawg rau 5 Volt Tso Tawm

3 LM386 Amplifier Board

4 Generic MP3 Player Module

5 MAX7219 8x8 LED Modules

6 PIR Module (Qhov Tseem Ceeb)

7 4 4 Ohm Hais Lus

Lwm Yam Khoom

a Npliag Cardboard Box

b. Tsis Siv Neeg Siv Dej Fwj

c. Xim Hloov LED 5V

d. Cov khoom sib txuas

e. Phom phom

f. Soldering Hlau

g. Cov cuab yeej Sundry & Cutters

h. 12V 1A kauj ruam Down Transformer

Tseem ceeb

1 Arduion IDE

2 Programming Board rau AVR Chips

3 Programming (Hlawv) Software

Kauj Ruam 1: Cov Qauv Sib Txawv

Cov Qauv Sib Txawv
Cov Qauv Sib Txawv
Cov Qauv Sib Txawv
Cov Qauv Sib Txawv
Cov Qauv Sib Txawv
Cov Qauv Sib Txawv

Ua ntej, peb yuav saib mus ua qhov sib txawv modules, Peb

yeej tuaj yeem ua ib qho PCB rau txhua qhov khoom siv hluav taws xob thiab muaj txoj haujlwm ua haujlwm tau zoo tab sis, rau kuv, lub tswv yim yog siv cov khoom sib txawv uas kuv twb tau ua yav dhau los rau cov haujlwm sib txawv thiab tam sim no qhov xav tau rau lawv tau dhau, tsuas yog xav rov siv cov khoom ntawd.

Pawg ATmega8

Kuv tab tom siv ATmega8 nti yam tsis muaj siv lead ua sab nraud. Qhov tseeb, cov laug cam no tau tsim los khiav qee P10 16x32 LED Modules thiab kuv muaj ob peb seem ntawm qhov haujlwm no. Daim duab ntawm lub rooj tsavxwm thiab txheej txheej PCB yog raws li hauv qab no (Saib Duab). Muaj ntau cov ntawv hais txog ua koj tus kheej Arduino Board ntawm "qhia tau". Koj tuaj yeem yooj yim siv Arduino Board qub uas koj yuav tau dag ib puag ncig.

PIR Tswj Pawg Thawj Coj

Lub Rooj Tswjhwm Saib PIR no tau ua los tig & Tawm qee qhov me me LED Raws kev ua koob tsheej zoo nkauj thiab tam sim no nws tsuas yog dag ib puag ncig thiab kuv txiav txim siab muab nws los siv. Kev teeb tsa Circuit yog qhia hauv cov duab

LM 386 Amplifier Board

Nov yog lub tshuab ua kom nrov nrov uas ua rau lub suab tso tawm los ntawm MP3 Player Module. kev teeb tsa thiab kev sib tham yog yooj yim yooj yim thiab cov duab hais txhua yam. kev teeb tsa Circuit thiab daim duab ntawm pawg thawj coj ua tiav yog piav qhia tus kheej.

MP3 Player Module

Kuv tau siv lub MP3 Player Module uas tau qhia hauv daim duab. Nws npaj tau yooj yim ntawm Amazon thiab lwm yam, nws pheej yig thiab siv tau yooj yim. Qhov zoo tshaj plaws txog qhov tshwj xeeb no yog qhov nws tsis xav tau kev hais kom ua ntxiv lossis txuas mus pib ua si. Lub sijhawm uas lub zog tsim nyog tau muab rau pawg thawj coj, nws pib ua nws txoj haujlwm.

MAX7219 8x8 LED Modules

Cov 8x8 LED Display Modules no muaj nyob ntawm Amazon thiab lwm yam duab ntawm cov uas kuv siv tau muab.

PIR Qauv

Kuv tau siv qhov npaj muaj PIR Sensor Module. Nws muaj nyob ntawm Amazon thiab lwm yam, nws pheej yig thiab siv tau yooj yim. Cov duab tau muab rau siv.

Kauj Ruam 2: Rooj Sib Tham Part 1

Lub Rooj Sib Tham Part 1
Lub Rooj Sib Tham Part 1

Lub Tswv Yim yog los ua ke tag nrho cov qauv no thiab ua rau Halloween Prop uas yuav tau qhib thaum twg ib tus neeg hla mus rau ntawm tus ncej. Txog qhov no, Kuv txuas lub 12volt fais fab mov rau PIR Tswj Pawg Thawj Coj, uas tig mus nqis qhov hluav taws xob mus rau 5V DC nrog kev pab los ntawm 7805 IC thiab qhov 5V DC Voltage no tau dhau mus rau PIR Sensor thiab txuas ntxiv mus rau lwm qhov qauv, ATmega8 Board, Amplifier Module thiab MP3 Player Module thaum twg ib tus neeg tuaj ua ntej ntawm PIR Sensor. Flow Chart hais txhua yam.

Raws li peb pom tau, PIR Sensor ua rau ATmega8 Board, Amplifier Module thiab MP3 Player Module, ATmega8 tswj LED Matrix "Ob lub qhov muag", MP3 Player ua suab nrov thiab Amplifier module xa lub teeb liab mus rau tus hais lus.

Arduino Code yog kev tshem tawm ncaj qha los ntawm Steve Quinn cov lus qhia, tshwj tsis yog lub sijhawm tau hloov pauv hauv txoj cai. Cov cai siv yog muab hauv qab no. Cov ntaub ntawv INO tseem txuas nrog.

Txoj Cai

// D10 = Digital O/P CS Pin

// D11 = Digital O/P Clock Pin

// D12 = Digital O/P Data Pin

//

#suav nrog

#suav nrog

const int numDevices = 2; // naj npawb ntawm MAX7219s siv

const int dataPin = 12;

const int clkPin = 11;

const int csPin = 10;

LedControl lc = LedControl (dataPin, clkPin, csPin, numDevices);

// Muab tus lej no tso rau hauv Arduino ib puag ncig kev txhim kho

#define LeftEye1 0

#define RightEye1 1

#define LeftEye2 2

#define RightEye2 3

#define LeftEye3 4

#define RightEye3 5

#define LeftEye4 6

#defineEyeEye4 7

#define LeftEye5 8

#define RightEye5 9

#define LeftEye6 10

#define RightEye6 11

#define LeftEye7 12

#define RightEye7 13

#define LeftEye8 14

#defineEyeEye8 15

#define LeftEye9 16

#defineEyeEye9 17

#define LeftEye10 18

#define RightEye10 19

#define LeftEye11 20

#defineEyeEye11 21

#define LeftEye12 22

#define RightEye12 23

#define LeftEye13 24

#defineEyeEye13 25

#define LeftEye14 26

#defineEyeEye14 27

#define LeftEye15 28

#define RightEye15 29

#define LeftEye16 30

#defineEyeEye16 31

#define LeftEye17 32

#defineEyeEye17 33

#define LeftEye18 34

#defineEyeEye18 35

#define LeftEye19 36

#define RightEye19 37

#define LeftEye20 38

#define RightEye20 39

typedef struct {

const tsis kos npe char array1 [8];

}

binaryArrayType;

binaryArrayType binaryArray [40] =

{

{// LeftEye1, 0

B01111110, B10000001, B10000001, B10011001, B10011001, B10000001, B10000001, B01111110

}, {// RightEye1, 1

B01111110, B10000001, B10000001, B10011001, B10011001, B10000001, B10000001, B01111110

}, {// LeftEye2, 2

B00000000, B00111100, B01000010, B01011010, B01011010, B01000010, B00111100, B00000000

}, {// RightEye2, 3

B00000000, B00111100, B01000010, B01011010, B01011010, B01000010, B00111100, B00000000

}, {// LeftEye3, 4

B00000000, B00111100, B00100100, B00110100, B00110100, B00100100, B00111100, B00000000

}, {// RightEye3, 5

B00000000, B00111100, B00100100, B00110100, B00110100, B00100100, B00111100, B00000000

}, {// LeftEye4, 6

B00011000, B00011000, B00011000, B00011000, B00011000, B00011000, B00011000, B00000000

}, {// RightEye4, 7

B00000000, B00011000, B00011000, B00011000, B00011000, B00011000, B00011000, B00011000

}, {// LeftEye5, 8

B01111110, B10000001, B10000001, B10011001, B10011001, B10000001, B10000010, IB 01111100

}, {// RightEye5, 9

B01111100, B10000010, B10000001, B10011001, B10011001, B10000001, B10000001, B01111110

}, {// LeftEye6, 10

B01111110, B10000001, B10000001, B10011001, B10011001, B10000010, B10000100, B01111000

}, {// RightEye6, 11

B01111000, B10000100, B10000010, B10011001, B10011001, B10000001, B10000001, B01111110

}, {// LeftEye7, 12

B01111110, B11000001, B10000001, B10011001, B10011010, B10000100, B10001000, B01110000

}, {// RightEye7, 13

B01110000, B10001000, B10000100, B10011010, B10011001, B10000001, B11000001, B01111110

}, {// LeftEye8, 14

B00111110, B01000001, B10000001, B10011001, B10011010, B10000100, B01001000, B00110000

}, {// RightEye8, 15

B00110000, B01001000, B10000100, B10011010, B10011001, B10000001, B01000001, B00111110

}, {// LeftEye9, 16

B01111110, B10000001, B10000001, B10011001, B10011001, B10000001, B10000001, B01111110

}, {// RightEye9, 17

B01111110, B10000001, B10000001, B10011001, B10011001, B10000001, B10000001, B01111110

}, {// LeftEye10, 18

B01111110, B10000001, B10000001, B10000001, B10011001, B10011001, B10000001, B01111110

}, {// RightEye10, 19

B01111110, B10000001, B10000001, B10000001, B10011001, B10011001, B10000001, B01111110

}, {// LeftEye11, 20

B01111110, B10000001, B10000001, B10000001, B10011001, B10011001, B10000001, B01111110

}, {// RightEye11, 21

B01111110, B10000001, B10000001, B10000001, B10011001, B10011001, B10000001, B01111110

}, {// LeftEye12, 22

B01111110, B10000001, B10000001, B10000001, B10000001, B10011001, B10011001, B01111110

}, {// RightEye12, 23

B01111110, B10000001, B10000001, B10000001, B10000001, B10011001, B10011001, B01111110

}, {// LeftEye13, 24

B01111110, B10000001, B10000001, B10000001, B10000001, B10000001, B10011001, B01111110

}, {// RightEye13, 25

B01111110, B10000001, B10000001, B10000001, B10000001, B10000001, B10011001, B01111110

}, {// LeftEye14, 26

B00000000, B00111100, B01000010, B01000010, B01000010, B01011010, B00111100, B00000000

}, {// RightEye14, 27

B00000000, B00111100, B01000010, B01000010, B01000010, B01011010, B00111100, B00000000

}, {// LeftEye15, 28

B00000000, B00111100, B00100100, B00100100, B00100100, B00111100, B00111100, B00000000

}, {// RightEye15, 29

B00000000, B00111100, B00100100, B00100100, B00100100, B00111100, B00111100, B00000000

}, {// LeftEye16, 30

B00011000, B00011000, B00011000, B00011000, B00011000, B00011000, B00011000, B00000000

}, {// RightEye16, 31

B00000000, B00011000, B00011000, B00011000, B00011000, B00011000, B00011000, B00011000

}, {// LeftEye17, 32

B00010000, B00010000, B00010000, B00010000, B00010000, B00010000, B00010000, B00000000

}, {// RightEye17, 33

B00000000, B00010000, B00010000, B00010000, B00010000, B00010000, B00010000, B00010000

}, {// LeftEye18, 34

B01111110, B10000001, B10000001, B10000001, B10000001, B10000001, B10001101, B01111110

}, {// RightEye18, 35

B01111110, B10000001, B10000001, B10000001, B10000001, B10000001, B10001101, B01111110

}, {// LeftEye19, 36

B01111110, B10000001, B10000001, B10000001, B10000001, B10000001, B10000111, B01111110

}, {// RightEye19, 37

B01111110, B10000001, B10000001, B10000001, B10000001, B10000001, B10000111, B01111110

}, {// LeftEye20, 38

B01111110, B10000001, B10000001, B10000001, B10000001, B10000011, B10000011, B01111110

}, {// RightEye20, 39

B01111110, B10000001, B10000001, B10000001, B10000001, B10000011, B10000011, B01111110

}

};

typedef struct {

int frameCount; // qhov taw qhia taw qhia rau hauv binaryArray qhia cov duab thav duab

int frameDelay; // Kwv yees ncua hauv MilliSeconds los tuav cov duab no cov duab ua yeeb yaj kiab

int frameLuminance; // 0… 15, Qhov kev siv ntawm tus lej matrix rau tus ncej muab

} frameType;

frameType movie =

{

// Tsaus muag

{LeftEye1, 1000, 1}, {LeftEye2, 5, 1}, {LeftEye3, 10, 1}, {LeftEye4, 10, 1}, {LeftEye17, 100, 1}, {LeftEye4, 10, 1}, {LeftEye3, 10, 1}, {LeftEye2, 5, 1}, // Tag nrho dav dua

{LeftEye1, 1500, 2}, // Ua tsaug

{LeftEye5, 5, 3}, {LeftEye6, 5, 4}, {LeftEye7, 5, 5}, {LeftEye8, 1000, 11}, {LeftEye7, 5, 5}, {LeftEye6, 5, 4}, {LeftEye5 5, 3}

};

void delayMillis (int milliseconds)

{

rau (int kuv = 0; kuv <milliseconds; kuv ++)

qeebMicroseconds (1000);

}

void teeb tsa () {

rau (int x = 0; x <numDevices; x ++) {

lc.shutdown (x, tsis tseeb); // MAX72XX yog nyob rau hauv hom kev txuag hluav taws xob thaum pib

lc.setIntensity (x, 1); // Teeb lub ci ci rau tus nqi qub

lc.clearDisplay (x); // thiab tshem tawm cov zaub

}

}

void voj () {

lc.setIntensity (0, 3);

lc.setIntensity (1, 3);

thaum (muaj tseeb) {

rau (int a = 0; a <(sizeof (movie) / sizeof (frameType)); a ++)

{

rau (int kuv = 0; kuv <8; kuv ++)

{

lc.setRow (0, i, binaryArray [movie [a].frameCount].array1 );

lc.setRow (1, i, binaryArray [movie [a].frameCount + 1].array1 );

lc.setIntensity (0, yeeb yam [a].frameLuminance);

lc.setIntensity (1, yeeb yam [a].frameLuminance);

}

delayMillis (yeeb yam [a].frameDelay);

}

}

}

Kauj Ruam 3: Sib dhos Tshooj 2

Sib dhos Tshooj 2
Sib dhos Tshooj 2

Thaum koj muaj Arduino IDE thiab ua haujlwm, koj yuav tsum theej cov cai thiab suav sau/txheeb xyuas qhov chaws. Thaum koj sau cov cai, cov ntaub ntawv HEX tau tsim hauv TEMP nplaub tshev ntawm lub khoos phis tawj. Ua ntej kaw Arduino IDE, koj tuaj yeem luam HEX cov ntaub ntawv los ntawm daim nplaub tshev temp thiab cov ntaub ntawv no yog yam peb xav tau kom hlawv mus rau hauv ATmega8 Chip kom nws ua haujlwm.

Thaum suav cov lej, kuv tau xaiv pawg thawj coj ua "Arduino NG lossis Laus" thiab tus txheej txheem ua "ATmega8" thiab tom qab suav ua ke, Kuv tau theej cov ntawv HEX los ntawm Temp Folder ntawm lub khoos phis tawj, ua ntej kaw Arduino IDE.

Cov ntaub ntawv HEX no tau hlawv mus rau ATmega8 Chip nrog sab nraud AVR Burner. Kuv siv "Extreme Burner_AVR" software thiab AVR Burner Board rau lub hom phiaj. Daim duab ntawm lub rooj tsavxwm tau txuas nrog. Koj tuaj yeem siv ib qho software AVR uas koj nyiam nrog.

Yog vim li cas siv tus programmer sab nraud yog tias kuv tsis xav hlawv lub bootloader mus rau Atmega8 chips thiab tsis muaj bootloader, lawv yuav tsis ua haujlwm ntawm Arduino Board li niaj zaus lossis nrog Arduion IDE. Nws yooj yim heev rau rho tawm HEX cov ntaub ntawv thaum koj suav cov lej nrog Arduino IDE thiab qhov ntawd yog qhov kuv tau ua.

NCO TSEG

Nws yog qhov tseem ceeb heev los xaiv qhov raug fuse me ntsis teeb tsa thaum siv tus programmer sab nraud.

Hauv qhov no, txij li peb tsis tau siv cov khoom siv sab nrauv thiab tso siab rau lub moos sab hauv ntawm ATmega8 Chip, nws yog qhov tseem ceeb uas peb teeb tsa cov fuse me me raws li. Kuv tau xaiv cov chaw fuse hauv qab no.

Lus- E4

Hwv -D9

Qhov no txhais li cas

Txhais tau tias peb tsis siv cov siv lead ua sab nraud lossis cov resonator

Lub moos tau teeb tsa rau 8mHz moos sab hauv

Thaum ATmega8 Chip tau teeb tsa, nws yog lub sijhawm los sib sau ua haujlwm thiab sim nws.

Kauj Ruam 4: Txuas Lub Qhov Muag

Txuas Qhov Muag
Txuas Qhov Muag
Txuas Qhov Muag
Txuas Qhov Muag

MAX7219 8x8 LED Matrix tau txuas nrog hauv qab no.

ATmega8 Board TO MAX7219 Matrix

IO Pin D10 TO CS PIN

IO Pin D11 TO CLK PIN

IO Pin D12 TO DIN PIN

VCC to CSY

NCO to GND

Xa mus rau Daim Duab

Kauj Ruam 5: Txuas PIR Sensor & Module

Txuas lub PIR Sensor & Module
Txuas lub PIR Sensor & Module
Txuas lub PIR Sensor & Module
Txuas lub PIR Sensor & Module
Txuas lub PIR Sensor & Module
Txuas lub PIR Sensor & Module
Txuas lub PIR Sensor & Module
Txuas lub PIR Sensor & Module

Tom ntej no PIR Sensor tau txuas nrog PIR Controller

Pawg thawj coj, kev sib txuas yog raws li hauv qab no

PIR Controller Board rau PIR Sensor

VCC to CSY

CTRL to CSY

GND to CSY

Xa mus rau daim duab

Qhov no yog ib feem uas ua rau txhua yam tshwm sim. PIR Sensor khaws qhov txav ntawm txhua tus tsiaj muaj ntshav sov thiab hloov pauv ntawm lub zog xa mus rau txhua qhov sib txawv ntawm cov kab hluav taws xob/cov qauv. lub sijhawm ntawm PIR Sensor tau hloov kho raws li qhov xav tau thiab tn cov ntaub ntawv no nws yog li 40 - 45 vib nas this. Nws xa 5 volts DC rau txhua lub vojvoog txuas rau nws rau lub sijhawm kwv yees li 40-45 vib nas this.

Kauj Ruam 6: MP3 Player thiab Amplifier

MP3 Player thiab Amplifier
MP3 Player thiab Amplifier
MP3 Player thiab Amplifier
MP3 Player thiab Amplifier
MP3 Player thiab Amplifier
MP3 Player thiab Amplifier

Tom ntej no MP3 Player Module thiab Amplifier Module.

Lub MP3 Player Kuv siv tsis xav tau lub pob kom raug nias kom qhib, lub sijhawm siv hluav taws xob raug rau nws, nws tau pib ua si. Kuv tsuas xav tau ib txoj hauv kev yog li kuv pom daim npav SD nrog lub cim xeeb qis tshaj uas kuv tuaj yeem ua tau (4 GB vim tias nws yuav luag tsis tuaj yeem tau txais daim npav uas muaj peev xwm tsawg dua hnub no). Lub suab kuv rub tawm hauv is taws nem, qhov tseeb muaj ntau lub suab cuam tshuam uas tau rub tawm thiab lawv txhua tus tau suav sau ua ib qho MP3 khiav los ntawm kev siv lub suab kho software. Kuv siv "Wave Editor" thiab thaum kawg rub qhov no tsuas yog taug qab mus rau SD Card. Daim npav SD tau teeb tsa hauv MP3 Player Module thiab cov zis tau txuas nrog rau Amplifier Module kom tau txais lub suab los ntawm tus hais lus.

Xa mus rau Daim Duab

LM386 Amplifier Chip xav tau ob peb yam sab nraud thiab muab lub suab zoo tawm ntawm cov neeg hais lus me. Lub Circuit Court yog qhov yooj yim heev los ua ke ntawm cov perfboard thiab nws coj kuv li 15-20 feeb los sib dhos qhov no. Daim duab no piav qhia tus kheej heev.

Kauj Ruam 7: Lub Rooj Sib Tham Kawg

Image
Image
QHOV TSEEB
QHOV TSEEB

Ua ntej yuav haum txhua yam hauv lub thawv, Kuv xav sim txhua yam thiab tso tawm cov qauv raws li xav tau thiab ua qhov kev sib txuas zaum kawg. Tom qab kuv txaus siab nrog kev ua haujlwm ntawm cov khoom. Kuv kho lawv sab hauv Daim Npav Npav Npog Qhov Rooj ua rau lub hom phiaj.

Kuv tab tom txuas ib daim vis dis aus tom qab kev sib dhos zaum kawg ntawm tus ncej.

Kauj Ruam 8: QHOV TSEEB

QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB

Cov ntaub ntawv kaw

Qhov Kev Ruaj Ntseg tau ua los ntawm daim npav daim npav qub, pleev xim liab. Qhov chaw rau qhov muag thiab PIR sensor tau txiav tawm siv rab riam ntse. Luam tawm ntawm pob txha taub hau tau muab tso rau ntawm lub thawv thiab lub qhov muag thiab lwm yam.txiav tawm kom haum thiab cov qauv qhia tau kos dua nrog tus cwj mem Dub Cuam Tshuam Cim. Kuv ua cov plaub hau tawm ntawm cov fwj dej uas tsis tau muab pov tseg, txiav lawv mus rau hauv cov kab nyias nyias thiab muab lawv tso rau nrog Kub Kub Kua nplaum rau ntawm lub taub hau thiab ob sab. Kuv tsau 2 xim hloov LEDs ntawm ob sab thiab cov no tau txuas nrog rau qhov tso tawm los ntawm PIR tswj lub rooj tsavxwm.

Lub qhov me tau ua rau tus hais lus thiab txhua yam khoom raug kho nrog kev pab ntawm Hot Melt Glue nyob sab hauv lub thawv. Lub hwj huam qaum tau raug tshem tawm ntawm sab nraum qab ntawm lub thawv thiab qhov ntawd yog hais txog nws.

Kuv vam tias koj txaus siab ua qhov Kev Ua Xus rau cov menyuam !!

Kuv yuav txuas qhov Audio Clip uas siv hauv txoj haujlwm no sai.

Zoo siab Xus rau Txhua Tus !!

Pom zoo: