OP's plan was to use MODBUS to reach across the 20 ft gaps, not SPI.
OP is working with what the OP knows about.
OP is smart enough to ask before buying!
I can't count the number of times I've seen buy-then-fit types so I take that as a good sign.
OP's plan was to use MODBUS to reach across the 20 ft gaps, not SPI.
OP is working with what the OP knows about.
OP is smart enough to ask before buying!
I can't count the number of times I've seen buy-then-fit types so I take that as a good sign.
That is contrary to what is shown on the diagram, nor has been stated by the OP. How do you reach that conclusion?
Wow. Thank you all. A lot to absorb. Let me ponder for a while and get back to ya'll.
PWM to a SSR is commonly used in the solar community to harvest additional solar power when in ABSORB and FLOAT to dump extra available power to something like a hot water heater.
Most of what I have read about SPI put the buss limit at 10 meters. Is that incorrect?
In short, yes.
ETA: to be more constructive I would use RS485 there instead of SPI. That mean having a small board like a Nano near the remote SPI devices to act as a Modbus server.
The SPI would then be used locally to the main Arudino just for the SD card.
The reason I chose the Arduino is that I am not a programmer. There appears to be a lot of "software" (sketches) support and resources available.
it depends what you mean by "Arduino"
it has tended to become a general term for microcontrollers supported by the Arduino IDE ranging from low power devices such as the UNO, Nano, etc to more powerful devices such as the STM32, ESP32, RP2040, Teensy, etc
in practice you need to select a microcontroller which can support your project with room for possible enhancements (within limits)
Had no idea you were doing energy harvesting, I though you wewe trying to control something.
put the buss limit at 10 meters. Is that incorrect?
That depends on what is sourcing and sinking the current, the data rate and type of cable.
https://www.analog.com/en/resLTC6820)ources/technical-articles/isolated-spi-communication-made-easy.html
While the SPI communication method is generally suitable for distances up to approximately 10 m, to bridge longer distances, a repeater is often needed because of attenuation due to the increased line resistance of long cables. (10m=32ft)
SPI.setClockDivider() - [from Arduino docs]
The SPI clock divider in Arduino R312 is used to set the SPI clock relative to the system clock. Available dividers are 2, 4, 8, 16, 32, 64, or 128. The default setting is SPI_CLOCK_DIV4, which sets the SPI clock to one-quarter the frequency of the system clock.
As I do not need super fast data acquisition, It would appear that a slower SPI clock could certainly handle a 20 ft SPI bus. Worst case, two additional ICs (LTC6820) would solve the issue.
Do I have this wrong?
I am trying to have better control of both energy harvesting and Battery Bank charging and health.
That is the only article I could find anywhere mentioning a "10m limit." Another post I saw claims "a 10 foot limit", I think both numbers are likely plucked out of the air. In practice, people have trouble reaching up to 1 meter.
RS485 is designed for exactly this purpose.
But if you feel confident in transmission line electronics, go ahead.
Texas Instruments has a different solution.
Are you going to run power 20' as well or is power available otherwise at the remote location?
Power is available at remote.
Then it is practical to put an Arduino at each end and use a serial protocol designed for operation at that distance. Not SPI.
I'm sure they do.
No just one