node-red-contrib-waveshare-shield-adda-11010
Loading...
Searching...
No Matches
library-test.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# library-test.py
3#
4# Copyright (c) 2020-2022 Spring City Solutions LLC and other contributors
5# Licensed under the Apache License, Version 2.0
6#
7# For development, need to install the flake8 system.
8# sudo apt-get install python3-flake8
9# Running flake8 should report no serious problems,
10# with E501 being ignored and excluding tests/
11#
12# Hardware Links:
13#
14# Board Manufacturer Store:
15# https://www.waveshare.com/High-Precision-AD-DA-Board.htm
16#
17# Board Manufacturer Wiki:
18# https://www.waveshare.com/wiki/High-Precision_AD/DA_Board
19#
20# Links for ADS1256 chip:
21# https://www.ti.com/product/ADS1256
22# https://www.ti.com/lit/gpn/ads1256
23# Book "Fundamentals of Precision ADC Noise Analysis" https://www.ti.com/lit/pdf/slyy192
24# Journal Series "How delta-sigma ADCs work" https://www.ti.com/lit/pdf/slyt423 https://www.ti.com/lit/pdf/slyt438
25# App Note "Digital Filter Types in Delta-Sigma ADCs" https://www.ti.com/lit/pdf/sbaa230
26#
27# Link for LM285 chip, connected to the ADS1256:
28# https://www.ti.com/product/LM285-2.5-N
29# https://www.ti.com/lit/gpn/lm285-2.5-n
30#
31# Link for DAC8532 chip:
32# https://www.ti.com/product/DAC8532
33# https://www.ti.com/lit/gpn/dac8532
34#
35# Spring City Solutions Links:
36#
37# Spring City Solutions Node-RED project page:
38# https://www.springcitysolutions.com/nodered
39#
40# Spring City Solutions page for this node:
41# https://www.springcitysolutions.com/nodered-waveshare-adda-shield
42#
43# Spring City Solutions Node-RED project email:
44# nodered@springcitysolutions.com
45#
46# Spring City Solutions Gitlab for this node:
47# https://gitlab.com/SpringCitySolutionsLLC/waveshare-shield-adda-11010
48#
49# Patreon Page:
50# https://www.patreon.com/springcitysolutions_nodered
51#
52# Software Links:
53#
54# Spring City Solutions Gitlab for this node:
55# https://gitlab.com/SpringCitySolutionsLLC/waveshare-shield-adda-11010
56#
57# Doxygen docs for this node autogenerated by Gitlab CI/CD:
58# https://springcitysolutionsllc.gitlab.io/waveshare-shield-adda-11010/index.html
59#
60# npmjs for this node:
61# https://npmjs.org/package/node-red-contrib-waveshare-shield-adda-11010
62#
63# Node-RED flows for this node:
64# https://flows.nodered.org/node/node-red-contrib-waveshare-shield-adda-11010
65#
66# Documentation Links:
67#
68# Gitlab wiki for this node (the master copy of list of links is here):
69# https://gitlab.com/SpringCitySolutionsLLC/waveshare-shield-adda-11010/-/wikis/home
70#
71# Waveshare's libraries for this hardware:
72# https://github.com/waveshare/High-Precision-AD-DA-Board
73#
74# Youtube video "How to set up":
75# TODO
76#
77# Youtube video "How to use":
78# TODO
79#
80# Youtube video "Testing Results":
81# TODO
82
83import sys
84
85import RPi.GPIO as GPIO
86import spidev
87
88# If there were no errors reported above, the library installations are good