Giter Site home page Giter Site logo

marckarasek / rpi_rgb_ledmatrix-kerneldriver Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.41 MB

Controlling one or a chain of 32x32 or 16x32 RGB LED displays using Raspberry Pi GPIO - Kernel Driver and User Applications

License: GNU General Public License v3.0

Makefile 0.58% C 11.40% Python 0.25% C++ 67.02% Batchfile 20.75%

rpi_rgb_ledmatrix-kerneldriver's Introduction

rpi_rgb_ledmatrix-kerneldriver

Controlling one or a chain of 32x32 or 16x32 RGB LED displays using Raspberry Pi GPIO

Kernel Module and User Applications

Kernel Module - Can be compiled to use ioremap or sysfs to access the GPIO on the Rasp Pi (Both tested) It will also flash the display all red, then green then blue on load to let you know it is alive and the HW is working. On module load will flash the dispaly red/green/blue to let you know it is functional and your HW works (imalive)

Demo Application - Setup to use /dev/gpioleddriver ioctl calls to access Raspberry PI GPIOs and write to Led Display. No sudo needed to run this.

Web Server / Client Added. Web Server runs on rasp PI along with Kernel Module. Client can run locally (localhost 127.0.0.1) or on another Linux / Pi

Tested with localhost and display is present but not crisp. Remote client dispaly is partially there but garbled.

Compiled and testesd with the following configuration:

Linux version 4.1.20-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #867 SMP Wed Mar 23 20:12:32 GMT 2016

gcc (Raspbian 4.9.2-10) 4.9.2


Step by Step Instructions on how to use this code.

  1. You will need to setup your Rasp Pi with gcc toolchain and kernel headers.

  2. Compiling the kernel module. run "make" This will build the leddriver.ko kernel module You can then insmod this module: sudo insmod leddriver.ko If this is working properly, you should see the led matrix flash red, green and blue.

  3. Compiling the ledapp run "make -f Makfefile.ledapp" This will build the led-matrix application You will need to run tis as sudo or change the permissions on /dev/gpioleddrvr "sudo ./led-matrix" This will bring up a menu of demo apps to run on the display.

  4. Compiling the web app run "make -f Makefile.webapp" This will build two apps, ledwebsrvr and web-matrix Start the server with "sudo ./ledwebsrvr " Start the web app with "./web-matrix -s 127.0.0.1:" This will start the webapp:

rpi_rgb_ledmatrix-kerneldriver's People

Contributors

marckarasek avatar

Watchers

Tim Richardson avatar  avatar

rpi_rgb_ledmatrix-kerneldriver's Issues

[Web Client Support]

Initial webclient over UDP has been added to the code.

Code now compiles, runs (tested via localhost 127.0.0.1) but only displays 2 vertical lines on
led matrix.

Same kernel driver is used for both local control and web client. So underlying GPIO control setup is ok.

Testers needed...

Need some testers to help test the webclient.

New readme.webapp will be avail at the top level with how to compile and run.

Integrate PI Camera / Phone Camera with Led Display

Ability to snap a selfie or pi camera picture and send it to the LED display.

Items:
Take a picture and convert to 32x32 or 64x64 led matrix.
Possibly allow cropping of pictures to send partial picture to Led Display?

Android app as well as PI Camera App

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.