Commit Graph

136 Commits

Author SHA1 Message Date
Scott Lawson
b10a7d0396 Added experimental support for Raspberry Pi devices
This commit adds support for the Raspberry Pi, which allows users to
create a completely standalone music visualization system. The Raspberry
Pi should be connected directly to a ws2812b LED strip. A PWM-capable
GPIO pin should be connected to the data line of the LED strip. A USB
audio input device should be connected to one of the Raspberry Pi's USB
ports.

It is recommended that the GUI and FPS output be disabled when running
the visualization on the Raspberry Pi. These features can degrade
performance on the already computationally limited Raspberry Pi.
2017-01-03 16:33:28 -08:00
Scott Lawson
4b6f9a807b Fixed bug where some FPS values raised exceptions
Fixed a bug where certain config.FPS values would result in arrays with
mismatched dimensions. The mismatched dimensions occurred because an
integer was rounded instead of truncated. This is now fixed and
exceptions should no longer be raised when certain FPS values are used.
2017-01-03 16:09:39 -08:00
Scott Lawson
46b404120f Fixed bug where ComboBox didn't match current effect
Fixed a bug where the GUI ComboBox value would sometimes not match the
effect being displayed. This bug sometimes occurs when the GUI is first
initialized. This change now ensures that the ComboBox value is
correctly initialized.
2017-01-01 13:12:38 -07:00
Scott Lawson
c725d395be Added ComboBox to GUI for effect selection
Added a ComboBox to the GUI to allow the user to change the
visualization effect without having to restart Python. The user can now
select from one of the following visualizations using the GUI: 'Scroll
effect', 'Spectrum effect', 'Energy effect'
2017-01-01 12:14:31 -07:00
Scott Lawson
0f5c05339c Fixed a byte encoding error that occurred in Python 3
Fixed an error that caused strange byte encoding in Python 3. This error
was caused by a mistake in porting code from Python 2.7 to Python 3 and
would cause strange LED flickering behaviour. The LED update code should
now work properly in Python 2.7 and Python 3.
2016-12-31 11:06:09 -07:00
Joey Babcock
daf08d45bb Merge branch 'master' into patch-1 2016-12-30 23:04:34 -08:00
Scott Lawson
3504d0b9c0 Fixed typo from 255 to 256 2016-12-30 22:47:06 -07: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
Scott Lawson
3241e43435 Fixed a typo where multiple effects were uncommented 2016-12-30 22:19:46 -07:00
Scott Lawson
27a0448203 Added LED strand test to LED.py
Added a test routine to led.py to do a simple LED strand test. The
strand test scrolls a red, green, and blue pixel across the LED strip
forever.
2016-12-30 22:18:56 -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
Scott Lawson
e874ed3b2c Resolved issues with Python 3.5 compatibility
Fixed some bugs that occurred in Python 3.5 but were not present in
Python 2.7. Most compatiblity issues were caused by incompatible type
casting of numpy arrays.
2016-12-29 15:51:38 -07:00
Joey Babcock
3094f1bd45 Added FPS output
Also shows if its connected successfully
2016-12-28 22:45:47 -08:00
Scott Lawson
da338ae8f4 Clarified project license in README 2016-12-27 22:01:29 -07:00
Scott Lawson
c2c727d959 Released project under MIT license 2016-12-27 22:00:41 -07:00
Scott Lawson
e76619d002 Added approximate price information to README 2016-12-27 21:52:56 -07:00
Scott Lawson
55c88deb06 Clarified minor hardware connections point in README 2016-12-27 21:47:37 -07:00
Scott Lawson
1f17f3584d Added more information about hardware connections to the README 2016-12-27 21:37:36 -07:00
Scott Lawson
f34b0e49fa Added more setup information to README 2016-12-27 21:34:09 -07: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
d57165ee91 Added hardware connection information 2016-12-27 20:40:14 -07:00
Scott Lawson
eb2e4fdf49 Added 2 images of ESP866 pinouts 2016-12-27 20:17:17 -07:00
Scott Lawson
1008a65da2 Added more information for setting up the Arduino IDE 2016-12-27 18:28:03 -07:00
Scott Lawson
072fcf528a Improved information about installing dependencies 2016-12-27 18:18:01 -07:00
Scott Lawson
9416c8c061 Moved images to separate folder to reduce clutter 2016-12-27 17:29:10 -07:00
Scott Lawson
e09578da1d Updated dsp.py and led.py to be Python 3.5 compatible 2016-12-27 03:06:57 -07:00
Scott Lawson
f4a3a39b58 Fixed formatting error in README. Added disclaimer 2016-12-27 02:29:27 -07:00
Scott Lawson
cd767521ac Fixed typo in readme 2016-12-27 02:27:40 -07:00
Scott Lawson
e454aa93f7 Greatly expanded the README with project information 2016-12-27 02:27:07 -07:00
Scott Lawson
43c6af1adc Updated README with overview information 2016-12-27 01:36:06 -07:00
Scott Lawson
63f0a74af1 Updated README with overview information 2016-12-27 01:35:56 -07:00
Scott Lawson
d9677a4f8e Renamed mel_visualization.py to visualization.py 2016-12-27 01:31:50 -07:00
Scott Lawson
ade61f41e8 Removed completely inaccurate information from README 2016-12-27 01:12:05 -07:00
Scott Lawson
94eb789bf4 Added demo gif of scroll effect 2016-12-27 01:11:17 -07:00
Scott Lawson
cb87a01e34 Added gif to demonstrate LED visualization effect 2016-12-27 00:58:29 -07:00
Scott Lawson
8d6671bf97 Added block diagram image to top of README 2016-12-26 23:59:13 -07:00
Scott Lawson
7522bc2110 Added a cropped description gif to better match README formatting 2016-12-26 23:58:29 -07:00
Scott Lawson
d9921263c3 Added block diagram to explain the purpose of this repository 2016-12-26 23:21:44 -07:00
Scott Lawson
a465976d1a Fixed minor markdown formatting issue with readme 2016-12-26 18:00:09 -07:00
Scott Lawson
1388b33239 Added a smaller description gif that doesn't take up as much space 2016-12-26 17:59:08 -07:00
Scott Lawson
21425f9e40 Update README.md 2016-12-26 17:50:12 -07:00
Scott Lawson
bc278d9a65 Fixed issue where gif did not loop forever 2016-12-25 19:32:11 -07:00
Scott Lawson
03310f350a Added description gif to README 2016-12-25 19:30:36 -07:00
Scott Lawson
f225b160e4 Added description gif to demonstrate project capabilities 2016-12-25 19:19:45 -07:00
Scott Lawson
7efceb4592 Create README.md 2016-12-25 00:52:54 -07:00
Scott Lawson
6f98d31096 Removed function that is no longer needed 2016-12-24 22:54:43 -07:00