User Manual/1. Chordata parts/1.1. Microcomputer
We wanted Chordata to be modular and easily extensible, so instead of having a dedicated hardware to do all the sensor readings and data processing, we preferred to implement a device that can be easily found on most electronic laboratories, in which is easy to write and modify software, and is generally powerful enough to take a human being to the moon (if you think we’re exaggerating here, take a look at the specifications of the computer on board of the apollo13 ).
SBC and memory card
Meet the modern SBCs: little computers no much bigger than a credit card, that can run a complete operating system with complex applications, and often give you access to regular and low-level peripherals. The most well known of these devices is the Raspberry pi. And this is the platform on which the Chordata system was built and is tested. But if you’re savvy enough, any SCB that exposes an i2c port would work (but part of the configuration might need to be changed). In order to start using Chordata you should get one of those. Chances are that either you already have one, or you have simply always desired to get your hands on them. If the latter is true, go ahead and purchase one. They don’t cost much and it will undoubtedly be an investment that you won’t regret.
The other thing you will need is a micro SD card with at least 2Gb of memory. If you are currently using your SBC for something else, our advice is to get a different SDcard in which to install the Chordata system. That way you can go back to the previous state whenever needed.
Flash the SD card
The software part of the Chordata system is composed of several programs, and most of them should be running on the SBC. The easier way to get them all, and configure them correctly, is to download our custom linux (Raspbian based) image, and flash it to the SD card. The card can then be used to boot the raspberry with a complete running Chordata environment. This process only works on Raspberry Pis, if you want to try some different SBC, look at the end of this chapter for some advanced procedures.
The process is really simple using the dedicated tool Etcher, available for windows, mac and linux. Start by downloading from their webpage, and installing it.
- Download the Chordata linux image from our web page
- Insert the SD card on your computer’s card reader.
- On Etcher select the downloaded file, select your SD card as a destination disk and hit Flash!
Wait until the Flash process is finished (it might take a couple of minutes), follow the instructions to unmount the card and voila! you now got a complete working system in your fingertips.
If you want to test if it’s working you can put the card on the raspberry, connect it to and HDMI monitor and power it. You should see the init system log displayed, and at the end the Chordata notochord banner. If you don’t have an HDMI monitor, in chapter 1.6 we’ll show you a different method for testing the installation.
After identifying the device file for your SD card, (and probably unmounting it) you can just
cd <directory where the image file is> gzip -d notochord_raspbian_0-1-0a.img.gz sudo dd bs=4M if=notochord_raspbian_0-1-0a.img of=<SD card device file>
Advanced system configuration
If you want to use a different SBC, or just want to install the Chordata utilities without re flashing you SD card (why would you?), there are alternative ways of achieving the same result. If you are happy with the default method, feel free to skip the rest of this chapter
In the repository at http://gitlab.com/chordata/sd-card_factory you will find some configuration scripts with a unique entry point
notochord_OS.sh. From your SBC you can use the following commands:
git clone http://gitlab.com/chordata/sd-card-factory cd sd-card-factory sudo notochord_OS.sh
If you are not in a raspbian system you can change the system specific configuration by tweaking the file called
Keep in mind that, for all these scripts, the dependencies are installed using
apt-get. If you are not in a debian-based system, all of the command lines in the script that run this app should be adapted to your distribution.
We would love to see portings of the Chordata system to different SBCs, so if you are attempting to do so and have some issues please ask in the [| forum], we’ll be there to assist you personally. If you already managed to do it, please share the steps it took you to do so in the same forum section!