Krieger Dreamer Peeper: Difference between revisions

From Bloominglabs
Jump to navigationJump to search
(.flac, not .wav)
(arduino, not Zipit)
Line 1: Line 1:
Uses a Zipit Z2 to drive twenty 10W LEDs and a speaker.
An ATTiny85 to drive twenty 10W LEDs and a 120W speaker.
Creates ~10 seconds of science-siction sound effects, then flashes the lights in a brilliant, dazzling flash.
Creates ~14 seconds of science-fiction sound effects, then flashes the lights in a brilliant, dazzling flash.
Also includes a squirt gun to startle the person it is pointed at.
Also includes a squirt gun to startle the person it is pointed at.
The LEDs and speaker are driven from the 3.5mm jack of the Zipit, since I don't have a connector for its GPIO socket. The speaker has one channel of regular sound. The LEDs have a channel that goes high for 1/20 second, like the sound in [[:File:DriveLightsTest.flac.gz | this archive]].
The LEDs and speaker are driven from 2 pins of the ATTiny. I wrote a couple of loops that drive some cool-sounding square waves to the speaker. At the end of the sound effect, the LEDs light for 1/20 of a second, producing a brilliant flash of light.

The LEDs and speaker are driven from the ATTiny by [https://www.sparkfun.com/products/10213 logic-level MOSFETs]. The whole thing is powered by a [https://www.hobbyking.com/en_us/turnigy-ar-drone-upgrade-hardcase-battery-1500mah-3s-25c.html small LiPo battery].

I programmed the ATTiny using my Arduino Duemilanove and [http://highlowtech.org/?p=1706 these] [http://highlowtech.org/?p=1695 two] excellent guides.

Revision as of 01:43, 29 October 2016

An ATTiny85 to drive twenty 10W LEDs and a 120W speaker. Creates ~14 seconds of science-fiction sound effects, then flashes the lights in a brilliant, dazzling flash. Also includes a squirt gun to startle the person it is pointed at. The LEDs and speaker are driven from 2 pins of the ATTiny. I wrote a couple of loops that drive some cool-sounding square waves to the speaker. At the end of the sound effect, the LEDs light for 1/20 of a second, producing a brilliant flash of light.

The LEDs and speaker are driven from the ATTiny by logic-level MOSFETs. The whole thing is powered by a small LiPo battery.

I programmed the ATTiny using my Arduino Duemilanove and these two excellent guides.