This repository contains the hardware design files. The software is included in the Master Brick software and can be found at https://github.com/Tinkerforge/master-brick
- hardware/:
- Contains KiCad project files and additionally schematics as PDF
- datasheets/:
- Contains datasheets for sensors and complex ICs that are used
The hardware is designed with the open source EDA Suite KiCad (http://www.kicad.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.
Clone and build toolchain from https://github.com/pfalcon/esp-open-sdk into toolchain/ directory. The following instructions apply for ESP8266 SDK 1.5.3:
sudo apt-get install build-essential gperf libtool libtool-bin help2man texinfo libncurses5-dev python2.7-dev autoconf
mkdir toolchain
cd toolchain
git clone --recursive https://github.com/Tinkerforge/esp-open-sdk.git
cd esp-open-sdk
make STANDALONE=y VENDOR_SDK=1.5.3
Update toolchain:
make clean
git pull
git submodule sync
git submodule update
make STANDALONE=y VENDOR_SDK=1.5.3
Additionally we use libesphttpd:
cd toolchain
git clone --recursive http://git.spritesserver.nl/libesphttpd.git/
To be able to build the extension firmware using libesphttpd a patch must be applied to the ESP8266 SDK. This assumes that the toolchain is already successfully built:
cd software
patch -b -N -d ../toolchain/esp-open-sdk/sdk/include -p1 < esp8266sdk-c_types.patch
libesphttpd must also be patched:
cd software
patch -b -N -d ../toolchain/libesphttpd -p1 < libesphttpd-Makefile.patch
patch -b -N -d ../toolchain/libesphttpd -p1 < libesphttpd-httpd-nonos.patch
Provided that all the steps of the toolchain section was followed properly the extension firmware can be built with:
cd software
make clean
make
The compiled firmware can be found here:
software/firmware/wifi_extension_v2_firmware.zbin