-
Guys, could someone help me to work with ADS1256 with the PI4J-v2 lib? With examples of connections on SPI ports. If you have a similar project, I would be grateful. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
I implemented a MCP3008, 8 bit ADC SPI connected. See https://github.com/Pi4J/pi4j-device-tca9548 MCP3008 A/D 10bit converter Tom |
Beta Was this translation helpful? Give feedback.
-
Hey @taartspi thanks for the reply. Could you help me create an example to work with |
Beta Was this translation helpful? Give feedback.
-
Evening
I ordered an ADS1256 from waveform and see on their website it has finally
left China for the US. Hopefully not on a ship.
I coded what I intend to unit test and placed it in that same repo. It
has NO testing, but based on the waveform details in their C program. When
the chip arrives I will unit test and see if I can get it working. Just
wanted to let you know this and not appear as though I forgot. If you
were able to have success on your end let me see what you coded.
take care Tom
…On Mon, Jul 11, 2022 at 6:41 AM Wesley ***@***.***> wrote:
@taartspi <https://github.com/taartspi>
Tom, thanks for the feedback. I was able to locate and access the project
that is using the MCP3008 chip. I was using it as a template to try to
code a class for ADS1256 but without success.
I'm so glad you can help me with this challenge, I'm so excited.
I look forward to more updates, and again, thank you very much.
—
Reply to this email directly, view it on GitHub
<#229 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK5A322PJYCA3MW7DULO55TVTQB7NANCNFSM5ZWFZLLQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I did get one ADS1256 chip. I just pushed code that works with the chip. Look at the README to see what pins this chip exposed. When I get the Waveshare module I will test with it as that chip exposes all the lines from the ADS1256. But, I hit a problem in the Pi4J code base. It was a simple fix and I did the push/pull activity and will wait to see if the Pi4J team agrees with my change. You could setup the environment to build the Pi4j base and easily make this change on your user level. I use maven native on a pi-4 8 gig so making a change to the Pi4j base is easy, I do not know what build environment you use. Hopefully there is a quick response and the team agrees on the fix and you can build it yourself and know it will be generally available in the future. |
Beta Was this translation helpful? Give feedback.
-
I completed testing with ab AD/DA Board from WaveShare. This ADS1256 exposes all the GPIO lines. I think this is what you asked for, if you want any assistance to build that MODE1 Pi4j fix let me know. I believe week after next the Pi4J team will be available to see how they would release the MODE1 fix. When I have time I will implement using the four DIOs on the ADS1256 |
Beta Was this translation helpful? Give feedback.
-
Tom, thank you so much for all your help. Between this week and the weekend I'm going to get the coded class and do some tests on them with the board, I really appreciate your help and if I have any problems I'll contact you. |
Beta Was this translation helpful? Give feedback.
-
The fix for MODE_1 SPI has been incorporated into the 2.2.0-SNAPSHOT. So refresh the jar files and you can use that example ads1256 program to begin your work. If there is confusion to change what I did for your specific needs let me know. Tom |
Beta Was this translation helpful? Give feedback.
The fix for MODE_1 SPI has been incorporated into the 2.2.0-SNAPSHOT. So refresh the jar files and you can use that example ads1256 program to begin your work. If there is confusion to change what I did for your specific needs let me know. Tom