GithubHelp home page GithubHelp logo

ratewar / db2.x-firmware Goto Github PK

View Code? Open in Web Editor NEW

This project forked from plastic-scanner/db2.x-firmware

0.0 0.0 0.0 154 KB

Firmware for the DB2.X (development board) of the Plastic Scanner project

License: GNU General Public License v3.0

C++ 95.81% C 4.19%

db2.x-firmware's Introduction

DB 2.x - Firmware

This is the firmware repository for the DB2.X (development board) of the Plastic Scanner project. More technical information is in the docs and general information about project on our website.

Requirements

Firmware runs on DB2.x (tested on DB2.1), powered by Arduino. Requires PlatformIO, a cross-platform embedded development toolset. See installation instructions here it can be as easy as one-click-plugin-installation (PlatformIO IDE).

In order to build and upload the firmware to DB2.x, connect the board to computer and find the Build and Upload buttons in the PlatformIO IDE OR use the following commands:

$ pio run -t upload 		# build and upload fw image

The compiled firmware image is placed in .pio/build/<board>/firmware.hex.
Compilation options can be tweaked in platformio.ini file (see build options).

Usage

Connect your DB2.x to your laptop, build and flash the firmware and open the serial console with $ pio device monitor or your favourite app (e.g Putty, screen, minicom, picocom...). Enable local echo in order to see commands you're typing by adding --echo to command above, or pressing CTRL+T followed by CTRL+E while running it.

User can send commands like this:

> scan

which outputs a full scan, 8 values, one for each LED.

See app/main.cpp at setup() function which commands are defined or type help to list all commands.

Development

Feedback on architecture and implementation is welcome. Firmware currently controls an Arduino, which "talks" to an ADC chip and a LED driver, communicating via the serial interface. In directory app are the main sources, test is for unit tests (which needs much more love and actual tests), drivers contains custom drivers for componments on board.

NOTE about drivers: at the moment we're using a third party library for the ADC, listed in platformio.ini at [lib_deps], with sources located in .pio/libdeps/uno/. However, we hope to soon implement a custom, simpler driver for it which will be located in drivers/ads1256.

db2.x-firmware's People

Contributors

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