Giter Site home page Giter Site logo

dvalnn / colaruco Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.19 MB

c/c++ program and python script to display aruco code fiductial images on a small 10x10 led matrix controlled by an Arduino uno board

C++ 60.99% Python 29.46% CMake 0.84% Shell 8.71%

colaruco's Introduction

ColAruco

Source code for the controler of a rgb led matrix that displays Aruco codes. Upload the main.cpp to the arduino controler and then run the python script.

When running the python script pass the serial port as an argument (if no arguments are passed it defaults to /dev/ttyACM0) The python code calls for a c++ subprocess on runtime (arucoDictTranslator.cpp) which might need to be manually compiled with the correct name after clonning the rep (due to ubuntu permissions).

The brightness and color of the leds can be adjusted at will. The brigthnes range goes from 0 (leds off) to 255 (maximum brightness). (Example input: br 23) There are 4 predifined colors (red, green, blue, and white) and may be acessed inputing cl r/g/b/w in the python script. To display other colors, the hex value must be manually inputed (Ex: cl ff00ff -> value for pink)

The code arduino source code is 100% c++/arduino and can be run by an Arduino Uno board, or better. (An Arduino Nano board might be able to run the code as well, but i haven't tested it yet).

The Arduino code needs the standard Arduino libraries as well as the Adafruit_NeoPixel library to run properly (if you open the folder with the PlatformIO ide for vscode it should handle that without problems).

This software was developed on ubunto 20.04 lts and should work fine on other Linux distributions. Should also work fine on Windows given all the python and c++ requirements are met and the correct serial port for connection is specified.

Note: The pyserial python module and the Adafruit Neopixel arduino library are needed to run the code.

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.