Alternative firmware sketch for the AstroPixels boards
You can order AstroPixels boards here:
https://we-make-things.co.uk/product/astropixels/
Install pre-built firmware directly onto your ESP board using this web based installer. https://reeltwo.github.io/AstroPixels-Installer/
Requires Chrome or Edge.
Check out the Wiki for this firmware:
https://github.com/reeltwo/AstroPixelsPlus/wiki
Arduino IDE: https://www.arduino.cc/en/Main/Software (1.8.13 or higher) NeoPixels: https://github.com/adafruit/Adafruit_NeoPixel/releases (1.10.5 or higher) Reeltwo: https://github.com/reeltwo/Reeltwo/releases (1.1 or higher)
The default WiFi credentials are:
SSID: AstroPixels
Password: Astromech
You can and should change this using the web interface. The default web address of the firmware is http://192.168.4.1
The Serial2 TTL header is by default a Marcduino serial command receiver running at 9600 baud. It will forward any serial data to Serial2 at 9600 baud. Allowing you to daisy chain the AstroPixels board with other Marcdunio compatible serial devices.
#APWIFI - Toggle WiFi #APWIFI0 - WiFi Off #APWIFI1 - WiFi On
#APREMOTE - Toggle Droid Remote Support #APREMOTE0 - Droid Remote Support Off #APREMOTE1 - Droid Remote Support On
The prefix @ is optional and is ignored. All Marcduino commands are terminated by \r (carriage return).
Additional you can select a sequence to run by sending:
@APLE followed by a integer in this format LEECSNN
0 - All
1 - Front
2 - Rear
00 - Reset to Normal
01 - Alarm - flips between color and red
02 - Failure - cycles colors and brightness fading
03 - Leia - pale green
04 - March - sequence timed to Imperial March
05 - Single Color - single hue shown
06 - Flashing Color - single hue on and off
07 - Flip Flop Color - boards flip back and forth - similar to march
08 - Flip Flop Alt - other direction of flips on back board, front is same to flip flop
09 - Color Swap - switches between color specified and inverse compliment color
10 - Rainbow - rotates through colors over time
11 - Red Alert - shows color specified
12 - Mic Bright - brightness of color specified back on mic input
13 - Mic Rainbow - color goes from default specified through color range
14 - Ligts out - slowly turn off all LEDs
15 - Display Text
16 - Text Scrolling Left
17 - Text Scrolling Right
18 - Text Scrolling Up
19 - Roaming pixel
21 - Vertial scan line
22 - Fire
23 - PSI style color wipe between two colors
99 - Random
1 - Red
2 - Orange
3 - Yellow
4 - Green
5 - Cyan (Aqua)
6 - Blue
7 - Purple
8 - Magenta
9 - Pink
0 - Default color on alarm / default to red on many effects / color cycle on march / ignored on failure and rainbow
Flip Flop and Rainbow - 200ms x speed
Flash - 250ms x speed
March - 150ms x speed
Color Swap - 350ms x speed
Red Alert - sets mic sensitivity - as a fraction of speed / 10 - we recommend 3
Mic Bright - sets minimum brightness - fraction of speed / 10
00 for continuous use on most
00 for default length on Leia
Not used on March or Failure
Note: Leading 0s drop off as these are long ints
Solid Red: @APLE51000
Solid Orange: @APLE52000
Solid Yellow: @APLE53000
Solid Green: @APLE54000
Solid Cyan: @APLE55000
Solid Blue: @APLE56000
Solid Purple: @APLE57000
Solid Magenta: @APLE58000
Solid Pink: @APLE59000
Alarm (default): @APLE10500
Failure: @APLE20000
Leia: @APLE30000
March: @APLE40500
March (Red Only): @APLE41500
Flash (Yellow): @APLE63500
Color Swap (pink): @APLE99500
Rainbow: @APLE100500
Red Alert: @APLE111300
Mic Bright (Green): @APLE124200
Mic Rainbow (Cyan): @APLE135000
Fire: @APLE225000
@APLE54008 - solid green for 8 seconds
@APLE63315 - flashing yellow at slightly higher speed for 15 seconds
@APLE30008 - leia effect for only 8 seconds