GithubHelp home page GithubHelp logo

mrd / grideye_8x8 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jb2328/grideye_8x8

0.0 1.0 0.0 35.09 MB

AMG8833 testing repo for Arduino, Adafruit Feather, Pycom Lopy and RPi

C++ 59.83% Processing 2.22% Python 37.51% C 0.44%

grideye_8x8's Introduction

AMG8833 code repo for Arduino, Adafruit Feather, Pycom Lopy4 and Raspberry Pi

grideye_8x8

The repo is subdivided into four directories, one for each device. Each of the four directories contain useful URLs and brief guide to get the AMG8833 sensor running along with example code.

Adafruit AMG8833 and DotStar 8x8:

amg8833 led_matrix

To quickly and easily visualise the output of the sensor Adafruit DotStar 8x8 LED matrix was used. The main reason for using this LED matrix as opposed to and LCD screen was connectivity interfaces. AMG8833 uses an I2C interface (as do a lot of LCD displays for RPi/Arduino etc) and the LED matrix had an SPI interface that enabled cleaner and more effcient prototyping.

Lastly, using the LED matrix was a lot faster than just using a Serial.print() to check the latency on all of the tested devices.

Code structure

Sketches are available for only AMG8833, DotStar matrix and AMG8833 and DotStar combined, as shown below:

thermal_cam_init_testing matrix_8x8_init_testing combined_matrix_cam


Color range and the Processing sketch

Processing/rgb_lerp has RGB color codes to be pasted in Arduino/RPi/Feather/Lopy code to create a color pallete for the LED matrix. The code is using linear interpolation between colors to create smooth transitions. The interpolation is done in HSB color space to have a broader range of colors and then is converted to RGB values and in the end we get the following output:

...matrix.Color( 12 , 92 , 89 ), matrix.Color( 12 , 92 , 83 ), matrix.Color( 12 , 93 , 78 )...

Then it can be pasted into the code as an array for the aforementioned devices.

Entire color scheme:

palette

More about Processing


gifs

Raspberry Pi:

RPi

Arduino Uno:

Arduino

Adafruit Feather:

Feather

Lopy4:

tested sensor only, no LED matrix test.


grideye_8x8's People

Contributors

jb2328 avatar mrd avatar

Watchers

 avatar

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.