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
- Join the Props3D Discord: https://discord.gg/NSfZcCfJU6
- Follow progress on instagram: https://www.instagram.com/props3dpro/ or https://www.instagram.com/craiggulliver/
- Subscribe on Youtube: https://www.youtube.com/c/Props3D
- Download released designs: https://www.thingiverse.com/props3dpro/designs
- M4X6mm~8mm button X 4 - Grips
- M3X10mm Button x 1 - Hammer
- M3X6mm Socket X 6 - Body Cover
There's are number of libraries that you will need to install using the Library Manager:
- DFPlayerMini_Fast
- FastLED
- FireTimer
- ezButton
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
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.