Close

For the Command Center

A project log for EyeMac

Webcam monitored fish tank addition that causes color change depending on Macintosh the fish's location.

amanda-leighAmanda Leigh 01/18/2019 at 16:480 Comments

Stream interaction & input

STREAM! GET IT! BECAUSE ITS FOR A FISH :D

 - Install node.js and npm

 - Clone files to computer - https://github.com/hzoo/TwitchPlaysX/archive/master.zip

 - Node packages from command line npm install in folder (irc, printf)

  - Install python - http://www.python.org/download/releases/2.7.6/ (make sure python is on PATH)

 - Install python win32 package - http://sourceforge.net/projects/pywin32/files/pywin32/

OpenCV : https://opencv.org/

For the Neopixels:

Potential code;

Fader - https://learn.adafruit.com/multi-tasking-the-arduino-part-3/fader 

    // Initialize for a Fade
    void Fade(uint32_t color1, uint32_t color2, uint16_t steps, uint8_t interval, direction dir = FORWARD)
    {
        ActivePattern = FADE;
        Interval = interval;
        TotalSteps = steps;
        Color1 = color1;
        Color2 = color2;
        Index = 0;
        Direction = dir;
    }

This should help make the transitions nice and smooth when Macintosh is moving between quadrants. Fast transitions = jarring = scared fishy.

References:

NeoPixel UberGuide:

https://cdn-learn.adafruit.com/downloads/pdf/adafruit-neopixel-uberguide.pdf

Discussions