[null, {"document_url": "http://www.jumbleview.info/2016/12/", "unformatted_src": "https://2.bp.blogspot.com/-LPhD-lwi4Vw/WGfs5QUBv2I/AAAAAAAAA5I/Iem4wrOW0Jc2eUjgf9LkCMCNVhlDYTjEwCLcB/s400/moon_circut_crop.png", "src": "https://2.bp.blogspot.com/-LPhD-lwi4Vw/WGfs5QUBv2I/AAAAAAAAA5I/Iem4wrOW0Jc2eUjgf9LkCMCNVhlDYTjEwCLcB/s400/moon_circut_crop.png", "formatted_filename": "moon circut crop", "rendered_width": 400, "rendered_height": 305}, null, {"document_url": "http://www.jumbleview.info/2016/12/", "unformatted_src": "https://2.bp.blogspot.com/-OfkqEhSyW7w/WGft4LvdgdI/AAAAAAAAA5M/gd82Bepcs5QUM2kPMprwO4xa9jVpXB2vACLcB/s400/IMGP4610_DxO.jpg", "src": "https://2.bp.blogspot.com/-OfkqEhSyW7w/WGft4LvdgdI/AAAAAAAAA5M/gd82Bepcs5QUM2kPMprwO4xa9jVpXB2vACLcB/s400/IMGP4610_DxO.jpg", "formatted_filename": "IMGP DxO", "rendered_width": 400, "rendered_height": 263}, null, {"document_url": "http://www.jumbleview.info/2016/12/", "unformatted_src": "https://1.bp.blogspot.com/-B4IeJgomW-Y/WGf0pRgiSgI/AAAAAAAAA5c/TASCIZ6dGUs4CmffW51KSrTwlHD5DskXgCLcB/s400/IMGP4704_8_DxO.jpg", "src": "https://1.bp.blogspot.com/-B4IeJgomW-Y/WGf0pRgiSgI/AAAAAAAAA5c/TASCIZ6dGUs4CmffW51KSrTwlHD5DskXgCLcB/s400/IMGP4704_8_DxO.jpg", "formatted_filename": "IMGP DxO", "rendered_width": 400, "rendered_height": 317}, null, null]

In the Moonlight

This is the moon simulator with bat silhouette which I made as a decor for this  Halloween.

The core part of the project is twelve backlight white LED modules ( I bought them from the adafruit). LEDs are controlled by Atmega328 micro controller. The schematic of the project is fairly simple: Adm here you can see project assembly with some internals visible: Twelve LED modules put in the middle of sandwich made out of two Plexiglas  sheets attached with the help of Velcro strips.  Paper Bat attached to the front of the moon with Velcro as well as front and back cardboard shields .

Program to control the device is short enough to be present entirely in this blog:

To  compile and load program into the controller memory I used Atmel Studio 6.1. Code includes three header files.

Protothred library deserves some additional notes. I included it to my programming  tool box recently and nowadays use it any time I need to program embedded devices in "C ". It provides multitasking framework and allows to code device states efficiently and conveniently.  I highly recommend to try it for any programmer  who works with micro-controllers in "C".

As you can see device is simple to made and program. Some additional details you can find in my "Instructables" project.

The only problem I see is relatively high project price. Mostly it is the price of LED modules ($2.50 for each). Nothing could be done here. To gain some additional benefits I decided to substitute  Bat with Reindeer so the device is quite usable  as winter decor: Posted by Grygoriy Budilovsky at 10:11 AM No comments: Labels: Atmel, Decor, Halloween, LED
