Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiring diagram #1

Closed
timber77 opened this issue Oct 5, 2023 · 2 comments
Closed

wiring diagram #1

timber77 opened this issue Oct 5, 2023 · 2 comments

Comments

@timber77
Copy link

timber77 commented Oct 5, 2023

Hi
Have you still got your wiring diagram or some info on how you connected the sensor?

Thanks a lot

@maschinenbauerbauer
Copy link
Owner

maschinenbauerbauer commented Oct 7, 2023

Hi, I'm sorry, but since my workplace change I lost access to the original wiring diagram file which I wanted to include in the Readme-File.
But I hope this clears things up:
We connected a 3-LED-RGB-Light with four pin (one for each LED and a common ground) to the raspberry pi on pins 26 (red), 19 (yellow) & 13 (green). These are optional, but you have to adapt the code to fit your needs in that case.

The ADCMXL was connected with the help of the breakout board you can find here: Breakout Board
Just follow the circuit boards pins and compare to the Table 5 in the datasheet (page 8/50) here: Datasheet
I will now get into detail about what to connect to whicht pin. The first value is always the sensor side, and the second is Raspberry Pi side (e.g. SENSOR (PIN) -> RPI (PIN) ) (im referring to pins, not GPIO Ports here in the parantheses! see pinout.xyz)
We connected GND (1) -> GND (6), VDD (8) -> 5V (2), SCLK (13) -> GPIO11 (23), CS (14) -> CE0 (24), DIN (11) -> GPIO9 (21), DOUT (12) -> GPIO10 (19) and BUSY (5) -> GPIO22 (15).

As I'm recalling this from pure memory, there could be faulty connections in this. Maybe I switched the Pins for DIN or DOUT, I'm not sure anymore whether the ADCMXL refers to itself as the master or the RPi. I guessed it refers to the Pi as master. But just try around.

I also remember changing some settings on the RPi to get it to work but I could not figure out, whether it made an improvement because we switched mid-project from RPi3B to RPi4: Issue SPI Speed

I hope this helps you with your project. Don't hesitate to ask again!

@timber77
Copy link
Author

Hi, I actually got it running on the RPI 3B+ in the meantime: As a comparison and for future reference here are my connections(in bold the differences):
GND -> GND(6), VDD -> 3v3(1), SCLK -> GPIO11(23), CS -> CE0(24), DIN -> GPIO10(19), DOUT -> GPIO9(21), BUSY -> GPIO22(15), RST -> 3v3(17). I used the ADcmXL FX3 Interface board to connect it.
So far I had no problems with the SPI clock speed but thanks for the hint.
Thanks a lot for your help and your code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants