I've been working with the Raspberry Pi Pico for a project, but I need more ADC inputs than the pico itself has. To work around this issue, I've gotten an ADS7828, but I'm not sure how to use it so I've been going in circles...
I need to use the Arduino IDE, but the documentation on the subject is sparce or unclear (at least to me). The pinout for the 7828 is as follows:
Now the problem I face here is I'm not sure how to declare them in the code. I'm also not sure what the slaves A0 and A1 on the 7828 work and whether I need to connect them to the Pico or not (if I do, I also need to know how to declare them)
I'm new to this kind of situation as I've only done projects with a lot of documentation in the past, so I'm not sure how to approach this and would appreciate some help.
Hi, welcome to the forum.
Are you using the Raspberry Pi Pico with the Arduino IDE with C++ ?
Then you can use a normal library and hope that the environment for the Raspberry Pi Pico is good enough by now to be compatible.
Have you installed the Raspberry Pi Pico board in the Arduino IDE ?
I suggest to use the default pins. A call to Wire.begin(); should use the default.
Connect SDA to SDA, and SCL to SCL. Add pullup resistors of 10k.
Then the next step is to upload a I2C Scanner sketch to check if it can find the chip.
I have managed to make simple programs with the Pico thanks to a library made for it (that does work properly) and the board. I have no issues in that regard.
Thank you, this is the information I was looking for! The code you sent through the link seems like it'll work, I'll be able to test things out with this. I'll be sure to test things out and verify everything's working according to my needs