# AD/DA

* Device: Waveshark Raspberry Pi High-Precision AD/DA Expansion Board

Doc:

* <https://www.waveshare.com/wiki/High-Precision_AD/DA_Board>

Requirements:

* Install bcm2835 stuff: <https://github.com/momenso/node-dht-sensor/issues/26#issuecomment-160486535>
* Copy [source code](https://www.waveshare.com/wiki/File:High-Precision-AD-DA-Board-Code.7z) to raspberry
* Go to bcm2835 and run `make; sudo ads1265_test`
* Python
  * Install spidev: `pip install git+https://github.com/doceme/py-spidev`
  * install RPi: `pip install RPi.GPIO`
  * Note: Need to [enable SPI](https://www.raspberrypi-spy.co.uk/2014/08/enabling-the-spi-interface-on-the-raspberry-pi/) (<https://www.takaitra.com/spi-device-raspberry-pi/>)
