Giter Club home page Giter Club logo

ledboard's Introduction

LED Board

This was an educational project I undertook to learn more about PCB design and programming microcontrollers. The design goal was to produce a low cost alphanumeric display easily readable from 50ft outdoors in bright sunlight.

TL;DR:

Design

The LEDs are wired in parallel, with P-channel MOSFETs on the rows and N-channel MOSFETs on the columns. The screen runs at a refresh rate of 1.25KHz, or a row scan of 7.5KHz, with the goal of avoiding rolling shutter artifacts in photos and videos. An ARM Cortex M0 drives shift registers to control the columns using its SPI peripheral, and switches the rows with dedicated GPIOs.

The board is programmed via a TTL UART, with a 48 byte LSB-first row major representation of the pixels on the board, left to right.

The driver.py script is an example of how to drive the display. The font in ledfont.py is the 4x6 terminal font from the Linux kernel.

Datasheets:

Changes

Revision 2.0 realized a significant reduction in cost by replacing the expensive open drain shift registers with N-channel MOSFETs small enough to be driven by logic level registers. That also enabled removing the 5V level shifter and associated 5V LDO.

The switcher inductor value was far too large, and was limiting the brightness of the display: since ripple current isn't really relevant, I replaced it with the smallest inductor the switcher IC datasheet allows (22uH -> 4.7uH).

The PCB footprint was reduced from 365x50mm to 350x50mm.

Ordering PCBs

I had 5 revision 2.0 boards manufactured and assembled by JLCPCB in December 2022: the cost was $24.50/each, plus $30 in shipping costs.

Revision 2.1 will use cheaper more widely available LEDs.

Adjustable voltage wall adapter: https://www.amazon.com/dp/B01ISM267G

Building Firmware

No external libraries are necessary: everything is included here, and can be flashed using standard open source tools.

To build on Debian/Ubuntu, run:

sudo apt install make gcc-arm-none-eabi openocd
make

To flash to the hardware, attach the ST-LINK and run:

./flash.sh

Attach GDB with:

gdb-multiarch ./ledboard.elf -ex 'target extended-remote localhost:3333'

ST-LINK: https://www.amazon.com/gp/product/B01J7N3RE6

License

The license for the header files from STMicro can be found at include/LICENSE. Everything else is CC0 licensed, see LICENSE in this directory.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ledboard's People

Contributors

jcalvinowens avatar

Stargazers

 avatar Xiaobo avatar Dean Stelow avatar Noah Young avatar

Watchers

 avatar  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.