Commit Graph

18 Commits

Author SHA1 Message Date
Scott Lawson
d828f5a273 Merge remote-tracking branch 'refs/remotes/origin/master' into raspberry-pi-support 2017-01-05 02:10:34 -08:00
Scott Lawson
e95cef5a99 Replaced "if" with "#if", changed int to uint32_t
Replaced if statements with #if preprocessor macros.
Replaced one #ifdef macro with #if.
Changed `int secondTimer` to `uint32_t secondTimer` to avoid signed/unsigned integer comparison. The `millis()` function returns `uint32_t`.
Removed asterix output from FPS output.
2017-01-05 00:02:43 -08:00
Scott Lawson
565aada7af Increased temporal dithering amount in ESP8266 firmware 2017-01-04 22:12:32 -08:00
Scott Lawson
0e73fd1348 Improved GUI, fixed bugs, better visualizations
* Resolved an issue with the ESP8266 where gamma correction would be
performed twice. Changed GAMMA_CORRECTION to SOFTWARE_GAMMA_CORRECTION
to make a distinction between software and firmware gamma correction.
The ESP8266 does firmware gamma correction and dithering, while the
Raspberry Pi uses slightly more inferior software gamma correction.
Changed the software gamma table to match the gamma table used in the
ESP8266 firmware.

* Improved the spectrum visualization by using one of the color channels
to visualize the absolute value of the temporal derivative of the
spectrum. Also added a feature to reject the "common mode" spectral
components, which is analogous to the spectral DC component.

* Signficantly improved the GUI and added a frequency adjustment slider.
Adjusting the frequency range has a big impact on the visualization
output. Recommend using a high frequency range (something like 4 kHz -
10 kHz) when running the scrol visualization.
2017-01-04 22:12:12 -08:00
Joey Babcock
daf08d45bb Merge branch 'master' into patch-1 2016-12-30 23:04:34 -08:00
Scott Lawson
f860922d67 Removed ws2812b i2s library dependency, updated README
I have added a pre-configured version of the ws2812b i2s library to the
Arduino code. This removes the need to download and install the ws2812b
i2s library manually. The ws2812b code has been preconfigured to reduce
the temporal compared to the default value. The default value was found
to cause excessive flickering. The readme has been updated to reflect
this change. Also added a note about the maximum number of LEDs (255)
2016-12-30 22:31:27 -07:00
Joey Babcock
86706d7f94 apparently i don't actually know how if statements work... 2016-12-30 14:28:32 -08:00
Joey Babcock
443d8961ae make "if" statement instead of just ifdef 2016-12-30 14:23:54 -08:00
Joey Babcock
35d1ab23de left one digitalwrite in there... 2016-12-29 16:43:23 -08:00
Joey Babcock
891bf470fe added macro for fps enabling 2016-12-29 16:40:51 -08:00
Joey Babcock
3094f1bd45 Added FPS output
Also shows if its connected successfully
2016-12-28 22:45:47 -08:00
Scott Lawson
97e54b64d2 Added setup and configuration instructions to the README 2016-12-27 21:30:51 -07:00
Scott Lawson
7b3f95af18 Improved documentation for IP configuration 2016-12-27 21:09:10 -07:00
Scott Lawson
e677742584 Added a status indicator LED that blinks when command is received 2016-12-24 20:37:43 -07:00
Scott Lawson
d966bb878d Complete rewrite of most sections, added new onset detection 2016-10-22 21:55:22 -07:00
Scott Lawson
17313c254b Major refactoring and update
* Moved all module settings to a new config.py file
* Completely overhauled visualize.py and added a new radiate effect that
colours the radiative beats according the beat frequency.
* Improved some constants like the decay constant to be parametric so
that they scale to any led strip size
* Added temporal dithering to Beat.update_pixels() so that it now
supports fractional speed values. Being limited to integral values was
starting to become a problem.
* Overhauled and simplified the LED module.
* When updating pixels, the LED module no longer sends UDP packets for
pixels that have not changed. This optimization reduces the packet load
significantly and should allow for higher refresh rates.
* Renamed lookup_table.npy to gamm_table.npy to better reflect that the
table is used for gamma correction of the LED strip
2016-10-13 22:27:45 -07:00
Scott Lawson
a3a986ed0b Fixed folder name for arduino ESP8266 firmware 2016-10-12 16:02:36 -07:00
Scott Lawson
028500f04e Initial commit
Initial commit of working python and ESP8266 code.
2016-10-12 14:50:00 -07:00