- Code repository for a modular photobioreactor, based on arduino and raspberry pi controlled sensor and control devices.
- Initiated at the 1st QTB PBR Hack`a'thing, March 2-4 2016, at the Quantitative and Theoretical Biology Group of the Heinrich-Heine University Düsseldorf. See QTB wiki page.
- Inspired by prior work from Dougie B. Murray and Rob Lehmann, fuelled by the DIY spirit.
- E.g., on Fedora:
sudo dfl install arduinoor on Ubuntu/Debian:sudo apt-get install arduino arduino-core - Running
arduinorequires permissions to communicate with the USB port; this will either be managed by the softwarearduino, which will prompt you for a root password to add you to dialout and tty groups, or you can do it manually (on commmand-line) withsudo usermod -a -G tty yourUserName; sudo usermod -a -G dialout yourUserName. To take effect you'll need to logout and login again. - To access this ocde (
PBR/code) from thearduinoIDE easily, you can simply add a symbolic link to arduino's sketchbook directory, e.g. byln -s ~/programs/PBR/code ~/sketchbook
There are two+ ways to install additional libraries for Arduino. Either download
a .zip file of the library and import them via the arduino IDE (Import Library > Add Library and select the .zip file), or unpack (or e.g. git clone) them into your local arduino library path (e.g., ~/sketchbook/libraries). The latter
requires closing and re-opening the arduino IDE.
- Touch screen: Our common module control is via the Arduino Mega 2560 board with Sainsmart's touch screen (SSD1289). These work with Rinky-Dink's libraries. Download
UTFT.zip,UTFT_Buttons.zipandUTouch.zipand install them via thearduinoIDE's .zip file import. - Time library
- HX711 library for the scale module (liqometer)
i. Download emacs mode (arduino-mode.el), e.g., to ~/.emacs.d/lisp ii. Add the following code to your ~/.emacs file:
;; adding local .el files
(add-to-list 'load-path "~/.emacs.d/lisp")
(progn (cd "~/.emacs.d/lisp")
(normal-top-level-add-subdirs-to-load-path))
;; auto-recognize arduino files via file-ending:
(setq auto-mode-alist (cons '("\\.\\(pde\\|ino\\)$" . arduino-mode) auto-mode-alist))
(autoload 'arduino-mode "arduino-mode" "Major mode for editing Arduino." t)
iii. In the arduino IDE activate "Use External Editor" in File > Preferences