A production pipeline to convert After Effects animations to Arduino-controlled Neopixels
- You want to prototype animations for a Neopixel-style LED strip
- You feel comfortable using After Effects for animation prototyping
- You are looking for a simple way to transfer the animations to a Arduino-controlled LED strip
Here is a high-level description of the process:
- Create animation in After Effects
- Export the animation as a PNG sequence
- Convert the PNG sequence to
.ino
file, using Processing sketch, seesrc/
folder - Include
.ino
file from previous step in provided Arduino sketch, seesrc/
folder - Build and upload the resulting code to your Arduino board
- Enjoy animation on your Neopixel strip
- A copy of the Arduino Integrated Development Environment (IDE) (free download)
- A copy of Processing (free download)
- A copy of After Effects (paid software)
These steps assume that you have already exported your animation as a sequence of PNG files to a folder. Let's call this folder new_anim
.
- Copy
new_anim
tosrc/02_Processing/png2ino/data
- Navigate to
src/02_Processing/png2ino
and openpng2ino.pde
with Processing. - Edit variables in the processing file to describe your animation:
folderName
to the name of your animation folder (e.g.new_anim
)numberOfFrames
to the number of frames/images in your animationnumberOfLEDs
to the number of LEDs in your LED strip
- Run the sketch: A file named
animation.ino
will be created. - Copy
animation.ino
tosrc/03_Arduino/arduino_simple_playback
. Choose to overwrite if the file already exists. - Navigate to
src/03_Arduino/arduino_simple_playback
and openarduino_simple_playback.ino
in Arduino. - Verify (compile) and upload to your Arduino board.
- Attach LED strip to correct Arduino pin (defined with
#define LED_PIN 4
)
Jan Hillmann-Regett and Jakob Lehr