Skip to content

Latest commit

 

History

History
100 lines (75 loc) · 4.62 KB

README.md

File metadata and controls

100 lines (75 loc) · 4.62 KB

mando-blaster V0.4 - Prerelease

Product Shot - Mando Blaster

Repository for the Star Wars Mandalorian blaster from Props3D.

Licensed under the Creative Commons - Attribution - Non-Commercial - Share Alike license. https://creativecommons.org/licenses/by-nc-sa/4.0/

DO NOT SELL OR DISTRIBUTE MODELS OR CODE WITHOUT PERMISSION

Note that prerelease models have been tested and work, but do not come with instructions or guarantee that everything fits together properly. If you want have feedback please post on our Discord (https://discord.gg/NSfZcCfJU6) on the #project-mando-blaster channel

Props 3D

Electonic Components

Electronic Components
Arduino Nano v3 DF Player Mini with Micro SD Card
Arduino Nano v3 DF Player Mini + 64mb Micro SD Card
PAM8302A Amp Neopixel
Speaker Amp - PAM8302A Single LED - Neopixel
40mm 2W speaker 7mm Momentary Switch
40mm 2W speaker 7mm momentary switch
Mini 360 DC-DC Buck Converter Lipo 7 4v
Mini 360 DC-DC Buck Converter Lipo 7.4v
1K Resister JST Connector Female
2 X 1K Resister JST Connector Female
5V 0.3 A Mini Size Black SPDT Slide Switch a
5V 0.3 A Mini Size Black SPDT Slide Switch a

Parts

  • M4X6mm~8mm button X 4 - Grips
  • M3X10mm Button x 1 - Hammer
  • M3X6mm Socket X 6 - Body Cover

Required Libraries

There's are number of libraries that you will need to install using the Library Manager:

  1. DFPlayerMini_Fast
  2. FastLED
  3. FireTimer
  4. ezButton

Setup and Configuration

The code can be used by updating the values in config.h based on your components, wiring, and audio tracks.

#define ENABLE_DEBUG               0

// Enable any items in your setup by uncommenting
#define ENABLE_EASY_AUDIO          1 //Enable all audio 
#define ENABLE_EASY_BUTTON         1 //Enable all buttons

// Pin configuration for MP3 Player
#define AUDIO_TX_PIN        5
#define AUDIO_RX_PIN        4

// Pin configuration for all momentary triggers
#define TRIGGER_PIN         3

// Pin configuration for front barrel WS2812B LED
#define SINGLE_LED_CNT      1
#define FIRE_LED_PIN        13 

// track by file index
#define TRACK_START_UP        1
#define TRACK_CHANGE_MODE     2
#define TRACK_FIRE_A          3
#define TRACK_FIRE_B          4
#define TRACK_STUN_A          5
#define TRACK_STUN_B          6
#define TRACK_CLIP_RELOAD     7
#define TRACK_CLIP_EMPTY      8
#define TRACK_THEME           9

Audio File Setup

The DF Mini Player will play back both mp3 and wav files. However, the program play back tracks based on index. The index is determined by the order the files are loaded onto the card. It also expects all files to be loaded into a sub directory on the card called "/mp3".

When using a MAC to load files, it will create hidden files that will cause the playback to seem like it's not working. You'll need to use the terminal window to rm all of these files and directories from the card.

Example Wiring Diagram

docs/SampleWiring.png

Demo Circuit

IB94