slup / master-brick

Brick for controlling Stacks, Master-Extensions and four Bricklets

Home Page:http://www.tinkerforge.com/en/doc/Hardware/Bricks/Master_Brick.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Master Brick

This repository contains the firmware source code and the hardware design files. The documentation generator configs can be found at https://github.com/Tinkerforge/generators

Repository Content

software/:
  • examples/: Examples for all supported languages
  • build/: Makefile and compiled files
  • src/: Source code of firmware
  • generate_makefile: Shell script to generate Makefile from cmake script
hardware/:
  • Contains kicad project files and additionally schematics as pdf
datasheets/:
  • Contains datasheets for sensors and complex ICs that are used

Hardware

The hardware is designed with the open source EDA Suite KiCad (http://www.kicad-pcb.org). Before you are able to open the files, you have to install the Tinkerforge kicad-libraries (https://github.com/Tinkerforge/kicad-libraries). You can either clone them directly in hardware/ or clone them in a separate folder and symlink them into hardware/ (ln -s kicad_path/kicad-libraries project_path/hardware). After that you can open the .pro file in hardware/ with kicad and from there view and modify the schematics and the PCB layout.

Software

To compile the C code we recommend you to install the newest CodeSourcery ARM EABI GCC compiler (https://sourcery.mentor.com/sgpp/lite/arm/portal/subscription?@template=lite). You also need to install the bricklib (https://github.com/Tinkerforge/bricklib). You can either clone it directly in software/src/ or clone it in a separate folder and symlink it into software/src/ (ln -s bricklib_path/bricklib project_path/software/src/). Finally make sure to have CMake installed (http://www.cmake.org/cmake/resources/software.html).

After that you can generate a Makefile from the cmake script with the generate_makefile shell script (in software/) and build the firmware by invoking make in software/build/. The firmware (.bin) can then be found in software/build/ and uploaded to the Brick. A tutorial on how to upload the firmware can be found here: http://www.tinkerforge.com/doc/Software/Firmwares_And_Plugins.html

About

Brick for controlling Stacks, Master-Extensions and four Bricklets

http://www.tinkerforge.com/en/doc/Hardware/Bricks/Master_Brick.html


Languages

Language:C 94.3%Language:C++ 3.2%Language:IDL 0.4%Language:Pascal 0.3%Language:Java 0.3%Language:Visual Basic 0.2%Language:C# 0.2%Language:Shell 0.2%Language:PHP 0.2%Language:Python 0.2%Language:Ruby 0.2%Language:Perl 0.2%