Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

spencerwolfe/Klingon-Bird-of-Prey-Arduino-Code

Repository files navigation

Klingon-Bird-of-Prey-Arduino-Code-and-Build-Files

This is the Arduino Code for my 1:350ish Klingon Bird of Prey Lighting Effects

S.A. Wolfe
Final Version - 12/26/2020 MacOS 10.14.5 - Arduino 1.8.9
Using core files from SpenceKonde/ATTinyCore (No Relation :))

My code for lighting effects for the 1:350ish Klingon Bird of Prey model kit from AMT/Round 2. The code is written for an ATtiny85 microcontroller. A button, when pushed, fires the photon torpedo launcher and, when pushed and held, fires the disruptors in short bursts for a time. The main engines also fade slowly with faster pulsations over top of that. Some of this code I discovered online and I take no credit for sections where I use it.
Specifically, the original code for "push and hold" button switching can be found here.

Pinout (Attiny85):
Pin 1 = RESET
Pin 2 = Code Pin 3 = Torpedo Flash
Pin 3 = Code Pin 4 (PWM) = Torpedo Ramp
Pin 4 = GND
Pin 5 = Code Pin 0 (PWM) = Engine Pulse
Pin 6 = Code Pin 1 (PWM) = Disruptor Flash
Pin 7 = Code Pin 2 = Pushbutton (using the internal PULLUP)
Pin 8 = VCC

Sketch uses 3852 bytes (47%) of program storage space. Maximum is 8192 bytes.
Global variables use 61 bytes (11%) of dynamic memory, leaving 451 bytes for local variables. Maximum is 512 bytes.

A version of the schematic can be found here.
A video of the lighting effects concept can be viewed here and here.

NOTE: AS OF 06-13-2022, THIS REPOSITORY IS NOW ARCHIVED AS READ ONLY

About

This is the Arduino Code and Hardware Files for my 1:350ish Klingon Bird of Prey Lighting Effects Board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages