-
Notifications
You must be signed in to change notification settings - Fork 12
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
Comments
Did you see this?
https://github.com/hydronics2/2019-easy-bee-counter/tree/master/instructions/archive
" I made a few mistakes on the first version (v0). The 74hc165 is not a
true SPI device. It doesn't have a tri-state buffer on the MISO...."
…On Fri, Jan 29, 2021 at 1:22 AM Christophe45 ***@***.***> wrote:
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 :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3MOPCROOFQA2XU2U57OKTS4J45DANCNFSM4WYRCTKA>
.
|
Many many thanks Thomas for your answer, I will try this :).
have a nice week-end
christophe
Le vendredi 29 janvier 2021 à 18:14:28 UTC+1, Thomas <[email protected]> a écrit :
Did you see this?
https://github.com/hydronics2/2019-easy-bee-counter/tree/master/instructions/archive
" I made a few mistakes on the first version (v0). The 74hc165 is not a
true SPI device. It doesn't have a tri-state buffer on the MISO...."
On Fri, Jan 29, 2021 at 1:22 AM Christophe45 ***@***.***> wrote:
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 :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3MOPCROOFQA2XU2U57OKTS4J45DANCNFSM4WYRCTKA>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi Thomas,
Now I undersand more, but if I use the 74HC589 I need the re-make a new PCB as the Pins are differents with the 74HC165... :(
If I have to re-make a PCB, I will may be try to use register that using I2C :)
A a nice day
christophe
Le vendredi 29 janvier 2021 à 19:31:31 UTC+1, Blain Christophe <[email protected]> a écrit :
Many many thanks Thomas for your answer, I will try this :).
have a nice week-end
christophe
Le vendredi 29 janvier 2021 à 18:14:28 UTC+1, Thomas <[email protected]> a écrit :
Did you see this?
https://github.com/hydronics2/2019-easy-bee-counter/tree/master/instructions/archive
" I made a few mistakes on the first version (v0). The 74hc165 is not a
true SPI device. It doesn't have a tri-state buffer on the MISO...."
On Fri, Jan 29, 2021 at 1:22 AM Christophe45 ***@***.***> wrote:
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 :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3MOPCROOFQA2XU2U57OKTS4J45DANCNFSM4WYRCTKA>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have the same PVB V1 my question was link to the register 74HC589 that you discribe here:
In order to work with the LORa module you need to swap out the 74hc165 shift registers with true SPI based shift registers... like the 74HC589 referenced in the above stack exchange answer.
The pinout of the 74HC165 is diffent of the 74HC589 so you can't install at the same place?
Many thanks in adanve for your answer :)
Christophe
Le samedi 30 janvier 2021 à 18:22:51 UTC+1, Thomas <[email protected]> a écrit :
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
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/ 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. Per the data sheet, pulling the OE pin high would free up the MISO line for other uses. What do you think? |
Many thanks Thomas for your answer :), I will look that ;). But before I will try Bit-banged SPI : https://www.gammon.com.au/forum/?id=11979&fbclid=IwAR0evnHg7Bk4rl7QrX_K8_500TE5-9ZDSsS4beKH7vyye8QyhOgowQofdF8
In order to try with others Pin the SPI :).
I will let's you know :)
christophe
Le lundi 1 février 2021 à 20:49:25 UTC+1, Thomas <[email protected]> a écrit :
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/
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.
Per the data sheet, pulling the OE pin high would free up the MISO line for other uses. What do you think?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I succeeded with the Bit-Banged SPI with your sytem and using normal SPI for my LORA RFM95 module :)
Now I will try to make and other PCV with my system ( Weight, temp, GSP, accelerometer and light sensor) :). If you want I can share you my system a this end :)
Best regard,
christophe
Le mardi 2 février 2021 à 08:32:36 UTC+1, Blain Christophe <[email protected]> a écrit :
Many thanks Thomas for your answer :), I will look that ;). But before I will try Bit-banged SPI : https://www.gammon.com.au/forum/?id=11979&fbclid=IwAR0evnHg7Bk4rl7QrX_K8_500TE5-9ZDSsS4beKH7vyye8QyhOgowQofdF8
In order to try with others Pin the SPI :).
I will let's you know :)
christophe
Le lundi 1 février 2021 à 20:49:25 UTC+1, Thomas <[email protected]> a écrit :
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/
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.
Per the data sheet, pulling the OE pin high would free up the MISO line for other uses. What do you think?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Great, bit-banging was a good idea.
…On Thu, Feb 4, 2021 at 6:08 AM Christophe45 ***@***.***> wrote:
I succeeded with the Bit-Banged SPI with your sytem and using normal SPI
for my LORA RFM95 module :)
Now I will try to make and other PCV with my system ( Weight, temp, GSP,
accelerometer and light sensor) :). If you want I can share you my system a
this end :)
Best regard,
christophe
Le mardi 2 février 2021 à 08:32:36 UTC+1, Blain Christophe <
***@***.***> a écrit :
Many thanks Thomas for your answer :), I will look that ;). But before I
will try Bit-banged SPI :
https://www.gammon.com.au/forum/?id=11979&fbclid=IwAR0evnHg7Bk4rl7QrX_K8_500TE5-9ZDSsS4beKH7vyye8QyhOgowQofdF8
In order to try with others Pin the SPI :).
I will let's you know :)
christophe
Le lundi 1 février 2021 à 20:49:25 UTC+1, Thomas ***@***.***>
a écrit :
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/
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.
Per the data sheet, pulling the OE pin high would free up the MISO line
for other uses. What do you think?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3MOPHDYD7R7B4DSMRBIMDS5KS7JANCNFSM4WYRCTKA>
.
|
Hi @Christophe45 , do you have a build log of your system? It sounds very interesting - what are you using the accelerometer for? |
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 :)
The text was updated successfully, but these errors were encountered: