Giter Site home page Giter Site logo

diegomtzg / screenbacklight Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 63.74 MB

Arduino-based embedded lighting system to enhance movie viewing and music listening experiences.

Processing 17.52% HTML 6.08% C++ 76.39%
arduino led-strips ambient-light

screenbacklight's People

Contributors

diegomtzg avatar

Watchers

 avatar  avatar

screenbacklight's Issues

BT Serial to Arduino

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

Data Getting Mixed Up

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.

Java Program Should Wait For Arduino

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.