ul-gh / PiPyADC

Python classes for interfacing Texas Instruments analog-to-digital converters with the Raspberry Pi
GNU Lesser General Public License v2.1
69 stars 27 forks source link

Pin connections #34

Open ayhanyzc opened 1 year ago

ayhanyzc commented 1 year ago

Hi, I am trying to connect Raspberry 3A+ and ADS1256. My ADS1256 board's pin diagram is attached. I don't know how to connect the ADS1256 board and the Raspberry. Is there a pin connection diagram?

Screen Shot 2023-05-21 at 15 32 44
ul-gh commented 1 year ago

Am 12.07.23 um 19:00 schrieb ayhanyzc:

Hi, I am trying to connect Raspberry 3A+ and ADS1256. [...}] Is there a pin connection diagram?

I think I can help.

For the ADS1256, the pins are configured in file:

https://github.com/ul-gh/PiPyADC/blob/pigpio/pipyadc/ADS1256_default_config.py

You need to connect the following GPIO pins which by default have the broadcom GPIO numbers configured in the file above:

GPIO#: Description

22: Chip Select (CS) 17: Data Ready (DRDY) 18: RESET 27: Power Down (PDWN)

and the SPI pins which can /not/ be configured to different physical GPIO numbers:

12: MOSI (called DIN on the slave) 13: MISO (called DOUT on the slave) 14: SCLK (SCK)

And of course, connect GND, 3.3V and 5V as needed.

About your PCB, I suspect, but I am not sure, that this PCB has an internal 3.3V voltage regulator fed from the 5V supply. If a 3.3V regulator is integrated, you do not need to connect the 3.3V supply separately, in this case, only connect the 5V.

For the Raspberry Pi 3A+, you can find the pinout in many places on the web, e.g.:

https://pi4j.com/1.2/pins/model-3a-plus-rev1.html

You need to know, the broadcom GPIO numbers differ from the 40-pin pinheader number, e.g. GPIO#22 (CS) is physical pin number 31.

Best wishes, Ulrich Lukas

Screen Shot 2023-05-21 at 15 32 44 https://user-images.githubusercontent.com/139378186/253045960-d4cd59e6-bbaf-49b2-abb0-735123aa5ce2.png

— Reply to this email directly, view it on GitHub https://github.com/ul-gh/PiPyADC/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6BQ5NH367IC6FDTMFGRGDXP3J27ANCNFSM6AAAAAA2HYWFYI. You are receiving this because you are subscribed to this thread.Message ID: @.***>