Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/annaknapp/piadcs
Go libraries to interface TI ADCs with Raspberry Pi
https://github.com/annaknapp/piadcs
adc ads1262 ads1263 data-acquisition go golang raspberry-pi
Last synced: about 2 months ago
JSON representation
Go libraries to interface TI ADCs with Raspberry Pi
- Host: GitHub
- URL: https://github.com/annaknapp/piadcs
- Owner: AnnaKnapp
- License: mit
- Created: 2021-06-22T07:48:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-09T23:47:43.000Z (over 3 years ago)
- Last Synced: 2024-11-01T07:52:11.985Z (2 months ago)
- Topics: adc, ads1262, ads1263, data-acquisition, go, golang, raspberry-pi
- Language: Go
- Homepage:
- Size: 639 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PiADCs
Libraries in Go to interface TI ADCs with Raspberry Pi. Currently only the ADS126x is supported but other ADCs with similar programming could also be added. The ADS1262 precision ADC makes for a cheap but very powerful Data aquisition system when paired with a Raspberry Pi.## How to set up and install
1. Set up your Raspberry Pi with the Raspberry Pi OS (https://www.raspberrypi.org/software/) and connect it to the ADC. For an example of how to connect them with minimal noise for the highest precision measurments see the hookup example given in the schematics folder.2. Make sure you have Go installed on your Raspberry Pi (Version 1.16 or higher) - https://golang.org/doc/install
3. Use the go get command
```bash
go get -u github.com/AnnaKnapp/piadcs
```
## How to use
Import the main library and the subfolder with the library for the adc you want to use (at this time only the ads126x is supported)```go
import(
"github.com/AnnaKnapp/piadcs"
adc "github.com/AnnaKnapp/piadcs/ads126x"
)
```Please check out the examples folder for usage examples. These examples are intended to run on a Raspberry Pi running Raspberry Pi OS and assume the connections shown in the schematics folder. The testing was done using a ProtoCentral ADS126x breakout board and a Raspberry Pi 4 B (other Pi models should also work).
These examples demonstrate how to use the functions provided by the library to change the ADC settings by writing to the registers, how to read conversion data, and how to store it as a .csv file.
## Documentation
https://pkg.go.dev/github.com/AnnaKnapp/piadcs
https://pkg.go.dev/github.com/AnnaKnapp/piadcs/ads126x