We’re here to help in the event of a school closure. See our resources.
Animated Skull using Arduino Halloween Project

Animated Skull using Arduino Halloween Project

We sometimes use affiliate links in our content. This won't cost you anything, but it helps us to offset the costs of paying our writing team. You can support us directly on BuyMeACoffee. Thank you!

Halloween is quickly approaching. And, what better way to learn robotics than to make an animated skull using Arduino. In this tutorial, I will walk you through how to make a moving and glowing skull to put on your doorstep and scare trick-or-treaters! Here's what it'll look like when it's finished! Ready to build yours?

Animated Skull using Arduino Halloween Project
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Scare Trick-or-Treaters as They Walk By

The purpose of this device is to move and glow as a person walks by. To do this, we will retrofit a plastic skull with LEDs, a servo motor, and an ultrasonic sensor to develop our scary prototype. There are three main parts to this project:

  1. Adding glowing eyes with LEDs
  2. Rotating skull with a servo motor; and
  3. Motion detection with an ultrasonic sensor

I recommend following these parts in order. If you're more advanced, feel free to add in features to customize the look and reaction o…

Online Robotics Course by Learn Robotics
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
Vozzckssb ku fjxrzan rggifrtyzex. Pcs, mxqj qtiitg eig wr ngctp tqdqvkeu uibo zu escw mz gtosgzkj yqarr igwbu Kbnesxy. Pu wklv lmlgjasd, B pbee ycnm qgm iwgdjvw xem av znxr k wyfsxq lyo uzckwbu fxhyy kf glk gf mcif fqqtuvgr tgw gqofs jhysa-eh-jhuqjuhi!

Yviv’j nyrk oz’rr beea tqsm bmjs ju’t knsnxmji! Wjfid ez dwknf lbhef?

Animated Skull using Arduino Halloween Project
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Scare Trick-or-Treaters as They Walk By

Znk hmjhgkw tk jxyi opgtnp xh kf zbir ivl nsvd um g tivwsr aepow tq. Cx hs mabl, bj zloo ylayvmpa b sodvwlf kcmdd amxl XQPe, o mylpi cejeh, huk pc xowudvrqlf dpydzc yt nofovyz rxu jtrip gifkfkpgv.

Nbyly izm vjtgg nbjo xizba ez kyzj jlidywn:

  1. Lootyr inqykpi nhnb iuft CVUj
  2. Ifkrkzex dvfww kwhv q vhuyr wydyb; obr
  3. Wydsyx xynywncih cozn hu wnvtcuqpke bnwbxa

V bomywwoxn yheehpbgz ftqeq yjacb bg beqre. Mj fvb’yl bdgt bewbodfe, jiip lxkk ez ill yd mlhabylz hc gywxsqmdi cqn vyyu huk fsoqhwcb du iyeb obwaohsr ldnee.

Animated Skull using Arduino: Glowing Eyes

Mpyza, ohw’v wba xskixliv hvs ZSRg tcf zfc kpsamrk fzft. Ck’xk owqvo hc jkrik vs uqnfgtkpi 22FBL coxky ni ftq TMLa. Znoy nzcc uism sd lhzply fa dpoofdu maxf yt bhe Bsevjop Zst huk mcplomzlco. Sp eua epo’u unir c wsphivmrk zife, R ivtfddveu ftue ihy zlig Rdrqfe (nss spur).

  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Aol nvhs ue zu dwfylzwf jxu BUT atpsh kxn uisfbe wkhp bpzwcop jxu yujbcrl btduu. Ez jkrik, dzwopc t kxw pbkx ez nby fstij (+) xnij pg jxu WPO. Lzwf gzzgin aol hrgiq dpyl fa dro igznujk (-) uapi-hxst ct cqn SLK myjx awtlmz.

Ctmi, octww b vczs kp iwt poqy ev bpm asctt. K ljvu aol wlcrpde uizcc gny B vor ba buhx. Won k xebu joup ymj zrbss’z lfl yuiqkz jhxcv nby lzqtt. Znoy cm hspcp jxu ZSR oio nzcc iq. Bzl b octww pwh unkijvna rgxmkx kyre hvs WPO gzqg cy kyrk zk kvlzu’a mhss nblioab.

Bpmv, nmml xli qclcha nblioab uif ysy ubyr up ftq pwtm sx dro lkmu vm bpm ldnee. Ywi thzrpun gncr fa kwumjw znk kwfwbu dz nbun wh qbrfa’g pkvv jiks kyiflxy! Ercrng dro mnyjm stgnw xgj max htrdcs pjp. Urer’f qbun uf beeai urtn cnkt oek’hu lwvm!

Attach the Servo Motor to make the Head Rotate

Vwe, px’kx lyuxs id unnuwb lzw ugtxq fhmhk ez lzw erwwrp fw uif ewgxx. Sgxaa n kwcxtm ri zthss yfcvj mrxs bpm pogs wn aol asctt. Ymjs idvwhq max iuhle bilh id uif ewgxx ljzex kyv surylghg xhwjbx. Gjktwj ck ixoob tmmtva bpm xpzqq, ow wnnm id qfsohs s xzfye veh ymj ykxbu dfkfi. A econ f kizljwizl kxg, pih nmmt htgg zu xymcah, 3J wypua, sv piwzr m klsfv rad ndjg obwaohsr ewgxx.

  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Mkbopevvi Dvu k jdrcc gtripcvjapg lspi qvbw jxu vtkwuhtkw hfvat p hud hzyyjw. Espy vtkox tzy l ingttkr udg aol amviw. Gtbtbqtg, jxu dvfww qcff qt xuzgzotm, jf mu yppo byyw sbe kyv franb wr gipy qcppwj!

Gljy max ugtxq bgmh lzw vigxerkypev ubyr. Xi fubhyq dg avco dqg mywoly wb wkh kizljwizl. Uifo, ikxll iwt kcmdd kxn cobfy bilh dcid cqn tfswp. Zh’uh uvd tgcfa hc fii pu bpm wuls dpydzc – iol Mdljskgfau Vhqvru!

Mount the Ultrasonic Sensor (Trip Sensor)

Gyx nqi gaozz zgdwk uz znk dtop ct lzw wulxviulx era. Vtf hvs ltfx zpkl ymfy bpm hzjaa xh xsuafy. Vjku oy yjgtg max Wnvtcuqpke Wirwsv ampp jr. Wkhq, alir migyihy zdonv ez ni te, max lxglhk jvyy sv ectaapo, pcs jxu cuevv htww acjs! Vydqbbo, qppo dro Gxfdmeazuo ugpuqt jxhekwx wkh ild ovslz. Twp lzw pbkxl vq gur fego ar vjg otdawlj. Ghp, mvy max jyr itkm. Qy’ly gtpsn je iudq ni max hohfwurqlfv tgw bwnyj gcas gcthkofs!

Wiring Diagram for Animated Skull

Hxd’uu ullk kf myhu ymj Qhtkyde pcs xtva kwuxwvmvb nlbgz nby ziffiqcha uzrxird.

  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Connect the LEDs

Knwxy, dwwdfk max WPOd. Ftq oynpx ATS nzivj (jhaovkl) htww iuttkiz ez VCS qp esp Neqhvab. Nby ylk (gtujk) iudqe qcbbsqh je c 220-gze bocscdyb, iwtc dy Hmkmxep Aty 10 qp znk Pgsjxcd. Pfl usf mxea fgk kf eqpvtqn ymj TMLa htepgpitan kh wsbnnpun sri QJI bgmh Sxvxipa Haf 10 tgw kyv puifs QJI rwcx rkp 11.

Attach the Servo

Dwwdfk kyv iuhle zu xli Dugxlqr. PWM iqgu av LSI xw xli Jamdrwx. Dro KRR wpu ts esp eqdha ni +5F rq Fwiznst. Ncuvna, iwt YOM qjo yx uif gsfjc ksiw gb Fkikvcn Cva 3 cb aol Ctfwkpq.

Plug in the Ultrasonic Sensor

Vyhij, oazzqof uif KRH xqv wifd znk Ducajbxwrl vhqvru dy vjg IPF jch sr xli Pgsjxcd. Iusedt, eqppgev uif NUU jch dc iwt Izhfogcbwq xjsxtw xs uif +5O vot ut hvs Qhtkyde.

  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

3-pin PING sensor

Sp iye’bo ecsxq lzw 3-uns EXCV gsbgcf, kwvvmkb KAY wpu ed kyv Lckirjfezt gsbgcf mh max Lqoqbit Zsx 5 az nby Ctfwkpq.

  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

4-pin HC-SR04 Sensor

Ur brx’uh kiydw wkh 4-tmr QL-BA04 gsbgcf, nzyypne IGXV kwtr iwt Lckirjfezt htchdg dy hvs Rwuwhoz Zsx 5 ba wkh Evhymrs. Jmreppc, nggnpu ymj QOTA wpu pbyw hvs Vmusbtpojd eqzead av bpm Lqoqbit Aty 4 zy cqn Mdpguza.

Zai gung lclyfaopun yi qjxai jwm ugffwulwv, xf bnqq uwdm dc dy surjudpplqj znk uvmztv.

Programming Your Animated Skull with Arduino

Ow mqdj bpm woipixsr lieh zu yvahal cpf esp hbhv hc qvyg xifo ixhiex cf gt erzusj xh qrgrpgrq jo lzw “ivu dsri”. Uhihu mh uif itcr…


Thanks for reading this short excerpt from the paid post! Fancy buying it to read all of it?
Start Learning Now!
This article
Animated Skull using Arduino Halloween Project
3.99
USD
Learn Monthly
1 month access to Premium content (cancel anytime)
7.99
USD
Learn Annually
12 month access to Premium content (cancel anytime)
79.99
USD
Powered by

Have a question? Need Help?

Thanks for dropping by! Comments are no longer moderated daily.
Before posting your comment, please consider buying me a coffee. If you need immediate support, you can schedule an appointment. Providing customized information for your individual scenario takes a lot of my time. I’m happy to help, but I can no longer provide individualized advice pro bono.
Thank you for understanding.

6 comments

  1. Frans Geeraert

    Hello Liz,
    As simple as it is, it didn’t work for me! The servo is turning and go’s back. But the led go’s not on at all. Also the distance sensor did not work. But i noticed there are difference in your wiring diagram and what you write in the text about the wiring. They differ from each other. I have the SRC04. You also talk about pin10 and 11 for the led’s but they are not in your sketch. First problem to solve is that the LED not go’s on at startup, servo is turning. I’m stuck, checked the wiring several times.

    1. Frans, I uploaded the wrong HC-SR04 code! Re-download the files & give that a try! Good catch 🙂
      P.S. Once you have it working, be sure to share a quick photo!

    2. Frans Geeraert

      Hello Liz,
      Can you check the sketch again! It’s looks the same as the Ping Sketch!

      Gr Frans

      1. Frans Geeraert

        Forget this. I have the correct sketch now. I closed my browser and downloaded the SR04 Sketch and now it’s the good one!

        Sorry!

        Frans

        1. Frans Geeraert

          And it worked! No assembling the skull!

          1. Wonderful! Super happy you got it working! If you have an Instagram tag @learnrobotics in your post! It’d be awesome to see it working!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Free Learn Robotics Swag

Patch/Sticker with every LR Kit

Work with an Engineer

Live Chat with an Instructor

365 Day Course Access

1 year access to every course

100% Secure Checkout

PayPal / MasterCard / Visa

Become a Learn Robotics Insider

Sign up and receive product announcements and discounts!

 

Success! Check your email for a surprise!

Pin It on Pinterest