An open API service indexing awesome lists of open source software.

https://github.com/eugenedakin/lgpio-spi

SPI MCP3008 Analog to Digital (ADC) (MISO/MOSI)
https://github.com/eugenedakin/lgpio-spi

electronics gpio lgpio raspberry-pi spi xojo

Last synced: 11 months ago
JSON representation

SPI MCP3008 Analog to Digital (ADC) (MISO/MOSI)

Awesome Lists containing this project

README

          

# lgpio-SPI
This program uses SPI with a MCP3008 chip to convert Analog to Digital (ADC) (MISO/MOSI)

![](https://github.com/eugenedakin/lgpio-SPI/blob/main/ScreenGrab.png)

The MCP3008 chip converts analog signal to digital signals by using the SPI protocol on the Raspberry Pi 4 with Xojo.

Install instructions are:
1) sudo apt install swig python3-dev
2) sudo apt install python3-setuptools
3) sudo apt-get install libunwind8
4) wget http://abyz.me.uk/lg/lg.zip
5) unzip lg.zip
6) cd lg
7) make
8) sudo make install
9) create a Blink example program and copy the program and libraries to the RaspberryPi Desktop
10) give the executable permission to run with something like: 'sudo chmod +x HelloWorldBlink'
11) run the program with something like: 'sudo ./libGPIODSPI'