efficiencyjunky / ledlightsticks Goto Github PK
View Code? Open in Web Editor NEWA standalone light fixture that you can also wear
A standalone light fixture that you can also wear
Resources:
https://www.arduino.cc/en/Reference/EEPROM
https://www.pjrc.com/teensy/td_libs_EEPROM.html
https://learn.sparkfun.com/tutorials/reading-and-writing-serial-eeproms/all
http://www.mosaic-industries.com/embedded-systems/sbc-single-board-computers/freescale-hcs12-9s12-c-language/instrument-control/eeprom-lifetime-reliability-wear-leveling
Arduino Leonardo has 1024 bytes of EEPROM
Teensy has 2048 bytes of EEPROM
We should only use 1024 or 512 or set the EEPROM as one of the hardware settings
NOTE
Each address contains one byte of information in the form of an unsigned byte, which is best represented as uint8_t so we can easily just use uint8_t data types for each memory location
more information here:
https://docs.oracle.com/cd/E19253-01/817-6223/chp-typeopexpr-2/index.html
https://forum.arduino.cc/index.php?topic=206959.0
224, // pink
128, // aqua
Would make a good palette: soft gurl pink and soft boi blue
we only want to store a single CRGBPalette16 color palette in the program memory at once and swap it out depending on the animation settings. So we can just store the index in our settings object for each animation and then swap the palette being used in the initializeAnimation() function
Need to get final structure of program figured out
Animations with separate palettes:
here's a description
It would be cool to have a menu option where pressing and holding the secondary (color) button takes the user to a mode where they can see the current palette and cycle through all available palettes.
Ideally they could turn the palette on or off as well.
Hold both buttons down to turn off
Sometimes if the top gets bumped, the button will be clicked so we want to avoid this by putting a little more space around the button and only have a tiny bit of the cover actually come close to it
In order to make the brightness control more flexible and future proof, we should stop using the FastLED.brightness() global method of managing brightness and instead use the same method as being used in the MIDI lights project
We want to test if M4 hardware works better than the previous 10-32 hardware for mounting bolts
Things to adjust:
Only a few specific animations look good on Fire animation. We need to create a color palette array specifically for Fire and keep track of the animations in EEPROM
need a struct {
rate = BPM from 30 - 100
depth = 70 - 100
base = 80 - 140
}
also need global scalar
and usecase would be beatsin8(rate*scalar, base, base+depth)
this would be used as brightness
We need to redesign the brain board slightly so that it can be programmed more easily while connected to the led light sticks, can control the 2 strips individually, and adheres to the color codes of the harnesses we're using
PARTS
200 Ohm Resistor (1206 SMD): https://www.digikey.com/en/products/detail/stackpole-electronics-inc/RMCF1206FT200R/1759762
0 Ohm Resistor (1206 SMD): https://www.digikey.com/en/products/detail/stackpole-electronics-inc/RMCF1206ZT0R00/1756906
Jumper (shorting connector): https://www.digikey.com/en/products/detail/sullins-connector-solutions/QPC02SXGN-RC/2618262
Make library component, pcb breakout board, and internal mounting stucture for the Micro-Fit Male straight header that will mate with the power source boards
Need to test out the fit of the handle sheeth and internal mounting structure
Might as well try to add the snapfit cover in there if possible
you know what to do
CODE AND LOTS OF COLOR PALETTES
https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/master/simple_strand_palettes/simple_strand_palettes.ino
Color palette tools:
https://www.youtube.com/watch?v=Ukq0tH2Tnkc
https://cssgradient.io/
Palette Knife bookmarket works with CPT-CITY
http://fastled.io/tools/paletteknife/
http://soliton.vm.bytemark.co.uk/pub/cpt-city/views/totp-cpt.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.