Instructables

Motion Sensing Eye

Featured
Picture of Motion Sensing Eye
dmd-eye-looping-animation.gif
dmd-eye-animation.gif
I have always wanted to make something with my LED dot matrix display, and so when I found a old alarm motion sensor I knew just what to make, a Motion Sensing Eye!

This instructable will hopefully finish with you having a working dmd, that will display an eye that opens if something in a room moves (above in the pictures are some gifs of it in action). This instructable will also be updated with bluetooth and android support in the near future (when I get it working).

Anyway, Let's Go!


Update (05/02/14):
- added optional shield


 
Remove these adsRemove these ads by Signing Up

Step 1: Materials

Picture of Materials
2013-12-30 14.16.06.jpg
2013-12-30 14.16.47.jpg
2013-12-30 14.15.03.jpg
2013-12-30 14.18.23.jpg
2013-12-30 14.55.11.jpg
2013-12-30 14.19.34.jpg
2013-12-30 14.55.21.jpg
IMAG0034.jpg
IMAG0037.jpg
IMAG0038.jpg
Terminal Blocks.png
IMAG0040.jpg
IMAG0042.jpg

Things you will need:

- An Arduino or similar
- A Freetronics Dot Matrix Display
- Arduino link cable for dmd
- An alarm sensor
- Mini breadboard and jumper cables
- A 10k resistor
- Power supply for the alarm sensor
- Usb cable for arduino

Optional:
- Arduino Prototype shield
- Stackable headers
- Wire
- Tactile push buttons
- Terminal Blocks


Coming Soon Eventually:
- Arduino compatible bluetooth module
- bluetooth dongle for PC
- An android phone

Step 2: The Freetronics DMD

The dot matrix display I have used for this project can be found here
It features a 32x16 LED display, giving you a total of 512 high brightness LEDs to play with.
Two extra libraries are needed for the Arduino IDE, and these can be found here and here

You can check that your dmd is functioning properly by running the dmd_demo sketch found in the DMD library you will have just downloaded. Once uploaded to your arduino, connect it and the dmd with the link cable as depicted by the pictures.

Congratulations, your dmd is working correctly
ehmedat4 months ago

If allowed possible code transmitter via Bluetooth

Kenshow68734 months ago

I was looking through your code and i was wondering where did you find your libaries for the code?

#include "SPI.h"

#include "DMD.h"

#include "TimerOne.h"

aidanq (author)  Kenshow68734 months ago
These libraries can be downloaded from the links in step 2. Put them in your library folder and you should be good to go
Kenshow68734 months ago

Hey i am really interested in recreating this project, question though, what kind of ribbon cable and connector did you use for this project?

aidanq (author)  Kenshow68734 months ago
the ribbon cable and connector came with the dmd that i used. ( http://www.freetronics.com/products/dot-matrix-display-32x16-red#.UypnXZ85QsI) feel free to ask about anything else
bobiebob7 months ago
a nice, while way more complex iteration on this would be an motion-tracking eye. With the use of a webcam, probably a raspberry pi, and with that the arduino shield for the Pi, it could possibly make the eye follow you around the room. Which would be creepy as hell, but so awesome.
aidanq (author)  bobiebob6 months ago
That'd be amazing! I may look into making something similar using a pcDuino that I have. Currently working on bluetooth support to manually change the eyes position
shellalbert6 months ago
wow! it's a very interesting DIY production. Arduino is so popular now,we can do something with it due to simple & easy.I guess,you must use the technical of dynamic scanning for dot matrix display.
wlb20087 months ago
Thank you so much for sharing your idea on instructables
fbyhmkfff7 months ago
So cool
audreyobscura7 months ago
Awesome! Can't wait to see more iterations of this project. Thank you so much for sharing your idea on Instructables.