Skip to content

Commit

Permalink
docs - extended documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Mar 28, 2021
1 parent d1cad8b commit d510422
Show file tree
Hide file tree
Showing 21 changed files with 805 additions and 24 deletions.
1 change: 0 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ It's simple. And should also remain so if you have little time for it.

## Documentation
<img src="https://readthedocs.org/projects/growautomation/badge/?version=latest&style=plastic"/>
<br>
<a href="https://docs.growautomation.eu">docs.growautomation.eu</a>

## Version
Expand Down
1 change: 1 addition & 0 deletions docs/source/_static/img/config/dashboard/element.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/source/basic/intro.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _basic-intro:

=====
Intro
=====
Expand All @@ -8,6 +10,8 @@ Links
* `Video tutorials <https://www.youtube.com/channel/UCLJyDlo3Z6eP_X2Pw0-Z8Pw>`_
* `Demo system <https://demo.growautomation.at/>`_

----

What is GrowAutomation?
***********************

Expand All @@ -24,6 +28,7 @@ Aim of this project

* extension by external scripts
* being an independent system
* create a collection of knowledge regarding this topics
* building a community around this ideas


Expand All @@ -32,6 +37,8 @@ This project is not
* yet in a stable state


----

Features
********
* support for custom scripts used in the input and output workflow
Expand Down
12 changes: 12 additions & 0 deletions docs/source/config/area.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _config-area:

====
Area
====

Description
***********
How to configure areas to limit actors and/or conditions.

.. warning::
Documentation is not yet finished.
15 changes: 15 additions & 0 deletions docs/source/config/condition.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.. _config-condition:

=========
Condition
=========

Description
***********
How to configure conditions for the output-workflow.

.. warning::
Documentation is not yet finished.

.. _config-condition-match:
.. _config-condition-link:
12 changes: 12 additions & 0 deletions docs/source/config/connection.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _config-connection:

==========
Connection
==========

Description
***********
How to configure converters for the input-workflow.

.. warning::
Documentation is not yet finished.
37 changes: 37 additions & 0 deletions docs/source/config/dashboard.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.. _config-dashboard:

.. |element| image:: ../_static/img/config/dashboard/element.svg
:width: 50%

=========
Dashboard
=========

.. warning::
Documentation is not yet finished.

Description
***********
How to configure dashboards in the GrowAutomation webinterface.

Dashboards
**********

How to create a dashboard and configure its grid-system.

Elements
********

|element|

How to create a dashboard element.

Graphs
======

How to create a graph prototype.

Datasets
========

How to create a dataset.
12 changes: 12 additions & 0 deletions docs/source/config/input.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _config-input:

=====
Input
=====

Description
***********
How to configure sensors for the input-workflow.

.. warning::
Documentation is not yet finished.
12 changes: 12 additions & 0 deletions docs/source/config/output.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _config-output:

======
Output
======

Description
***********
How to configure actors for the output-workflow.

.. warning::
Documentation is not yet finished.
12 changes: 12 additions & 0 deletions docs/source/config/script.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _config-script:

======
Script
======

Description
***********
How add and manage custom scripts.

.. warning::
Documentation is not yet finished.
12 changes: 12 additions & 0 deletions docs/source/config/system.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _config-system:

======
System
======

Description
***********
How to configure the controller system.

.. warning::
Documentation is not yet finished.
12 changes: 12 additions & 0 deletions docs/source/config/task.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _config-task:

====
Task
====

Description
***********
How to configure system tasks.

.. warning::
Documentation is not yet finished.
191 changes: 191 additions & 0 deletions docs/source/device/connection.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
.. _device-connection:

.. |ads1115| image:: ../_static/img/devices/connection/ads1115.jpg
:width: 150pt
:class: float-right
.. |mcp3008| image:: ../_static/img/devices/connection/mcp3008.png
:width: 150pt
:class: float-right
.. |mcp3008_pin| image:: ../_static/img/devices/connection/mcp3008_pinout.png
:width: 150pt
:class: float-right

==========
Connection
==========


Description
***********
Here you can find information to the implementation and maintenance of connection-devices such as analog to digital converters.

.. note::
Only devices we tested are listed here.

If you have tested some on your own and want to contribute your know-how => send us the information to contact@growautomation.eu

Please include at least the information you see listed in the existing devices below.

----

Devices
*******

ADS1115
=======

|ads1115|

Tags
----

* **NATIVE**
* **SOLDERING**
* **3.3V**
* **4 INPUTS**
* **2 GPIO**

Links
-----

* `Adafruit tutorial for i2c <https://learn.adafruit.com/circuitpython-basics-i2c-and-spi/i2c-devices>`_
* `Adafruit tutorial for ads1x15 <https://learn.adafruit.com/adafruit-4-channel-adc-breakouts/python-circuitpython>`_
* `Amazon 'ads1115' <https://www.amazon.de/AZDelivery-ADS1115-Channels-Arduino-Raspberry/dp/B07TY3TSBG>`_


Dependencies
------------

* **apt**

* python3-smbus
* i2c-tools

* **pip**

* adafruit-circuitpython-ads1x15

* **privileges**

* executing user must be a member of:

* group **gpio** (*usermod -a -G gpio USERNAME*)
* group **i2c** (*usermod -a -G i2c USERNAME*)

* **raspi-config**

* i2c must be enabled (*raspi-config nonint do_i2c 0*)

Implementation
--------------

You will have to solder the pins to the `pcb <https://en.wikipedia.org/wiki/Printed_circuit_board>`_.

GA supports this converter natively.

Wiring
^^^^^^
See also: `raspberry pi i2c pinout <https://pinout.xyz/pinout/i2c>`_

**Power**

* VDD => 5V power supply
* GND => ground

**Connections to raspberry**

* SDA => GPIO #0, #2 or any free default gpio
* SCL => GPIO #1, #3 or any free default gpio

**Connections to analogue sensors**

* A0 to A3 => analogue out of the sensor


Issues
------

The contacts are sensitive to corrosion.

You would want to seal it by covering it with epoxy resin.

----

MCP3008
=======

|mcp3008|

Tags
----

* **NATIVE**
* **3.3V**
* **8 INPUTS**
* **4 GPIO**

Links
-----

* `Adafruit tutorial for spi <https://learn.adafruit.com/circuitpython-basics-i2c-and-spi/spi-devices>`_
* `Adafruit tutorial for mcp3xxx <https://learn.adafruit.com/mcp3008-spi-adc/python-circuitpython>`_
* `Amazon 'mcp3008' <https://www.amazon.de/Adafruit-MCP3008-856-Konverter-Schnittstelle/dp/B00NAY3RB2>`_


Dependencies
------------

* **apt**

* python3-smbus

* **pip**

* adafruit-circuitpython-mcp3xxx

* **privileges**

* executing user must be a member of:

* group **gpio** (*usermod -a -G gpio USERNAME*)
* group **spi** (*usermod -a -G spi USERNAME*)

* **raspi-config**

* spi must be enabled (*raspi-config nonint do_spi 0*)

Implementation
--------------

GA supports this converter natively.

Wiring
^^^^^^

|mcp3008_pin|

See also: `raspberry pi spi pinout <https://pinout.xyz/pinout/spi>`_

**Power**

* VDD => 3.3V power supply
* VREF => 3.3V power supply
* AGND => ground
* DGND => ground

**Connections to raspberry**

* CLK => GPIO #11 or #21
* CS => any free default gpio-pin
* DIN => GPIO #9 or # 19
* DOUT => GPIO #10 or #20

**Connections to analogue sensors**

* CH0 to CH7 => analogue out of the sensor


Issues
------

Multiple spi-clients per bus were not successfully tested yet (*spi would support it when using a cs-pin per client-device* => see `per example <https://raspberrypi.stackexchange.com/questions/71448/how-to-connect-multiple-spi-devices-adcs-to-raspberry-pi>`_)

0 comments on commit d510422

Please sign in to comment.