Plays a melody on ATTiny85 using tone() PWM pin 4
C Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
FakeRat
Laser
.cproject
.project
FakeRat.jpg
FakeRatCircuit.jpg
Finished.jpg
Laser1.jpg
Laser2.jpg
README.md
handle.blend
handle.stl

README.md

steampunk-laser

Plays a melody on ATTiny85 using tone() PWM pin 4

This code was loaded into an ATTiny85 that was embedded into a toy pistol with a laser pointer in the tip. When the trigger is pulled the tone sounds and the laser is turned on. There are a couple of blinking LEDs as well.

The finished laser looks like this:

Finished

video

The handle was designed in blender and 3D printed with a spacein it to hold a LIPO battery. This is the bare handle:

Finished

And this is the handle after painting and covering with fake mother of pearl.

Finished

video

We adapted the idea to make a bird scarer with glowing eyes. Some minor changes to the circuit and the code and it wakes up every 15 minutes to scare swallows that were nesting on the side of a house. The noise was adjusted to sound like a growling animal. THis was powered by 2xAA batteries. This was, in fact, a total failure. The swallows were initially bothers but in 3 weeks they had built a nest on top of it. The batteries were still going well, attesting to the usefulness of the ATTiny85's sleep function.

Finished

The circuit for this is shown here:

Finished