diegomtzg / screenbacklight Goto Github PK
View Code? Open in Web Editor NEWArduino-based embedded lighting system to enhance movie viewing and music listening experiences.
Arduino-based embedded lighting system to enhance movie viewing and music listening experiences.
One thing that would be worth while is to have the arduino communicate via wirelessly with the host computer with a blue tooth module. This would eliminate the need to plug in to a com port. Then, only a single plug would be required to power the arduino/LEDs
It seems like the data being sent from my modified java program sometimes gets out of whack. My guess is the bit shifts aren't quite doing what we think they should be, because we are dealing with a different method of accessing the pixel data than what the original program did. Even the original program seems to show some jumpiness.
Values for the RGB components at times exceed 255 and sometimes are at 0. Most likely cause is the data being sent are not the correct values.
Right now, the java program hammers the COM port with data no matter what the Arduino is doing. If there is any kind of delay at all on the Arduino side, this will cause the serial port buffer to grow considerably. Also, any timing mismatch (out of sync data transfer) can cause the same issue.
For this reason, we should send serial port data, and only take a new screen shot and process the image and send the rgb values back to the Arduino when the Arduino is ready. Likewise, when the Arduino receives the required amount of data, it should then send back an "OK" message to indicate it is ready for the next data stream.
This will also help improve performance of the program running on the client machine. Why? It will only be generating images and parsing the data/sending through the serial port when needed.
We can also have the java program send an "are you connected" message to the Arduino so then they both know that a device is listening on the other end.
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.