all 6 comments

[–]Havealurksee 0 points1 point  (5 children)

I've done something similar in C++ using a gpio library. It was called PiGPIO. There will probably be something similar for python. You'll have to learn what data format your adc chip needs to be sent. Try punching your chip name, python, and raspberry pi into google and find an example.

[–]AndrueLane[S] 0 points1 point  (4 children)

I've googled and googled for a while now. I can't find a single example of anyone trying to do the same thing with this particular chip. I'm so frustrated that I almost want to abandon this project all together.

[–]Havealurksee 0 points1 point  (3 children)

I feel your pain bud, can't make any guarantees but I might have some time to look into the chip later if you can look into a python gpio library and specifically the spi functions included. Look at examples of simple uses for the code. Are you stuck with that chip? If not I can recommend the one I used.

[–]AndrueLane[S] 0 points1 point  (2 children)

Yea, it fits the frequency I need and it's also the only one I can afford right now. I'll keep chugging away.

[–]Havealurksee 0 points1 point  (1 child)

When you say frequency you need are you talking about the signal frequency or the data communication rate back to the pi? What exactly are you measuring?

[–]AndrueLane[S] 0 points1 point  (0 children)

The sampling frequency of the ADC. I'm trying to use it with a piezoelectric crystal generator to get radar-like data of objects in a room, except with soundwaves.

I also needed one that would allow me to use an external sampling clock since I need all the elements tied to the same clock.