Difference between revisions of "Control application"
| Line 35: | Line 35: | ||
The file is defined in the source file <code>UsrIntrfc/MsgQu.h</code>. | The file is defined in the source file <code>UsrIntrfc/MsgQu.h</code>. | ||
== Create a ramdisk == | === Create a ramdisk === | ||
Create the folder <code>/mnt/ramdisk</code>. | Create the folder <code>/mnt/ramdisk</code>. | ||
Revision as of 09:24, 26 March 2023
The main control application of Aquarium control implements the following features:
- Data acquisition of water temperature, pH and conductivity
- Data acquisition of ambient temperature and humidity
- Fresh water refill control
- Feed control
- Water temperature control using air ventilation and heater
- Calculation of refill tank content based on water level measurement
- Actuation of pump for water exchange
Additionally, the main control application implements the following supporting features:
- HW-Tests
- Text-To-Speech interface
- Logging
- Command interface to receive instructions from outside of the application
- Storage of recorded data in SQL database
- File-based communication to web application
- Monitoring and repair of relay board state
The control application makes extensive use of the pigpio library.
The architecture of the application uses various threads.
The application is automatic start by using systemd.
Installation
Enable I2C on Raspberry Pi
See detailed instructions how to use rasp-config.
Create a file for the message queue
The file is automatically created when running make install.
Alternatively, run the command sudo touch /var/local/aquarium-ctrl.mq.
The file is defined in the source file UsrIntrfc/MsgQu.h.
Create a ramdisk
Create the folder /mnt/ramdisk.
Add the following line to /etc/fstab: tmpfs /mnt/ramdisk tmpfs nodev,nosuid,size=50M 0 0.
Add a symbolic link using the command ln -s /mnt/ramdisk /var/local/aquarium-ctrl.