Content: Installing AM2315 driver, Registering TangoDS, Connecting Databases, Writing TangoDS, Running TangoDS.
This repository holds a Tango Device Server for the AM2315 temperature and humidity sensor and a quick tutorial on how it was written and what will be needed to get the Server running. I am working on a Raspberry Pi 4 with PyTango 9.2.5 (without database) but this tutorial should work with any hardware supporting an i2c bus. How to hook up the AM2315 to a Rapsi or another Arduino is shown here.
Start by installing the Adafruit_GPIO library via
pip3 install adafruit-gpio
You will see that the mentioned github repository is deprecated, but you can still download the library.
Adafruit suggests to use the AM2320 driver instead but as I have tried it, I learned that the AM2315 does not work with the AM2320 driver (see issue). Unfortunately there is no maintained python driver for the AM2315 sensor so that I uploaded the driver AM2315.py from SwitchDoc Labs that can be used but will not be maintained.
Either keep the driver in the same directory as the TangoDS or move it to your python site-/dist-packages.
Now you should be able to import AM2315 in a python prompt and test the driver.