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

Share HSPI with lora RFM95 module #14

Open
Christophe45 opened this issue Jan 29, 2021 · 10 comments
Open

Share HSPI with lora RFM95 module #14

Christophe45 opened this issue Jan 29, 2021 · 10 comments

Comments

@Christophe45
Copy link

First many for your project!! it's working very well, I like it.
Since 1 week I face to an issue, I want to had your bee counter to my system.
I developed a PCB with an ESP32 wroom 32 with weight sensor, temperature, GPS, an accelerometer and everything uses the LORA system. My Lora module is an RFM95 which uses SPI (VSPI). I tried several things in order to share the VSPI bus as a slave but it doesn't work. I tried using the HSPI bus for your count. Only everything works well but when I put the Lora system nothing works ... Do you have an idea to make everything work? I can share everything with you :)
https://github.com/Christophe45/ESP32-Lorawan
Many thanks in advance for your help :)

@hydronics2
Copy link
Owner

hydronics2 commented Jan 29, 2021 via email

@Christophe45
Copy link
Author

Christophe45 commented Jan 29, 2021 via email

@Christophe45
Copy link
Author

Christophe45 commented Jan 30, 2021 via email

@hydronics2
Copy link
Owner

If you are using the PCB v1 then I already made the changes and you can just swap out the shift registers and it will work.
image

@Christophe45
Copy link
Author

Christophe45 commented Feb 1, 2021 via email

@hydronics2
Copy link
Owner

hydronics2 commented Feb 1, 2021

damn... that's right.... the HC595 has a different pinout!... so that's not an easy solution... that's too bad.

I should have probably designed a tri-state buffer into the design like Paul S. suggests here: https://www.pjrc.com/better-spi-bus-design-in-3-steps/
image

tri-state buffer: 74AHC1G125

I've used one of these in a circuit once. Unfortunately there's no through-hole version. You could try to patch one of these in with some small wires and hot glue. It's totally doable but a bit tricky to solder! You'd basically cut the trace on the MISO line and add jumper wires between the pins... and add an enable jumper wire to the OE pin.

image

Per the data sheet, pulling the OE pin high would free up the MISO line for other uses. What do you think?

@Christophe45
Copy link
Author

Christophe45 commented Feb 2, 2021 via email

@Christophe45
Copy link
Author

Christophe45 commented Feb 4, 2021 via email

@hydronics2
Copy link
Owner

hydronics2 commented Feb 4, 2021 via email

@chinswain
Copy link

Hi @Christophe45 , do you have a build log of your system? It sounds very interesting - what are you using the accelerometer for?

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

3 participants