element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino Projects
  • Products
  • Arduino
  • Arduino Projects
  • More
  • Cancel
Arduino Projects
Blog [PROJECT] Scary Shadow – Arduino controlled stepper silhouette projector
  • Blog
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Catwell
  • Date Created: 1 Oct 2017 9:02 PM Date Created
  • Views 2500 views
  • Likes 5 likes
  • Comments 2 comments
  • halloween
  • project
  • halloween 2017
  • arduino_projects
  • diy
  • motion control
  • sharethescare
  • cabeatwell
  • stepper
  • arduino
Related
Recommended

[PROJECT] Scary Shadow – Arduino controlled stepper silhouette projector

Catwell
Catwell
1 Oct 2017

 

image

#ShareTheScare this Halloween

Visit our Halloween space and find out how to win one of two Cel Robox 3D Printers. There are two ways to win:

  • Build and document your past or present Halloween projects.
  • Tweet your best engineering spook with #ShareTheScare.
Share your Project and Win
#ShareTheScare Competition
The Ben Heck Show Episodes

 

 

Disclaimer: I’m an engineer, not a pro film maker. Be advised.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Disclaimer: I’m an engineer, not a pro film maker. Be advised.

 

 

Tonight’s Halloween project is another effect as old as time… Scary Shadows.

 

Shadows are obscure, raise suspicion, we can only imagine what creates them. The fear of the unknown is one of the basic, most natural fears. Even when a shadow is clearly defined, we still have a hard time gathering what it is exactly. Depending on the light source, the shadow of an object can be distorted and disorienting.

 

A shadow can be a monster, an entity, or just someone creeping up behind you. Young and old can get scared of a shadow.

 

To create a simple shadow casting project, I went about creating an Arduino stepper motor control system. Simply put, the stepper motor will move cutouts into a light source, casting shadows, for a few different effects.

 

 

The project by sections:

 

The concept is simple, cast shadows and control their movement.

 

To accomplish this, I used a stepper motor to turn a special 3D printed hub holding paper cutouts of various “monster” shapes. Placing a strong light source behind the cutouts will make a shadow on a surface.

 

I used a 1000lm LED flashlight for the light source. However, I found that removing the lens from the end of the flashlight produced a wider spread of light. With the cutout close to the LED in the flashlight, the shadows were large and distorted at times. Which was a cool effect.

 

Since I was controlling a stepper, I could control the direction and speed fairly easily. So, I had three modes of movement.

 

- Constant, clockwise

- Constant, counter clockwise

- Bounce between the two directions with a single button push. Like hitting limits.

 

A single potentiometer on the breadboard controlled the speed. Although I was in single-step mode, meaning the stepper moved one step per pulse, it was fairly smooth across most speeds.

 

 

BOM:

 

1x Arduino Nano

1x Full-size breadboard

1x DRV8825 stepper driver

1x Low current Stepper motor

2x Momentary Push buttons

1x Potentiometer 100kOhm (I used these types, but you could use others)

1x 9V power supply. (I used a switching power supply from an old device.)

Project wires

1x Light source of choice. I used an LED flashlight

 

Schematic and design:

 

image

Not pictured is the 5V USB connection you also need on the Arduino Nano.

 

image

The actual build. The stepper motor bub is a custom 3D printed part. I could have just used tape and the paper.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 

 

Code:

 

If you connect the Arduino to a PC, I put in an option to output serial data.

In the Scary Shadow project, it will display the direction data.

 

Difficulties:

 

-The paper cutouts were a pain to make a use, to be honest.

 

 

Other uses of the system:

 

- This is a prefect system to put inside the carved pumpkins. It will even turn on in the dark!

- You could also use them as eyes for the pumpkin too.

- Or, how about an overly complex nightlight?

 

 

If I had more money/time:

 

- First and foremost… 3D print the silhouettes as opposed to paper cutouts.

- I would like to explore digital shadow casting. Using an opaque screen, I could “turn on” pixels that could block light, hypothetically. I could animate the shadows! Now, that would be awesome.

- Sound is always good to add to effects.

- I wanted to create an effect of a crowd rushing behind someone. But, I think I would need more elaborate shadow casting apparatus. Perhaps a linear stage along with this rotary option.

- Add micro-stepping for a smoother turn

 

 

Oddities and observations:

 

- At the slowest speeds, there was a lot of vibration created by the single stepping.

- At high speeds, the stepper would slip. Which simply means that it was getting pulse faster than it could react. There is a maximum speed.

 

Cabe

http://twitter.com/Cabe_Atwell

Attachments:
Scary Shadow code.zip
  • Sign in to reply
  • Catwell
    Catwell over 7 years ago in reply to guillaume9433

    Thanks! Simplicity is key!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • guillaume9433
    guillaume9433 over 7 years ago

    Very funny project, and good documented. Simple things are often the best !! image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube