Arduino library for the Open Acidification pH Stat Controller
- Clone (or fork and clone if you might contribute to the project) this repository to the Arduino Libraries directory.
- Use
scripts/install.shto do the initial install. - After that use
scripts/testAndBuild.shto test. - To build the GUI simulator, see GUI/build.sh.
To install onto an Arduino Mega2560 use the Arduino IDE.
By default, the Arduino compiler links to a printf library that does not support printing floating point numbers. To get that feature (which we use!), add the following lines to boards.txt and use the Tools menu to select "ARV printf Version: "Full printf". On macOS, the boards.txt is located at ~/Library/Arduino15/packages/arduino/hardware/avr/1.8.3. For background see here. (The avr directory should get created by a successful run of scripts/testAndBuild.sh.)
menu.printf=AVR printf Version
mega.menu.printf.default=Default printf
mega.menu.printf.default.compiler.c.elf.extra_flags=
mega.menu.printf.full=Full printf
mega.menu.printf.full.compiler.c.elf.extra_flags=-Wl,-u,vfprintf -lprintf_flt
mega.menu.printf.minimal=Minimal printf
mega.menu.printf.minimal.compiler.c.elf.extra_flags=-Wl,-u,vfprintf -lprintf_min
To navigate through the menus, press 2, 4, 6, or 8 on the keypad.
The following are "hidden" commands:
- From the 'SeeDeviceAddress' command:
- 'B' goes into an infinite loop that should trigger a reset by the watchdog timer in 8 seconds
- 'C' regenerates a new (random) MAC address that will take effect on the next restart
- On startup you can avoid the 60-second DHCP attempt by pressing any key
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
- Libraries lists the external libraries and their licenses.