Ghost Cosplay Costume
Introduction: Ghost Cosplay Costume
I made a ghost cosplay costume.
Step 1: Materials
* White cloth
* LED tape
* Yoga mat
* Hula hoop
Step 2: Head
The yoga mat is molded into a dome shape.
I sewed wood glue to make it a little harder.
Step 3: Eyes
The eyes consisted of LED tape.
The LED tapes are arranged in a zigzag pattern on the left and right in a size of 5 x 7. The signal is input in 2 paras and the same operation is performed.
Arduino Code
The following libraries are used.
* https://github.com/adafruit/Adafruit_NeoPixel
* https://github.com/adafruit/Adafruit-GFX-Library
* https://github.com/adafruit/Adafruit_NeoMatrix
Randomly blinking crosses, eye colors, blinks, and hearts are displayed.
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#ifndef PSTR
#define PSTR // Make Arduino Due happy
#endif
#define PIN 3
// Define matrix width and height.
#define mw 5
#define mh 7
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(mw, mh, PIN,
NEO_MATRIX_TOP + NEO_MATRIX_RIGHT +
NEO_MATRIX_ROWS + NEO_MATRIX_ZIGZAG,
NEO_GRB + NEO_KHZ800);
const uint16_t colors[7] = {
matrix.Color(0, 0, 255),matrix.Color(0, 255, 0),
matrix.Color(0, 255, 255), matrix.Color(255, 0, 0), matrix.Color(255, 0, 255),
matrix.Color(255, 255, 0), matrix.Color(255, 255, 255) };
uint16_t col;
int var, x;
String num[] = {"0", "1", "2", "3","4", "5", "6","7", "8", "9"};
static const uint8_t PROGMEM mono_bmp[][7] ={
//crosses
{
B10001000,
B01010000,
B01010000,
B00100000,
B01010000,
B01010000,
B10001000,
},
//eye
{
B01110000,
B11111000,
B11111000,
B11111000,
B11111000,
B11111000,
B01110000,
},
{
B00000000,
B11111000,
B11111000,
B11111000,
B11111000,
B11111000,
B01110000,
},
{
B00000000,
B00000000,
B11111000,
B11111000,
B11111000,
B11111000,
B01110000,
},
{
B00000000,
B00000000,
B00000000,
B11111000,
B11111000,
B11111000,
B01110000,
},
{
B00000000,
B00000000,
B00000000,
B00000000,
B11111000,
B11111000,
B01110000,
},
{
B00000000,
B00000000,
B00000000,
B00000000,
B00000000,
B11111000,
B01110000,
},
{
B00000000,
B00000000,
B00000000,
B00000000,
B00000000,
B00000000,
B01110000,
},
{
B00000000,
B01010000,
B11111000,
B11111000,
B11111000,
B01110000,
B00100000,
},
};
void setup() {
matrix.begin();
matrix.setTextWrap(false);
matrix.setBrightness(40);
}
void loop() {
col = colors[random(0, 7)];
var = random(0, 20);
switch (var) {
case 0:
x = random(0, 5);
for(int i = 0; i < x; i++){
matrix.drawBitmap(0, 0, mono_bmp[0], 5, 7, col);
matrix.show();
delay(600);
matrix. 68